From patchwork Fri Feb 10 20:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136376 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 2C24FC05027 for ; Fri, 10 Feb 2023 20:33:28 +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=NZ1UZj5Bu7e5mTrbxl2GFAE0KwrTaXK+BgMncHeIWbg=; b=aZnXcQPU96Cpcm fm2kSN0uTi08i3632QjqalOwZ4U4XOmnbmgU/2v//ApT4bj7ySf9m9VOjABlgBBxoIvCBUrvoCK8Z l2aIy+GlFOIt6Nvwd0TiIR/vbiDOOwbYOCX2r/YBhsINnnZew2hB6M7oOQU4ROiDATj8LB1smjhqS 0UiNjFr4iylpDx53+WTgowcBcAEIZUZjIX7kYav3Es5oAeksyzSp3D8tSP9Nhx3IufM8RXC1tc1J5 n3U6eOO3EvgqMEmkbjggDTtiHtmEhnIBu1xW48nPjY4G8KfkeG8Ir9Ge7DS41KqkFXGltFGpKr/sB KWrCgU5pXMVkzx/PiqHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQa58-007Pvp-C4; Fri, 10 Feb 2023 20:33:18 +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 1pQZsK-007LsX-MI; Fri, 10 Feb 2023 20:20:06 +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 31AI0AIR020852; Fri, 10 Feb 2023 20:19:53 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=Zztlk30BauT+Ce8jwOcRAGtBcHOOScbHyyvQMWkJ8tU=; b=PKXoKSZbSysxcr3sr3IeeU2lEi0OtPCCJmxbUlF+oyL7AGxQEr9MXk9FPY4IKtoApYjN hcOod+VG38XPJ0IspA2C0GtKqKH1BpO16VPzgWw3vPlRrBxntxFBbrGvlGPi/H4iUSuH 4STBlYpYezyQNHelmO7jNraL20QWw1cqW5FxkjUAzu6PXxcq6v/477O4DQccslKhTfTP 8csY7sXmKw9D/jZN61zmwzyBQISFNz8HZS69WXwA7aeSHeCUlrk/q7zZ6srX3rXfMqHU ufXoAoAEuiJPL0RjBXQ7KRs9leXzlqyW2yfy20l/jtThbob5cLwOvmjkQu3mW3pvsc6o nw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhfwue4fp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:53 +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 31AJXSbm025785; Fri, 10 Feb 2023 20:19:52 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2045.outbound.protection.outlook.com [104.47.74.45]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdthtf12-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=meP72UzqCefoEjbDrrywrZMiu/SHpyArUTVoXradSDWUZPCxy9Szwz5lZFqoQIsmMowWrFPgwW9zfuYr1fsndhWo8zDe3frrwP8dyAe1BI3f3vVYwCpzGEwtH0nGrXGC9uOyeYMOwVUuISQEzp7vFLt9IUPWeqs1oqc3deJZWV/xE3NzYYIhTnbsl4phGMd5vneqAcvU8rKaFCMnYQ/1cj2Jnfe5xQImzO1gqU1MPHbtSpVlaFJPUUcifrbR1DpIuDHLBXIOV2Xjso0N7l/xqaqt9zI1vfZbjZeSyX8m4/KpQQU/jgn6R3dms0+vzqmXeUxGocN68Sy5M88TpxP2oA== 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=Zztlk30BauT+Ce8jwOcRAGtBcHOOScbHyyvQMWkJ8tU=; b=EjjsXt+9yC3ze0CMobn17yHJM0KBFYlGwSobZylcO1svvCp6Fj2NpJe4kRA3uGZ9H3yHfXThxuWqXcSFXKGvOcl7m5L/fPikvjnzU7ZltRSLHGDaMCeL53o2r6cORd7IpgK1Wi6yojc44KxRIPciwhYiWMvacDbUYCB7Yk68mEC5mUxpxPyAp04DqMDFBaCB5e6UfPfiNl1JWqtaW+u7LBa+1j4/iIQpYK6fI4pAvBirUjICMa4OVUoB/XSw+I5E+/ZKfJ6cHKJacgbF0C46qc1o2O5DuJk5UuebD9HS7QZovTV/oMWWpLP4dTaLK1Q3sY6EKGBz4XQPmO1MSMSpvw== 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=Zztlk30BauT+Ce8jwOcRAGtBcHOOScbHyyvQMWkJ8tU=; b=uVwAszMIY4hUaZD8gJH7Rpxegj53+8aZUjiBBfn3ORHNjibF9WuPtru8m160y7EjWJx/1MuRLfo05XZRoCOzlKYiFnSzdjxDwDep9oqaqkE2ctv2TNjEWFSha6tAyTlE1+yKF6CmTqVvHDzoqv7ijrWMf0vu9SYoTeK7jNVlw/w= 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:19:50 +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:19:50 +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.10 v2 2/5] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:19:36 -0700 Message-Id: <20230210-tsaeger-upstream-linux-5-10-y-v2-2-ada7b8d36096@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-5-10-y-v2-0-ada7b8d36096@oracle.com> References: <20230210-tsaeger-upstream-linux-5-10-y-v2-0-ada7b8d36096@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SJ0PR13CA0171.namprd13.prod.outlook.com (2603:10b6:a03:2c7::26) 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: ef4d4272-d167-4629-e9bb-08db0ba4292b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S6UoErBKlDDwr+JgypvvWCeH04tvRgqKJND6VK0ljgpwU6s6QzQZHsfGHj18tk62WhsXzkeTPPSNWhXd0MfxLHsmi3wWulH6S+SlIZpbrsdvkgnw/P7wM7wiIdG/UmYphZcq3Q73PewMLvsr4Pbu3trpqj3BjWhppc7hbyHMaZuXlMojqaRCqCQ83ruqowmb8QQlkH6o16KyzzZGYIXlfjDK4E0zSD+9rIVwcxiTQ23ic0eHoYuYSEvVgFJhDNEFKeaZbdVgs71cD4x87hbA+Y0R/UV9iYWrZcP0FzjB4KdboauGjamaQyhMMp289u7hnv150Wmv0srarqBw1XuhyKkJEY1HYXCN7AB0YWpEBbCW7HuhbvfzgAud7sFuPcnDjblAVcbd23FLetPC89BBL1elJFXWrzfZICOZPKnqkwEpS8wDu8ejyHfOTN0ZBA1PUXhLnvDYUmYcv6IKmWzu8H6qd1EJdz+vodwZ9LPiJzdQ5ilHwOabBZ9U2ND1bDvfVmhJxIBgy1Q9s5j/Xk7Rl3cagjZcUYB0EkHB+Fbs8eOxGBXIviWkj1l1Ss76MTlWi/XQBVeTrSV7HhcKojdkmoZH5Zk+y6Yibwuj54BuFvCp7UuAuVUtd6MNilduwR6IGvlIKCFrVgVznyPn4lVxzUwHVlQtzwe9ut4SeBajsJX4u4bbqKU47UpnI0UzkIG8Pol+J6jjYdbuwmzhnWimGA== 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?Ai2JB/L1t1FRpH6uqRHisz8EQdu3?= =?utf-8?q?RfDrWpZPao83TmAVXY30axv5BxUGGCYMGjbshIuHQCvQOKqqsXF+V/poy2RSI46Px?= =?utf-8?q?hVgL5iL9VI7zJyGX2/hE0EGVBTkvF2XviZyL34rK01HoUv57Mo34UKDGCnoUXz9VZ?= =?utf-8?q?yqXQsGW5efFY5I0gXpBNXZtcmPVKRe4es+X8bcSvg+R/xalY4JCRAtfmOc6hFRFzj?= =?utf-8?q?eWH2yFcNmQnwemaesrAbBrK8XvEihMzZre7DDj5EzCcyLeDotrGW/YZJPNtQK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C?= =?utf-8?q?cNjgD6PB2LknkZj/visRCCqn8Ejt5iiG+8igxanfRRa8364qnOsJ8ldtw2Aijb4g4?= =?utf-8?q?6SsSEA9OUbCVcYR/ePPUP/Rhbh1ddBFvxuZxZHj99yp2UyagFaAhDZ5hLiRQtOWII?= =?utf-8?q?+ukppriunIxKt41zuoWuMxReSO6wvn7sWps49xCUNGU3zJj0ZYTssmo5vXfI1Jsfi?= =?utf-8?q?8M7ZuuF/nYcPzoyf88s5eetdKX97DbzTw/JeKj/UgpfLusGLf3jBb42RcNiwXyQ+F?= =?utf-8?q?BFcXebC/yYzcN4uxskXGc2QxOK44DWauRMdG8f6HBEf2T4ez5qEhbs8Y4bMYxOvqP?= =?utf-8?q?Bw1v6RJRHIidm7era1YjxlbeITCAYbhWsLN+5O6n+x3RhxSETSQhgWww7yi/W/kAk?= =?utf-8?q?LXxbSE3NEtUgH6ZEL3tbROWcGVx6UluiX5yzFkFADYvmStL++b2oKwQ=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?LEvO0tGqpZfH3nwn?= =?utf-8?q?Iy7Yi3he+6t68FoDLobRGFMBD+CJmYlTwI9cWwFVLeg3jaZSzJ4hm+fi17IcNx4AS?= =?utf-8?q?0oItKFTue4gR+503TvNpAwGSBXKfCXOh9je89HaQXGzz/kzfWSOlRwnm+FFcaEYLO?= =?utf-8?q?Yi71H2/8YmX1i9lCLb3gvodwVe6O2h27HXsTBYX5ddmyZS1D7stTrhkXescKRWymp?= =?utf-8?q?OaNCgxaPccoZziCXSudfIQ9uAXjJNz6raoMCMQQ9a7Vb1HWus8v+EHHMWpqBmrbZ5?= =?utf-8?q?CIcDYs6VNhFFijXlDW5qUJ8um+7Mk4UuGpDjFjMSaGnIU+3rDWuQBorfnvgLPClu+?= =?utf-8?q?1mI4jKnF6iAtmFtWVYppbKfVXvHE2rts5o6mGLyXKv+/h3Ww3zGVR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ant-Network-Message-Id: ef4d4272-d167-4629-e9bb-08db0ba4292b 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:19:49.8842 (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: XS/ZyJW4JSzknWRG/UBwLzyvKgaTz451R1CkRmQEcjrp3MAcrJIuGMYSorutjrDTOnDLAT0VHCE1IWQIZe0xaQ== 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: tEaPRlKyinHWM0fM63SamRKWUdYq8U8B X-Proofpoint-ORIG-GUID: tEaPRlKyinHWM0fM63SamRKWUdYq8U8B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_122004_841869_A6118B21 X-CRM114-Status: GOOD ( 16.98 ) 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 4a1f494ef03f..e3984389f8ef 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 #include #include