From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 782D6EB64D7 for ; Wed, 28 Jun 2023 15:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=msCJUFODzDt0GcZA3SdvF2oXTgX8pi4IwulIusZAnJo=; b=A25QZ+1zU33JGs dtoMPLULZmCYUZYy3CRuUnYt8CJckcOzJ0vQM5W4u7+vXdvXZBbhwXcPcGvWm7gEfk/6+FD5X4y6d IfQeIMkqLNzotRCWYFgd2kN3v40afIA6xFIrFlQCQhLmY3layHfYV3gLHgXuauYkOWVRorD1Pv7NV Y5+qtAXm1bzQ7gPWo0yEDqnzGuxHJZESt3YE+rEcRvciOyMk+PVDt2EIOuxdKd9AwYGkCUHIh0fxA axIviproMaPZYpShzEhzQeKULsS8EYtzmYltj4S3vr0poutExHjzPa7McWMFmTsctbZbWMRJST3qm VYZH6OV/Ad2Ka835ERkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qEXAD-00G0IO-21; Wed, 28 Jun 2023 15:33:01 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qEXAB-00G0Gh-1t for linux-arm-kernel@lists.infradead.org; Wed, 28 Jun 2023 15:33:00 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 44B41612A5; Wed, 28 Jun 2023 15:32:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E266C433C0; Wed, 28 Jun 2023 15:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687966374; bh=5BCkT+FanlGIy02RrZESfVtbkxz2az/nnPp2C2DcBRs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pno1tIF9znhx4k/HGXHlsU2+bHMzN34sQk2R2qTh5D3byvPa5JoDziFmAJLIJSGSU oNIiLtOYIQdRAXfqPWG30pnGbadLIV+kweJXIXvszpB0C5uQXz0X1b0noy5zNTtOI+ ZBlg1rc0s9A8E8YlqowvKRJVoRNbotCYLcu0sZ1DLSert7+VzIqtqRmobtKIr6ltn/ INKDWfDZbRCE4/AGRBEV0SwawkGxxwZJf+ca5G6+itVNGSe0zbc90M99E+SqXwEQw+ RaFjYn5Ni1Y3p/LWXmpqfMWkWTwkIwxdwenIi7264cc2AsIE5yPIVlMbPRvy0Z4IK7 CzB3k+c5+BKAA== Date: Wed, 28 Jun 2023 16:32:47 +0100 From: Will Deacon To: Mukesh Ojha Cc: Pavan Kondeti , corbet@lwn.net, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, mathieu.poirier@linaro.org, catalin.marinas@arm.com, linus.walleij@linaro.org, andy.shevchenko@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-hardening@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 02/21] kallsyms: Export kallsyms_lookup_name Message-ID: <20230628153246.GA22090@willie-the-truck> References: <1687955688-20809-1-git-send-email-quic_mojha@quicinc.com> <1687955688-20809-3-git-send-email-quic_mojha@quicinc.com> <86c104a6-a685-4d05-08f4-e1be595f9d31@quicinc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <86c104a6-a685-4d05-08f4-e1be595f9d31@quicinc.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230628_083259_680222_8A9704BF X-CRM114-Status: GOOD ( 20.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 28, 2023 at 08:52:57PM +0530, Mukesh Ojha wrote: > > > On 6/28/2023 7:23 PM, Pavan Kondeti wrote: > > On Wed, Jun 28, 2023 at 06:04:29PM +0530, Mukesh Ojha wrote: > > > Module like minidump providing debugging support will need to > > > get the symbol information from the core kernel e.g to get > > > the linux_banner, kernel section addresses bss, data, ro etc. > > > > > One might ask why we would need such a debug driver to > > be compiled as module? What would you do if we need to capture more > > kernel data structures later? Do you plan to continue use > > kallsyms_lookup_name() to query all the symbols? > > You are on point, i needed this driver to be static but i don't have > any example at present to collect more than just _linux_banner_ from > my existing set of patches.. > > Agree, it will be easier to make this driver as static instead of > opening up the doors for modules to abuse via exporting > kallsyms_lookup_name() and also it will be very slow for production > kernel uses. Right, I unexported that symbol deliberately in 0bd476e6c671 ("kallsyms: unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()") and I don't think we should add it back for this driver. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel