Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1950692ybv; Fri, 21 Feb 2020 06:15:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyzyIt9WgrfqMQPC+92b3r+8VNtn4Y31Y4Ht/++Gutk1MOPgkR9SvidRMTJBnEvBhknq1Js X-Received: by 2002:aca:dd05:: with SMTP id u5mr2146643oig.91.1582294515870; Fri, 21 Feb 2020 06:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582294515; cv=none; d=google.com; s=arc-20160816; b=DUdFz8gAoI8oPb4D8vgaQj/Phx3i5wa7nNT4J6A9hRlcgAfZSRYtAbQ938IBOzNIBA 7IZjUql0tcQv6i0hr4Y1Tp88+Y7IahJ09scci9xFFK7O2F0NVe6pe7zEuO6+V7Oz9O9S jbqsLgV9MFm07nqjNGzdTNckCOMbPGoLTCNQ1hXSVrjwTAM1SC8yZS0R2GzPgwutWJbQ RKNMwLIPrzUCn1VsKvZ0hR4l/keskTBYbHlmTiGrkg5PgkN5bzlV08K9BrTDj2C+Bj8u KzxYKJK2Y5iQQXnH4Q+Dr22MMPUH74vIO1DafYU53roxkdmkQQLJYKVCp1UK9SJSuCme B8/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MwpDb6yaCNpf39+BD3svdBO86kaG0QgNUhShjRRcGUc=; b=gyc4wREwU4dnAcdSVz03ouad2jSyzAvDox8TLupvZWppw0S7hERZBkpFA4dOXxsBok +7zrBIuNhXRbvvj1Lspc1nM0Ln4xzM+MILxwLxBMYCOPCkJUxnPwU7U+isLHVRJiApFD m/CD8Ym0P18SgfWn5jzVZ1ffjI9bOtH4DfTXO/OunC+rbyJU/RPpKKVRrtvB5vjMVOwY lDWhLw6lcrCJ8WwPDFR0TpyKRGW4hlVQKMpZd7qWg+xb3p/TSK7yoafVkcbAGOF8/1ni jyj8CvhmfgeU3594qxjUYNewTXdqFxls3u23WRIId8P8jwAINYISc2Y29g2/XtI8nIum ZWug== 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 d125si715351oia.86.2020.02.21.06.15.01; Fri, 21 Feb 2020 06:15:15 -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 S1728761AbgBUOOh (ORCPT + 99 others); Fri, 21 Feb 2020 09:14:37 -0500 Received: from verein.lst.de ([213.95.11.211]:55653 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgBUOOg (ORCPT ); Fri, 21 Feb 2020 09:14:36 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 3716C68C4E; Fri, 21 Feb 2020 15:14:34 +0100 (CET) Date: Fri, 21 Feb 2020 15:14:33 +0100 From: Christoph Hellwig 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 Subject: Re: [PATCH 3/3] kallsyms: Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol() Message-ID: <20200221141433.GD6968@lst.de> References: <20200221114404.14641-1-will@kernel.org> <20200221114404.14641-4-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200221114404.14641-4-will@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 11:44:04AM +0000, Will Deacon wrote: > kallsyms_lookup_name() and kallsyms_on_each_symbol() are exported to > modules despite having no in-tree users and being wide open to abuse by > out-of-tree modules that can use them as a method to invoke arbitrary > non-exported kernel functions. > > Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol(). Looks good, Reviewed-by: Christoph Hellwig