Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3482137ybv; Tue, 25 Feb 2020 02:07:04 -0800 (PST) X-Google-Smtp-Source: APXvYqy1k0TmICq8m2sWOImkVLCOao/l+9bVPwQxEiLfu0XLHkwAc6ljjrzOTVqAYOhzxHb5f13y X-Received: by 2002:aca:3857:: with SMTP id f84mr2662928oia.150.1582625224626; Tue, 25 Feb 2020 02:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582625224; cv=none; d=google.com; s=arc-20160816; b=mvkFN+EIqqNtETcerzqvRkl+VNve6C6nIiPwEjtgCDECy0GMtTnO1DXvMuWN5O2Yju j1HEdKpaBoNsdDdI2gXc7HSsKHoLuSbbE7s9uARMUqdee2GW5h8/ogTvgTe+NbbjXonA mdZwUYGBbpFB1MFZmg109ppN9lRgGTxgmRgj4VGQeZmVXQKurUErbjqpGgGxhCWztuP+ 668EOdtok45jYnoTrSo5BFXjYSKaGcSdwUvClxfysB2kjYxreAkVjE6jQJovCaslcPGH CwZYJ7ay5XfjEyOE5B6VG4IMzdY1fmARlOr2qMIede5McGwpupGJ89k+q5k0tuWgbMmc /XpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=vFh2KvXi62rIpCvHIN7YOBUxnMpVg2eL4V2ExnZgrWs=; b=g+0V+ijXtZhRUQhuuS4DjY2cZPloqVIzY+QQXwpgi0sdAV5/ZQMYFPCbrP0J1sOQL2 Z8vHsEzVIUwVJRK3Z+lVZt62u8tLYKvl2MC7O4oZMXnmzgaAInhTgisjp1CxmzK414Nd uMXEt1oOOaspgkG/j6A/gQu6qyM0Nqx9LuYDa5MpA/tmO1w07Cr5HOlnEAx3rLZ24GKh XW9dCvh5UH4NdCTj4Pup1mSnTjBd2P/i+tvG8rJ5AcYONTAJG3qPCbXI68GFlx0XLHUv JRMnjAK6rEXTeaK1SD8wpwmTocqFZhRbGa2pBfMlhDcDabieoVpYo0C7AA6GkowShEKP FGiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si6782091oic.66.2020.02.25.02.06.52; Tue, 25 Feb 2020 02:07:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729855AbgBYKFn (ORCPT + 99 others); Tue, 25 Feb 2020 05:05:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:44780 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbgBYKFn (ORCPT ); Tue, 25 Feb 2020 05:05:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EA0CEAD81; Tue, 25 Feb 2020 10:05:40 +0000 (UTC) Date: Tue, 25 Feb 2020 11:05:39 +0100 (CET) From: Miroslav Benes To: Will Deacon cc: linux-kernel@vger.kernel.org, kernel-team@android.com, akpm@linux-foundation.org, "K . Prasad" , Thomas Gleixner , Greg Kroah-Hartman , Frederic Weisbecker , Christoph Hellwig , Quentin Perret , Alexei Starovoitov , Masami Hiramatsu , live-patching@vger.kernel.org Subject: Re: [PATCH 0/3] Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol() In-Reply-To: <20200221114404.14641-1-will@kernel.org> Message-ID: References: <20200221114404.14641-1-will@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC live-patching ML, because this could affect many of its users... On Fri, 21 Feb 2020, Will Deacon wrote: > Hi folks, > > Despite having just a single modular in-tree user that I could spot, > kallsyms_lookup_name() is exported to modules and provides a mechanism > for out-of-tree modules to access and invoke arbitrary, non-exported > kernel symbols when kallsyms is enabled. > > This patch series fixes up that one user and unexports the symbol along > with kallsyms_on_each_symbol(), since that could also be abused in a > similar manner. > > Cheers, > > Will > > Cc: K.Prasad > Cc: Thomas Gleixner > Cc: Greg Kroah-Hartman > Cc: Frederic Weisbecker > Cc: Christoph Hellwig > Cc: Quentin Perret > Cc: Alexei Starovoitov > Cc: Masami Hiramatsu > > --->8 > > Will Deacon (3): > samples/hw_breakpoint: Drop HW_BREAKPOINT_R when reporting writes > samples/hw_breakpoint: Drop use of kallsyms_lookup_name() > kallsyms: Unexport kallsyms_lookup_name() and > kallsyms_on_each_symbol() > > kernel/kallsyms.c | 2 -- > samples/hw_breakpoint/data_breakpoint.c | 11 ++++++++--- > 2 files changed, 8 insertions(+), 5 deletions(-) > > -- > 2.25.0.265.gbab2e86ba0-goog >