From patchwork Fri Feb 10 20:17:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136349 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 E7E7CC636D4 for ; Fri, 10 Feb 2023 20:19:56 +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=ZO8cOhfvvttVP8ovRlFVqoovbx31Ir7Vfo0tRpS3VSs=; b=ZJ1/1zTFMSBvLR i4PwCbafunzHfK4LLL39/icWRoux1TN8kqxPdJP8P0+KqAG/lI9FUc9vYALCfX9jMfeOY+nXoKBa7 b3Vdq3uJ222e3UtcKzQVLLAjWkc/4v0hT8MbNxMtgZ7fuuy7xDNVZMmASrKAjWSzpnFP4AkwAyBDz nPd437Wf4khgwTQughc0EzF26IGOqOYdBwQkpc99aJDfM2DpZIGb5CIbS5Oovf7s8XFTQfGzX+Pah W9Q48RXi+St+x4UQfKhsI2uuOGNtGb/1wh5e7WJjkx5iKyb9HoV9JWzwQtFdF5FI854kijMFjIeQ/ y2HttEcJNh13zBvsFSNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQZs4-007Llv-VK; Fri, 10 Feb 2023 20:19:49 +0000 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQZqG-007L52-Ds; Fri, 10 Feb 2023 20:17:58 +0000 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwjCg019453; Fri, 10 Feb 2023 20:17:46 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=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=i/3uciqBgy6RdoIxlBz8uLzfGj2kAc41dUxm0UWTYDjxotZV3fFZkZUAHQ3sndh6iHkA UR6i78f830pNegIFPOz4jzWS7bSjFCP39dstbrGu4viMmWRvbuh+xizWXWwsklboQ4Hp YwBXcE3KCZSbwdcao/UmLeBAQSa1QFDFjaoi3CDblCm9qUimTBlJ9LCz94MD1D/JuIlI db98PcK2Csu8lIq6izP1hSaeIgrl3FAh6q+iaI5Vhoh/ru6GDuISLkjb43eIJ8xJWCMU n7rvhkaSaYfhGpdy4Rid7WeY+59Nr2t1QUy/PKPno93wROrHJMyh7opy1wci6bjSUp9R gw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu68g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:45 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AK7LJ2015207; Fri, 10 Feb 2023 20:17:44 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3njrbf8nb2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XAfP2XT7efaHkAUCRfCcKBZtxUIyI773SVEqnaLYLMcODVOI6J/nbVFNU245peoP6EpmB2tNo9Dqp9p82/ScsBpZR175X3W+2Rs0IaNn5czIeLHtZ/DmbXQ7a72NUFU/7R2ihbryA60oqy8BgPKQtY7dBSCwFBBudkBa54Em8GZhcQC2DbYbsAoW0QnMcJr0Gguc1JxmdK6IcUvVfT3psp9cRLTzMgBpTom7yAdAUZVR+KMyyRl9maZU1jadPm+weLKdLXVqNcRk/Xb98RjpGIULsMo1TT3+fAcE+zToUNV4glo6deEzdX2n4mOOkRzdpGmT10l8MktPZqB1EFr0wQ== 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=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=AZYwDhVL+EXW3AKjNLFMKDAHmcPLvovtCcKu8ukrlSWBpUVNWMI0UZsRRjuMOIn6JWboUjkfF93dfsX9ulRktjgUYuTLF68IqzTLgZbby14A3dSJVi+j6JOmvJUAysCOqNh5m2ileMteJZ5hC/roehKstz6X02pKYFKI5vRX89DD/Y784EfWojuHxLmEkAkSGZiOc6dnSN/OfTQ5Le/jJs3qfdiMTV6IPXzAoZmEr7gcLnByG4NIX4m5J4efPm/Tcu5Hi2T8UKU5XDjtFmuKZHZ1RRMw5ed7FdPEXdtHQbRagXWF5ZklighgFIYyPMnN7zcY3YeOzsl5v0ihcRinyQ== 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=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=a6pdZXdsKs2I/j8rHEggjC72v4QgwSFx1s0X/7JTWNvnYVGvSx9vPSRsFNp0zMcBCUdYywl7Wl0ZFRz+zz+LVlISRIzb8D1PKLqzHXMxDEqY/RT3OMqfUi/7U/jRbiBQ43m6bhyNocjgyj2vjm9zhxxfCcG5LuMWUPvZUxFCV/E= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:42 +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:17:42 +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 6.1 v2 4/7] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:17:19 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-4-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SA0PR11CA0044.namprd11.prod.outlook.com (2603:10b6:806:d0::19) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 4953db4f-ad2d-4c3c-bbb9-08db0ba3dd4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UIz/tEG/x6geHuuQLW0Lm4ByHMi2ASKOrjiqwrbITNTUjQnxT+TY0xOFuJEJrpSkVAPpspuyhNnEezbq6oGAbQnDYah/tpGUOOnA1TqzJwHlsRkHq3nDEgEFLzrIYekdvQoKXmzmzPuElmOG88wtYm/oUCkG71sFtlr+5O+SYhpViX65iVpJUvFN+axzLdUt2FDtQO5iD34SDysd/1wkG0a+4l5JfjUVnwOvEjy/QTy8qDZNzPKQQibAqjVBAbe9CkSWjVlAuzkYxZxWx6P7KdLZ940zwLG/rL/brWdAF5EPysEleVFucnIDkKmOqvrJWFsOiDB1T7Kfif4O561VS7OgDdut/dTD9H3hHMqad661HefP+HYOxjcW1zQ3kKniBax2nHyemesEChmpszsCdQzm6o6UGxOsEsNzyS7MDvvkTZ6tL8uhPXV+gIFfrLQDt8oLHK37YZSywzqZlr+1Z2tZIjBMR1SC3rOEEtJuEj5xBoYm76EhM5RdEoNdanYuav8OMGiEylaXuGsrskmvoaPLw6b3d1p1HV+JooyNNMAFGLgwy8srBTijMpPoCE5Rj72kWdSDOxYmJL/wQEab8TPwLfH7doZUjR/h71dKCWe+SQRNh24XH/saJcWSJNIc3U4aUv10ECPZWexUfcKBCa363QlmkG2AbX/J8LjmvsH3HP2YOOyyNKXnuU8kX5fVx07TvacXbf1sMyv8T8X7YQ== 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)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ObFvCDcwTVLCk91EyXiex+Y8mp2s?= =?utf-8?q?/7GxzT5snMW34KuXo97EsJKhqhPAtMuyf7yP4W1E8bV9CMBY0+yzEImzreudyVvIm?= =?utf-8?q?6dB0KPw5wbjV8Wn0ZTXzuw4NfSpgV9s9sRCyjxhsRfOfnX87MWImtFzr/oNqRvuNN?= =?utf-8?q?TJaUQgMoyvSmxfkwZhznOH/27W31IP0+Ecs4RFJpEdzBSWDS2mO/Pmj6TbCvEOZ0o?= =?utf-8?q?homdSJr9nwmbuiKiJUXHXp15T1BbgF7ARLxWZnOjHaZC2yWSO9o8J0oO22UL19X7g?= =?utf-8?q?DqtoYMo+u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8LZto1oEZq3apdGbPqOadvALGHD/y8uqxIVEqgnab9oDMdC+gS8IfG3CSK?= =?utf-8?q?5is3sBb+gveioLYWBfGPsnbODyvMaFjJ9Tf8+pGYWeeQBX9ziI7GXnkAtyf/tGa2p?= =?utf-8?q?xvM/hcgSj9OvkwOiiBfeLLjFeLdvsC3rkXZApNRHtEi7GWGVjv1q+lQ3eLZWUs50c?= =?utf-8?q?xWrxiUi9psVbRW8x/1kAIOoVn0OEPUeYNZsh369J7jcorXxcvlHW/RVjCCVhSWynF?= =?utf-8?q?PKGwv6Vgz50Bv6VQfSdteilIPc6hTDVYaZomfkijTJXHwhwJFRkui0fASeKl5jOa3?= =?utf-8?q?QCzFvvN3uzVk7Mn3i7kE4z78QvlR0fqMFp5s0w0uAT2ORQRR4JP9BVNRcF/UPSLd1?= =?utf-8?q?XDfsGjPHxlQMleu0tQebV4oUgiUig+omefL+lhc2Mq9KwJCnN+NaZVk=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?Xq7wn9tWn5BH1eG3?= =?utf-8?q?oWog3LAOkjq3A7rl8bp//Z91SaGv4quyZ8lZ8Mh98JmjK6cSYLiuNUdaQfTRuK4K1?= =?utf-8?q?op7ip4eRBVTpbBZfrMXiGC3LUsg7VxNTloYicDLm7mZjBQWB4HpOOif4mMCftOiBG?= =?utf-8?q?D5ahF94NiHTtkkBmNYzMFo5XvtJZErm15Rt9EMAg17L8cEexbSdzubB6pHU9B+IgR?= =?utf-8?q?Ft3nCbAwNXLDEQPb1QYs7niCI04fJorDbDKvUCCALmmaXu0bVaLBSkYpdfYJSf15y?= =?utf-8?q?NmFuhBlYWZgLtcwY6HYXj3u8C8RTK8V+0NSsjYslMHLCvm11TcTge1Nd6tqufpss6?= =?utf-8?q?9wW+6VHDXNXLNXwu9YJJocDCHig1MAlBnFCqkDlvvR1tY9p8A/ABner97/NmnFPB2?= =?utf-8?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d-4c3c-bbb9-08db0ba3dd4f 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:17:42.6278 (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: py6r9x255QxbX/ZnlG+O6bnp+U8JmVux9v7qA9jNwMF0NgHtN3OM1ElRI90mbFuONCQwgt8G/yqSw2q8X8UUFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 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 phishscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-GUID: 2p0aWzaMFdSk4rOiEdhSD7fWktyiKJYj X-Proofpoint-ORIG-GUID: 2p0aWzaMFdSk4rOiEdhSD7fWktyiKJYj X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_121756_626629_CAE71F3E X-CRM114-Status: GOOD ( 16.65 ) 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 8c3862b4c259..c5ea7d03d539 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); \