Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3606944iog; Mon, 27 Jun 2022 21:34:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umt4pzIbYsWsq9o6BgZ1ZFzRB7yQmrqvXUGeQ/fHUnjAww9wlJ0NVUWaRKrVbk3MOEbvnR X-Received: by 2002:a17:906:7a54:b0:722:ecd7:10c4 with SMTP id i20-20020a1709067a5400b00722ecd710c4mr15472648ejo.693.1656390865023; Mon, 27 Jun 2022 21:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656390865; cv=none; d=google.com; s=arc-20160816; b=i/zquIW8eGQupwHfmQsXuez/Gtt+v2kv1+StjcqIrWSNYxKyBu/r8avn+fhKaCFV21 n8q4PeLKQF6eoGk0JOKiIV4dbvJknG6NXbeUHfurXQJNfql8oG1kKu1m/FGqB00ZI5Ab 12U4xNHS7DNm6shEVj/XL3IHL7IUr5J3o3HIjwhcHB5/8QuHAsvi3+XiTDWIQQ4rtSzb YuPDHi+AOFDVFllOw/txNkiyj0A2LBM0i8WowCmpAYejsEbQXQqSWkiVZknQRv3SmANI iQ3ynAn7vHM51hEfB4v7SGHStZ8OOi6S+1YNuR4fh4/LEhF+ni9N55S4KHLnhUxuGod4 rAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=zyuDx7dZQ54/71jlwr3mCg06y9BFsCF0spTLMYDReVI=; b=nUCcnRl01e8a/ahLzW7vKXugMtbS/RvMnwfWGjW5/tII2m21rKGTt1v+6fGVEQ7D4Z vS/A5p9Jh4TZF6r8aEwEld+P57PKUo01uTy8hoQR9NgYR4J8iHbT19ZNj9JEflsmbybQ EGVTKVFhULUctVvi+LwTE67liALjfsqumyTrvrDKXy67J2lU9dlRk39bNDMn52Bf4IV9 L/lzWHR1dz+KCAa066Qy8QskLzofxM2S0/Bp0rPj5jv1PLjUAxs+DoOPRTgBGlYrlJq4 Cs2uicsubq60oc8/nNovJbLg77afcXAQxs2UpBms8BtvHD+5L8kFG7Oowd4eaT+QDgUH 0fNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz1-20020a1709072ce100b006ff03a0cdf6si15790928ejc.951.2022.06.27.21.33.59; Mon, 27 Jun 2022 21:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244177AbiF1EFd (ORCPT + 99 others); Tue, 28 Jun 2022 00:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243916AbiF1EFc (ORCPT ); Tue, 28 Jun 2022 00:05:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6362BB2F; Mon, 27 Jun 2022 21:05:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CDF35616D4; Tue, 28 Jun 2022 04:05:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3542CC3411D; Tue, 28 Jun 2022 04:05:28 +0000 (UTC) Date: Tue, 28 Jun 2022 00:05:26 -0400 From: Steven Rostedt To: Aaron Tomlin Cc: mcgrof@kernel.org, christophe.leroy@csgroup.eu, cl@linux.com, mbenes@suse.cz, akpm@linux-foundation.org, jeyu@kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, void@manifault.com, atomlin@atomlin.com, allen.lkml@gmail.com, joe@perches.com, msuchanek@suse.de, oleksandr@natalenko.name, jason.wessel@windriver.com, pmladek@suse.com, daniel.thompson@linaro.org, hch@infradead.org, Chuck Lever III Subject: Re: [PATCH v11 09/14] module: Move kallsyms support into a separate file Message-ID: <20220628000526.11c57cd8@gandalf.local.home> In-Reply-To: <20220310102413.3438665-10-atomlin@redhat.com> References: <20220310102413.3438665-1-atomlin@redhat.com> <20220310102413.3438665-10-atomlin@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Mar 2022 10:24:08 +0000 Aaron Tomlin wrote: > No functional change. > And this too has a functional change as well. Reported-by: Chuck Lever III Link: https://lore.kernel.org/all/355D2478-33D3-4046-8422-E512F42C51BC@oracle.com/ Before this patch: # grep -a '^[0-9a-f]* [^a-zA-Z]' /proc/kallsyms Nothing. After this patch: # grep -a '^[0-9a-f]* [^a-zA-Z]' /proc/kallsyms ffffffffc09df024 ^@ _note_9 [ebtables] ffffffffc09df03c ^@ _note_8 [ebtables] ffffffffc0e25024 ^@ _note_9 [bridge] ffffffffc0e2503c ^@ _note_8 [bridge] ffffffffc0e01000 ^@ br_switchdev_event [bridge] ffffffffc0e39548 ^@ __warned.10 [bridge] ffffffffc09bd024 ^@ _note_9 [stp] ffffffffc09bd03c ^@ _note_8 [stp] ffffffffc0849024 ^@ _note_9 [vmw_vmci] ffffffffc084903c ^@ _note_8 [vmw_vmci] ffffffffc0849454 ^@ __kstrtab_vmci_context_get_priv_flags [vmw_vmci] ffffffffc0849470 ^@ __kstrtabns_vmci_context_get_priv_flags [vmw_vmci] ffffffffc0849054 ^@ __ksymtab_vmci_context_get_priv_flags [vmw_vmci] ffffffffc081d024 ^@ _note_9 [nf_reject_ipv6] ffffffffc081d03c ^@ _note_8 [nf_reject_ipv6] ffffffffc081d0a8 ^@ __kstrtab_nf_reject_skb_v6_tcp_reset [nf_reject_ipv6] ffffffffc081d0c3 ^@ __kstrtabns_nf_reject_skb_v6_tcp_reset [nf_reject_ipv6] ffffffffc081d078 ^@ __ksymtab_nf_reject_skb_v6_tcp_reset [nf_reject_ipv6] ffffffffc081d0c4 ^@ __kstrtab_nf_reject_skb_v6_unreach [nf_reject_ipv6] The kallsyms get corrupted output, and this breaks trace-cmd. -- Steve > This patch migrates kallsyms code out of core module > code kernel/module/kallsyms.c > > Signed-off-by: Aaron Tomlin > --- > kernel/module/Makefile | 1 + > kernel/module/internal.h | 29 +++ > kernel/module/kallsyms.c | 502 ++++++++++++++++++++++++++++++++++++ > kernel/module/main.c | 531 +-------------------------------------- > 4 files changed, 538 insertions(+), 525 deletions(-) > create mode 100644 kernel/module/kallsyms.c >