Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3040814rwd; Wed, 14 Jun 2023 10:21:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JXxV+tScQZ14vQ9F1CVY31J7gsfWgC5fVMCuF13osVf8fg5Q3m6RwunCkcm5IjNTpH9xm X-Received: by 2002:a05:6a21:9983:b0:117:4d57:d3ad with SMTP id ve3-20020a056a21998300b001174d57d3admr3076954pzb.3.1686763292078; Wed, 14 Jun 2023 10:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686763292; cv=none; d=google.com; s=arc-20160816; b=xFD7vj47MwGaT1KjJFZjrx9lrB5BKQ9QE23NaEm8WTM8O2h+HBija26ZiU4gc7IfO6 GGpkPCUBrysxPnDCU5EjcPBi28mFkqsgosYMK63Km3w9fgi/rZmEJqP9B+Pjg+jwJYip s7oArzOTudgnEkiS4aXGRdZ+yhZh1ePQul3gaXTZka9dzs1cv5u/59/Zl4nuEC2OALOx owiRQAtJxeMLQJXFkVe3Ul1JHM0CPDXG7mLsUpoAtbuNc9uEG4ypsol3QgZ7+p0oFM+C jDExX5FrtfrvfvTv7Ne2pJ4QzlfdjxttohjQgv5DGwVrgZdrBX46xhtErOSFyRH4CxcH OzAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PzHse57bv4opp79PeT1dv2mWGxXGJza2n381yUGCxXU=; b=O55XuLt6qqinfKPkLX2G5I5fGvmhS5eAROcCXgILQj65G78fsapEaWZYVoC4MIPBco s3H1kILSnCgNnDT+MlXKHLeoWcxSRepzo4uE9l4R2oe0y8SVYJ/wff5scfLvnlg4Su7E /Fa6qMLTdxh3uVb7v670svXW/Nu+Jxb206oI3X1cqxMnYVZs4+UmgZt8DURCyuEHUNGg j9HgM1f/58uDtq0mOVkJaOeyqwFGs8C/zuvtHDtoKpfAoW0HuUz1X8nDX91v9p/+GW24 htS2MpRs7OvYGP4fkQnW8fqJc3TiEMSctPo1tuFK2jBuHxgBfLPw/24gGWo2iZufUAcd 2sOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lDm3enHk; 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 p22-20020a637416000000b0054fe0539aafsi862807pgc.457.2023.06.14.10.21.18; Wed, 14 Jun 2023 10:21:32 -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=casper.20170209 header.b=lDm3enHk; 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 S231458AbjFNRL0 (ORCPT + 99 others); Wed, 14 Jun 2023 13:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbjFNRLY (ORCPT ); Wed, 14 Jun 2023 13:11:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A70A193; Wed, 14 Jun 2023 10:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PzHse57bv4opp79PeT1dv2mWGxXGJza2n381yUGCxXU=; b=lDm3enHkz3oN3jZVWOiZa5CfAN 9SO2XxwIPaLlNlFCvB+JNkLMGoT2HxgeTEWt3Awr4f6mHVUHaOeEqWxK5kgL/U6BSeCpBSzz0ikBE lBRD3cGK42Dq0gHovPb0ygCMl1CLuOwHdGRo2xTe2/GWFehc/vokQ6J/pDXQeTi0Z9HV6dnGR/zzY OzBDX0AL5e4OP1kyXhw/WQhXiyYyb4srATq8xCFwkA+cIbROkfJQw06JTQ8/ojL7rlFeNaqouYPF4 dDlTKThXSBI4C1Z3fRDY1RcmFEBde+RSwF+GPscP4J3HkcGnGRabWk5YtKJib/yOmhRedVFvIw5x1 ROxzaOgA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q9U1U-006ZZ9-9h; Wed, 14 Jun 2023 17:11:08 +0000 Date: Wed, 14 Jun 2023 18:11:08 +0100 From: Matthew Wilcox To: "Russell King (Oracle)" Cc: AngeloGioacchino Del Regno , Wei-chin Tsai =?utf-8?B?KOiUoee2reaZiSk=?= , "linux-kernel@vger.kernel.org" , Mel Lee =?utf-8?B?KOadjuWlh+mMmik=?= , "linux-mediatek@lists.infradead.org" , wsd_upstream , "linux-arm-kernel@lists.infradead.org" , "linux-fsdevel@vger.kernel.org" , "matthias.bgg@gmail.com" , Ivan Tseng =?utf-8?B?KOabvuW/l+i7kik=?= Subject: Re: [PATCH v2 2/3] memory: export symbols for memory related functions Message-ID: References: <20230614032038.11699-1-Wei-chin.Tsai@mediatek.com> <20230614032038.11699-3-Wei-chin.Tsai@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, Jun 14, 2023 at 05:21:43PM +0100, Russell King (Oracle) wrote: > What I'm trying to get at is that we have arch_vma_name in > arch/arm/kernel/process.c and also a weak function in kernel/signal.c. > > Both of these end up adding an entry into the __ksymtab_strings > section and a ___ksymtab section for this symbol. So we end up with > two entries in each. > > Now, if the one from kernel/signal.c points at its own weak function, > and that is found first, then that's the function that is going to be > bound, not the function that's overriding it. > > If, instead, the export in kernel/signal.c ends up pointing at the > overriden function, then the export in arch/arm/kernel/process.c is > entirely redundant. > > So, you need to get to the bottom of this... and until you do I'm > afraid I'll have to NAK this patch. I think the patch should be NAKed indefinitely. I had a quick look at the user, and it seems like something is being done in the kernel that should be done in userspace.