Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5387190rwd; Wed, 24 May 2023 00:36:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dr8Z6znv/hztq5gDo74IRvBbCKV36rig7yQ8MFz6HfcGbGyhMBVQgsy7xVCaltrpELt6U X-Received: by 2002:a17:902:ec85:b0:1af:c57d:1c7b with SMTP id x5-20020a170902ec8500b001afc57d1c7bmr5972741plg.32.1684913776003; Wed, 24 May 2023 00:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684913775; cv=none; d=google.com; s=arc-20160816; b=oxUbPAvVusbVjzyv8p4vYVcyFgNO9oBtN7lb+XcZIwNx/NFGT1jSHNddCL3q7yBayR YTeAMg1lbtIUVADHqbkuX6aDErUYe7sr8y7Po90e0fsixv4i1IE3JmijIkqolFRY2KNr XiTTbqxXp1ATtVL6wLbs10X2JpxJqhkzqprt1Aa+0y0sh/J47yVCMhgSUGA2lCOAsAva mKN65HjTmeTRDBCy2xgTUneympiNrNYBsUde1ik7Qx9dbAe9qRk4fkRhCNBI9zYGxYCj vcmbcoqqdcsDD0n4oiLggfoSqOF4+n32wH9CgjbjFpmk5kHxt7A2QQ/rLw3kYqHLqG+R sD8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lgMAk4mNAvXRq4u66gUQkOlWUTi4SucZWhG20iHV2qA=; b=lYEC/ZbZglFxelJzRdeos7w/a3Za8XHL2wB0l8+E0klq3O1r0NjjT/LCXSgRlsJ5pN MUR7oRB5VwJIMkmD+yHMx6JKgyaTAGavlfTTSjIjMn7VJmx5oF4qfkGyDCCsA47zMqaU yb+mXQwn8PszwJCih/Zz+BJiL/BbRIhK1dYKBqyzIQLwEsVkadtr09p9sZxQSiBCZb5j TnrW0d7NL8eyF4q8t18ze31eH74CY/OFLNSOgwOFsVeZBtaY2JeKVjYuoyhzvL1s58HI omnCP2RW3VAhElPtFjHCJHG+++24M9nMtGqE7eN8qHWamD2pI2O2yohmemiMG1jNhFnq Y5ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=IrTas483; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj14-20020a170903048e00b001ae57456ab4si5707699plb.6.2023.05.24.00.36.00; Wed, 24 May 2023 00:36:15 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=IrTas483; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239407AbjEXHYd (ORCPT + 99 others); Wed, 24 May 2023 03:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239229AbjEXHYb (ORCPT ); Wed, 24 May 2023 03:24:31 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A8DA196; Wed, 24 May 2023 00:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lgMAk4mNAvXRq4u66gUQkOlWUTi4SucZWhG20iHV2qA=; b=IrTas483CVgh9uJT70jaB6SKUR uDt76JhIVBau5lYeKSei7idTwu7kzQxYFYwYXOoi1hfSpZpauqEcYgbX3QY/P1B9oorB+60kEz83O axtRFjakKG5WW6CCoPuYV1ownJCh25YICaHCABIyMJ4j+eo7Er/J6rijDLjt7ciEudNZ5zCf3l0P5 gFUcqQq7uPY2GBr8+y65OHReABriQYGWZfJwGmYkdTsoKdE4ntgPU6ccPbwHO8JZ623vpUhuWI/7/ PJEk1Gp7bC4CIiCUVOb9Z0Bj2AtuKj+qogH5pJwGATVjd+ZJ5m5tZfdzzyHVecweBHAj2NQj9Wjqt SVa6e/eA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1ir6-00Cb2v-1L; Wed, 24 May 2023 07:24:20 +0000 Date: Wed, 24 May 2023 00:24:20 -0700 From: Luis Chamberlain To: Arnd Bergmann Cc: Arnd Bergmann , Andy Lutomirski , Borislav Petkov , linux-modules@vger.kernel.org, Zhen Lei , Peter Zijlstra , Kees Cook , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] kallsyms: remove unused arch_get_kallsym() helper Message-ID: References: <20230517131820.936553-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 Wed, May 24, 2023 at 08:25:13AM +0200, Arnd Bergmann wrote: > On Wed, May 24, 2023, at 07:07, Luis Chamberlain wrote: > > On Wed, May 17, 2023 at 03:18:07PM +0200, Arnd Bergmann wrote: > >> From: Arnd Bergmann > >> > >> The arch_get_kallsym() function was introduced so that x86 could override > >> it, but that override was removed in bf904d2762ee ("x86/pti/64: Remove > >> the SYSCALL64 entry trampoline"), so now this does nothing except causing > >> a warning about a missing prototype: > >> > >> kernel/kallsyms.c:662:12: error: no previous prototype for 'arch_get_kallsym' [-Werror=missing-prototypes] > >> 662 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value, > >> > >> Restore the old behavior before d83212d5dd67 ("kallsyms, x86: Export > >> addresses of PTI entry trampolines") to simplify the code and avoid > >> the warning. > >> > >> Signed-off-by: Arnd Bergmann > > > > Shouldn't this go through x86 as this sort of fixesss commit > > bf904d2762ee ("x86/pti/64: Remove the SYSCALL64 entry trampoline")? > > That works for me as well, as long as someone picks it up. It's > not really x86 any more though since that commit is five years > old and removed the last reference from the x86 code. Fair enough. > I sent it to you since you are the one that merged most of > the kallsyms patches through the module tree, but I guess > you are not actually maintaining that file (not blaming you, > I'd also try to stay away from kallsyms). > > I can resend it to Andrew for the -mm tree. OK, I just took the patch in, it's on the train, better get on before it gets lost. Luis