From patchwork Fri Feb 10 20:18:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136360 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 2534DC05027 for ; Fri, 10 Feb 2023 20:27:07 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SId2KwE/TQ7WVCar+DcN63XrxMr6jjQ9Ud7GYGqcd7c=; b=Ylf3IU3HdSPo4r Th7RwSUDurDt8VXHcq4EFyd0VVuVyYKDciQS70KRx4H7OB6F5NI4Ze+RinfQ8MIT/8yxPBQ0VVJ76 Km7ZLXfQ7ZXB+CyIN5uPUusOTd7/i5BWwbxxg9qG3sO44sJ93yJOC7IdvUIiUhlVu9RmQ+zF8Ei3v DEfZ6AV+jyY167RJk6d64B5XxYojdl++keRE9aR5mzPKXvqHGKNVmgpjFU1mb2KQbOM6UUHR5jpWN Kk32z9FNNcaD0zzBEEEqb8YpfC3JdIn9nIv9NaTeyB6jFfy8gDAPun07zW9tLeFj0cL11W8PcR1q2 aLKPqhj59azGsdE2j6VA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQZz0-007O7m-9s; Fri, 10 Feb 2023 20:26:58 +0000 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQZrV-007Laj-M9; Fri, 10 Feb 2023 20:19:15 +0000 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0Bso020866; Fri, 10 Feb 2023 20:19:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=cdMFz4JJXYI0K5BiGbqcUzfos2yoHBp5IakE4YK4bqg=; b=26vr35gHvidjqYHGVQN2LOYGvcEScR/W7fGRBb4qU3Is93w8ZDcWf8pLi/SPxkDK9Fas pmrTnVMYl67HKy8CRISC0xjLwaS03uK47wzmdnnNbjeWCn4zejC2QNfSt4N5UFeOuSSG VhJ0dKwK8xz4hKJVwmn/2T5U4FzquCZihIjq3weIr+75qMiXn3VtDPPxa0AyiqR1MFH3 mnRljpW9UnrzT6u7PNVw8XAyBt9hcDa0lyvF2IDJNsnGv8Er/xYybgnT4rMPQ01q8JOJ ISw+JKLnmb+rCKGECD8AITTEG/0AS3O0HxeLKfQu6RfNijrRYREA+D7MNrHz9xlJaqVV Kg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhfwue4dt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:01 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJbBUN025851; Fri, 10 Feb 2023 20:18:59 GMT Received: from outbound.mail.protection.outlook.com (mail-bn8nam04lp2040.outbound.protection.outlook.com [104.47.74.40]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdthtecw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:18:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qp7vvrfzNU2PQ+cGS9ydmUB0x524TAUmLLAIr0qbZdep8+aiQrWeYPma18AFqllkmX66KvVZ6MjjsG0fUK+HT9KohSvniubnKhMJwglhGKwRBYEsNsOjRG4jsMgqhAsIgrPnoURIrnMcadVMAf2eCih/xr7hDG4iF+7hBKabY+VMf8AxJ7E9xZwBCQIfEShP/TkWUzWK+t9Z6QoqPIu44TylIgYU8CjxFQciSX12f6E+QSh13rcG9Yqm9lLLbUrHrG/4dbzqa37DLYvDD1yZF5XFYaCxi1xIs/g89S3+S0m5qqBsbv2GHbPhr58sH025xHuT9DjExmltSNDkoeFNGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cdMFz4JJXYI0K5BiGbqcUzfos2yoHBp5IakE4YK4bqg=; b=oNbC4GqsK616Wbi2qLD3evuMTLoaBQ1TGY0M0Vmhd9owsnrpnjTJz0vBTDRmT6+/L/itVu5fqt6zT8Ad4XaAE/B4VEHaSxlSpKzOsET8eCuGCfaprevmYbok8VsJLW8zulCA8TrneDPXPSPFgAR82JV3/OvgIvENRqrKg2tDUNg2MtHy8zwkWH4SgDaK+hBLRnAWz408IWBOMfyMjL4sk6rRnDVumugZ1n5l4lG4+sqf4GNztab18vtzdz+Go8H/L9ZvLZBNYVuqp1iiTRj4EB4PDEBcu4nqjB9GG3k7kFNmhxS1hW+tFALJtWfKZgJKObnxfEPfVfs0pZHY8WS0ug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cdMFz4JJXYI0K5BiGbqcUzfos2yoHBp5IakE4YK4bqg=; b=V0Lhv49Bl28lVyzBre5cqiDBU3CGmiEF2lzlSPNgEDmEEhU5upV2Mnx5Rl/RM5rOFw0PKHGs1hZLSr+sfEllsI7pzQrG+0+CM4pYi7Pn7O84QryhBVZQNhWgg0dpmSb4WrOrOSM3s3MTgQn+UYiJfgf2Il30/Tz+pIpNRA0as2I= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by CO6PR10MB5652.namprd10.prod.outlook.com (2603:10b6:303:135::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Fri, 10 Feb 2023 20:18:57 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:18:57 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Michael Ellerman Subject: [PATCH 5.15 v2 2/5] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:18:41 -0700 Message-Id: <20230210-tsaeger-upstream-linux-stable-5-15-v2-2-6c68622745e9@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-stable-5-15-v2-0-6c68622745e9@oracle.com> References: <20230210-tsaeger-upstream-linux-stable-5-15-v2-0-6c68622745e9@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SA0PR13CA0018.namprd13.prod.outlook.com (2603:10b6:806:130::23) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|CO6PR10MB5652:EE_ X-MS-Office365-Filtering-Correlation-Id: 47a09f7e-52e3-4da3-caa5-08db0ba409aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cllpaNzF3a6DW6Dln68Rr+2mszEenCw7ellzEQJDC89HAPPH2lohv+OjS0W5uPOgzew0iMfL+zWQ/JV80z9r7K/1DIcMVebfuGYsvz7cVsJ5t+qX+elsNWXTmmIYZnND10nXhQMjSBOhmfLXHYdjkubzRg1iF10sfBnBD/zfyuukvrkiFkoeGThPbcubW+s3Ywt/r7hq5EZoej3KwrgOXDG2yGnHOhXdnWMrV2i54ZZdcK2xJEMGAOsiKkXSx28psGSCBgPncJDAgsbPEmfZ0xK8aek4+iqxEYJN+1XXo4lJLyXVhHR+2VFIYTitzawRVi/Td77phvK+rfI+wlithsdJF++/2UzWDrxP70bIgKfVjlWksfXbERmtdCyPGQRQGHsjhbnxlhv2GCDR9tU+N6uV9u951Y3vdrhk9TeQ2TlCxljfRy2EAjV8MM92ClH8+82LblCSaTH2wZJ2oa89/uSK6YrMkKSpgfpzPUqx8z3OdN22M3l4l7fQM25RNJREm09fcjpcjlNkoEhVSE5GlDzN8DRHpx5oOHNoYkSI1VRrXfakhQA1kQIP4eefqTobKE7fjTS/OqLY7dSS+rh1vJM/paUZNufPgYqcGfCJlax/FpzYh4UdKjusZbA/XeNwpu+uLuFfbOYqYngRtthBu8ea1uy5imF3tIHXLvAoAb8dXgtxi2U0XifpaCAmcqrOfaqG7EAh/JNtTQ7Y05PrVA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(376002)(136003)(396003)(346002)(366004)(39860400002)(451199018)(2906002)(36756003)(966005)(6666004)(6486002)(478600001)(6512007)(86362001)(2616005)(4326008)(6506007)(6916009)(8676002)(66556008)(66946007)(66476007)(7416002)(44832011)(186003)(5660300002)(316002)(38100700002)(8936002)(41300700001)(54906003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UBcwvA0AvWu4nX9LQqwOgT3jM5vP?= =?utf-8?q?eWhDwD2WnDbemD5VXfEsc5tc3cBKude5Cxj/LIyHedVGQyJC2psE6IMBIXkHng+Wv?= =?utf-8?q?6mswocowKsglxX4gmzDjLvv1pouWEDgnCkKHNcx+IemnQtLFnXhZJNgGE0jws29Hw?= =?utf-8?q?waa0NnHw4tR04OoC1Nj1RK8RYwzwQc12klhBTd8wxjF6seCbWB6aDSLsJu70yr/Te?= =?utf-8?q?DrZk2AkttSxLlM/tVzeJdvQ5oaVJGgrpKQGU/cfbOZsB42CJmwG9qpaW3b/NGpC6r?= =?utf-8?q?f0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/mlvg+hmbtUEPbA94TLLX27BYVZiy7Gypp2JIUeMllXzubQz5fyb0e?= =?utf-8?q?DIRYIBZbPsCk2IAoF2KpYqITy5zfKiUjBGZNTx41n9x1HZnMUVs9L/tl17wcrUwYI?= =?utf-8?q?XrAEIs8EE5WNfXo07PV9hxxIWO42b9WUzowF/j2xOwfN8lkBQlG5/eiejc7Bw8u/j?= =?utf-8?q?6vMsV96dwXB6tM5hhNzVIig5WzoBTjMdaKgCDqehtDjB6J75FP6TS6MAi7482iA8P?= =?utf-8?q?/f2A0JBKLLjs7Cx0wweogoov0NSSkxK8iusEmuQM+mMdxwoEyZrHKMIt8+hUeAzeT?= =?utf-8?q?KRQ9UwU1It2oRydOFnbYbAk9f9Yn45fmo2OTUg9t/tXc5vl+Fz7N+EYIYLy7+W1vl?= =?utf-8?q?KNrxjn5bJJYYqeNzHn+xgjbNwT9wnd8tZrgVLW+nfe6EWbiGLnAhaiw=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?JXIzDlU2Cf0x/H7Y?= =?utf-8?q?fKUlY/5MRGNg8HWE+l+V4S9B0lSVWXironh5qfMgMU77ejv6UayxjkUoq/6529iy5?= =?utf-8?q?450Fj/iRM3bTE587rqLnctL5lB5MjTuicn+oaw5+N3VzSWCHmyuXArARDH/eDY9qd?= =?utf-8?q?gJg4zngput6jI+hbwCzWCGYcTFNV+s1FrfA3/K8bFivWbSjzcCPUi428Q3zBGTCZF?= =?utf-8?q?HgThzd32x2+ZeiKgGh3mgXVMD/LrO9RKJ1DVonBVMd7c5qphHZCXN9XcJY9TV2tm4?= =?utf-8?q?1WEa/6h6ceSC6feN/MlfV5nr7THizyaDMex76dLCkXq1e6LH+PyAheuzUbQSkBlgY?= =?utf-8?q?b3bFwfnaoUY2DyW28sywFE8B0r5SYQOfn3igaw6MLc+7VKl0i6l6gpZ98hE06r5Nt?= =?utf-8?q?M57Jt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a5-08db0ba409aa X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:18:57.0286 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Lt35p/PbvbGV15huKJAeJLsK5WxdYDvdVMdBnW+fF4Wf3ZUcVZArmbwob9Nvwqap5AflJXVxn3xxHfJiU+p/zA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5652 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100173 X-Proofpoint-GUID: 9R6lUaCITpmDTPqmHX0Kh5jrdFIqbxpo X-Proofpoint-ORIG-GUID: 9R6lUaCITpmDTPqmHX0Kh5jrdFIqbxpo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_121913_841230_A702D1E4 X-CRM114-Status: GOOD ( 16.88 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Michael Ellerman commit 4b9880dbf3bdba3a7c56445137c3d0e30aaa0a40 upstream. The powerpc linker script explicitly includes .exit.text, because otherwise the link fails due to references from __bug_table and __ex_table. The code is freed (discarded) at runtime along with .init.text and data. That has worked in the past despite powerpc not defining RUNTIME_DISCARD_EXIT because DISCARDS appears late in the powerpc linker script (line 410), and the explicit inclusion of .exit.text earlier (line 280) supersedes the discard. However commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") introduced an earlier use of DISCARD as part of the RO_DATA macro (line 136). With binutils < 2.36 that causes the DISCARD directives later in the script to be applied earlier [1], causing .exit.text to actually be discarded at link time, leading to build errors: '.exit.text' referenced in section '__bug_table' of crypto/algboss.o: defined in discarded section '.exit.text' of crypto/algboss.o '.exit.text' referenced in section '__ex_table' of drivers/nvdimm/core.o: defined in discarded section '.exit.text' of drivers/nvdimm/core.o Fix it by defining RUNTIME_DISCARD_EXIT, which causes the generic DISCARDS macro to not include .exit.text at all. 1: https://lore.kernel.org/lkml/87fscp2v7k.fsf@igel.home/ Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20230105132349.384666-1-mpe@ellerman.id.au Signed-off-by: Tom Saeger --- arch/powerpc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 1a63e37f336a..50a04347ab05 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -8,6 +8,7 @@ #define BSS_FIRST_SECTIONS *(.bss.prominit) #define EMITS_PT_NOTE #define RO_EXCEPTION_TABLE_ALIGN 0 +#define RUNTIME_DISCARD_EXIT #define SOFT_MASK_TABLE(align) \ . = ALIGN(align); \