From patchwork Fri Feb 10 20:19:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136403 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 0C1E3C636D4 for ; Fri, 10 Feb 2023 20:42:54 +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=yMmqrPF77LaEJ79dv/JGaNVvAW5jVSiAbKFoqUaYUik=; b=D2nmfqKtwuPYai vi8/YOGKVB5KoAeLqhzHkVzmXhiX/i0UdJLDxjty2s5XrC6anodmRe9jje7qMy6rSPecPH4iNza8O ikWtJvVfnRXMLByxTZabRVs4X4IIFNm4sGcv3HjTayccifGe98WWNyVZb0Dvs9TvzzEslS5cZWY6n upyngEEQL/unBdz1nk8sDxAQbYjlW15yX/imIRUmSDf9PMwymHndD67KYv79yqeRwM85vU3nrg/Y5 OEhKVqBoAEGIaoEcjwWjboklbxTuu+E7JWIbcHrWvclzZfebTlBZHciz4yXCWY72oOrw+yxTED0Kb PSXR4zaBXDUb0pIxrSDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQaEG-007SKt-5B; Fri, 10 Feb 2023 20:42:44 +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 1pQZsQ-007Luf-5a; Fri, 10 Feb 2023 20:20:12 +0000 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwjcu007847; Fri, 10 Feb 2023 20:20:00 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=aUX1kB/TU2UHqMvgNPxPrGes/UDAzkjMcV0iXLH9KKM=; b=PCuPJEG00CmZdaz7eatz5rRISXUlIJ/mNRij6kNYSCF/PYHK9HSKsN4odkMvmdwTuZdB WE2PTRnxv38pLdx2w45ICa9KmPMIQ/NbmSDOHNrjNOgBLd+AEsJAu2P7C5jF0cqyRUUs YyWw1ESEyR2gpnucSc4O63iNX+tGqJHkbEPuMzhjqmIVYKo2yX0ALddJ28eAtAiqX8TG dBjceFJ+CM2aizEOEPp7mtWAjsch76Z076QPkXCdHMLncsyXEoRtKLVGCgaLMZjup/gW RTg1XDyHoatJbkFlpgdedpNJLi7Eq/a2Tc+5mix+Og93U4POLFnA47KKtGwCh3djGqOt RQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhdsdx4n2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:20:00 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJxsES013647; Fri, 10 Feb 2023 20:19:59 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2045.outbound.protection.outlook.com [104.47.74.45]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtaqkny-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=crzC9oy+uDph46ZH2RLh4v2A1nIphzDU45U1y1ARGW6mCSUHgzBPcOegoB2Odn1jgTwKf9c9DfOaJY8KJxM+NDFsvTl1rNWfNMooaW2gUPuRz/469Xr6FcIdEewJvCo+LxcljVnYjLVzt9sZAeHPL6vi2Uz0AoRIfkPIMwkQM3WTxIk6KWCS2zcfKzBpBhbdifnPDZumtoxcVZ6chSrPoP/XBFfXd8RJgesIwhWcVsAb1m7qRuMbBOpCNjjtQFvBhVxDbnOcnFn8KRFoXZdDn2TIixN1KFKA6C/lZwgnfQaLJxjelOvmar8Fwe7OPom9BY9czwX1Uw9xf5oVBL56cg== 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=aUX1kB/TU2UHqMvgNPxPrGes/UDAzkjMcV0iXLH9KKM=; b=SdnI+hXfd0TAX5OcD3L3+qwbTXpx5K2MhjnS/ORIAo/K+V1r9q4DbynmKV3Q9UOtAeKkTNolfmyLAjc3Jm7Ltb/4JeYnHu3/iMxVJMhRz7BGkIGAwsx1LJYpHCStWH15eSmkQ3F7geycg6snUzLCCs3Kz5CSgWJbP8LUD/9oEwuKtttCwMMyUsNdctcz3IBKqTvEwtd7ycA61auvJ0F34+rSY83JESPH2YjaA26XBNMbcX/WxMqxzjDGVm55KaLufA1Qa0Q7V4Oerb0xO/ntwhRm/GiWw+gDYGgyBsAtyzMjOb0igjyLeNYT3vYbmJPgPZt5xa5X+eMkMNnWccCvMw== 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=aUX1kB/TU2UHqMvgNPxPrGes/UDAzkjMcV0iXLH9KKM=; b=k0FFZZFpN6RGzG+r9cbUCr5cnr+cDCdANMOBAsrXSJs56Sls4Diyg4tIJ6IwVw2pfzGmCFmKlVUxerksZdCjO/E2YLrF4geJlXW6MIla9BfMj2tH1HfVRk3TeE3TPbB/E52yrA+U5PtNAAeY2ZXwnq0q4Lh+sMF7wMd5Q4xB+rA= 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:56 +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:56 +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, Heiko Carstens Subject: [PATCH 5.10 v2 4/5] s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36 Date: Fri, 10 Feb 2023 13:19:38 -0700 Message-Id: <20230210-tsaeger-upstream-linux-5-10-y-v2-4-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: SJ0PR03CA0219.namprd03.prod.outlook.com (2603:10b6:a03:39f::14) 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: 0712abb9-24d6-4cae-32ff-08db0ba42d15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hoe+wSKouVUE1uRnZ9z08pA9auaAra0WaHra6NJpTKFVcehEm1Fv/SY1cCugzAMZDDHYbYrTVEFEboSOzBlI3KYS9veWHgGF0tZ6+FPeOBybobMf5v6AEjPUHpcZHRiqPobjOjx3J2NqB2b1Q5X2PjpwblIIR2v6c8F0Ofh9DkgFqgNy7zsN02Wts1Mb3j6HykHjc7B1xPEPXK4R6WgpKvBumsZDM8FgLv7msWXFhLbLG+Z0sqse5HXB29kdz0ifrirlz7NcvWhMU4P7LY8OzYxPkIqcjjen8abfB0M/uGVskxbWSdVITFHpKuRlidL1H3NyF3be5Cl8UzcZEXkLdhTc4AMj4MRUe+zQi6R3yDPO49v+hlFrbAenrTXFLpf/0qOuIAck3KNQq/Jn8zOtPMNGWs4cuZHAPkN7/aENRdu2BLG2xt6d/EZE7pvH3U+m/+B4FmEgtajupV47xUwUh5QB7p4AV07RSHw+J9vaivNEowlyYVq3V2LitvkuZCENwbOHaL2yoiA3ErKKuj3/FLYogZL1bmlzCBZ/fOyiNwmczeI+p3QmS+LDVhVFSf+/6xnIJvBbzmnmaTtlZ+uUbPlfZHC6008IrL6y4cv9cT//2df3WCOuzyBmmgKobjDf4B1hLe5DZSKLb56o83NXeKMPhIiBHYij8bbogJoVQk7ZGJScewl7gGFT7u7URFT6wzEX3gQ6s+dLz+jZ7kGnig== 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)(66899018);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?K87Qy69Yp2AM1ROPOM2fa9lIUxfc?= =?utf-8?q?XylBrStJ6XlWXoOemaeM07O5+dSY4+uZhq1nnyFjPVy2fyunWdJQ2An3QD9CM2P/w?= =?utf-8?q?sIHeO+Gy10CtCg6t43GoBFVpuXEKywM7dwKj6CxoWhoJW9no58gP9UPg6bTFzhnot?= =?utf-8?q?78muxJVjAeRq7+4CuNhEhX4rqXGGT5MHK7z8yC1ciXb/Xp6oMIRVmie0aGuRiDce2?= =?utf-8?q?7GbvyToBQQZvmTu+ZlASd+Z5otCl62zhHKHNdARNeOpH7VnwsO4KHm1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DzHrd9YV2CmAX/LywmyLYAt7U6Y?= =?utf-8?q?I7Uk2m/q4LKy0GY253lcAtc1uU/flcWjEqNWow33o+U8g3qRAOqXbTTSw9mEMCtBH?= =?utf-8?q?+3NKdaCGwGqY+Ve20cBYCSslaMfxdwK36e3aOeHvAFZYlOagnNCDjqfr5cAdhj9tJ?= =?utf-8?q?WCJOhpoL4wUUrGvYLc2ktF+SbCcmZNsBQkhb+AgjzFVO9Hkj+b7KIedd68QVqq9dt?= =?utf-8?q?+eY3+yMYs6tAsORCEN1eWZOQMWGYHaxaQDiNvwZrV/VlYA9QZx+3gzsf3tlWkYK0n?= =?utf-8?q?uhG+FfzL3McrOFZoJJS1TCij9+SK22vfbwv+yk96W5ve1PL6KztRxPiJHtQ90B+Xj?= =?utf-8?q?qm0FqJ/ZLYat/tw7DMxgyzt2ytRmyz1pZM3uh3mKAwn2PuxA9NogEeFtzOXDWuUbO?= =?utf-8?q?I4vxTD3kdXj+PagHDxDM2riR3X7hnE+WZY4w5UVnJcxga983juiGpQE=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?/n78KStO4++Hbov1?= =?utf-8?q?xSSNMMLh/6+XGyfvY1i3Wr+xsbQZyRDZ8SSXAv83GPb49fD2aCV4+Eqx+4NymNIxf?= =?utf-8?q?fCyEZTkozp2gBvdCzNwBKIgghznRPpAyVLXsgm5f4xM97r9TrO0A5gRqUgu7k9f/C?= =?utf-8?q?2N3okoO0kb1UVzC1fbhaBLfWOAAL1ix0VS+PW3c4W4G1oimRuGHXzsJ3x2assLh6f?= =?utf-8?q?6ElD3AelBB42kc9wE4NSdlznr851bnc7qCEYJtvkrOhJjIMug8ak2KxKGUp6T6K3Q?= =?utf-8?q?lxYd7MexbX9yvk0NYvDPq3v44celAePDHZQezm/kmZRJuUhLnY8oXfA9/eLkiG2qm?= =?utf-8?q?hsETjZwfXcC4mc043CI59lctAbQj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-Message-Id: 0712abb9-24d6-4cae-32ff-08db0ba42d15 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:56.4775 (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: cp16qw/DsRlieq9J+1G/jfbsbIV7W4mE940LnWYHCgl1y/5CBg32EwMsOyioS67oiaAP6JxJc4g3fyviblZdEA== 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 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100173 X-Proofpoint-ORIG-GUID: jWalbsQuWtNDHu-LvqlTa1rm5MQZKGpE X-Proofpoint-GUID: jWalbsQuWtNDHu-LvqlTa1rm5MQZKGpE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_122010_390870_623765FD X-CRM114-Status: GOOD ( 19.48 ) 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: Masahiro Yamada commit a494398bde273143c2352dd373cad8211f7d94b2 upstream. Nathan Chancellor reports that the s390 vmlinux fails to link with GNU ld < 2.36 since commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv"). It happens for defconfig, or more specifically for CONFIG_EXPOLINE=y. $ s390x-linux-gnu-ld --version | head -n1 GNU ld (GNU Binutils for Debian) 2.35.2 $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- allnoconfig $ ./scripts/config -e CONFIG_EXPOLINE $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- olddefconfig $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- `.exit.text' referenced in section `.s390_return_reg' of drivers/base/dd.o: defined in discarded section `.exit.text' of drivers/base/dd.o make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1 make: *** [Makefile:1252: vmlinux] Error 2 arch/s390/kernel/vmlinux.lds.S wants to keep EXIT_TEXT: .exit.text : { EXIT_TEXT } But, at the same time, EXIT_TEXT is thrown away by DISCARD because s390 does not define RUNTIME_DISCARD_EXIT. I still do not understand why the latter wins after 99cb0d917ffa, but defining RUNTIME_DISCARD_EXIT seems correct because the comment line in arch/s390/kernel/vmlinux.lds.S says: /* * .exit.text is discarded at runtime, not link time, * to deal with references from __bug_table */ Nathan also found that binutils commit 21401fc7bf67 ("Duplicate output sections in scripts") cured this issue, so we cannot reproduce it with binutils 2.36+, but it is better to not rely on it. Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Link: https://lore.kernel.org/all/Y7Jal56f6UBh1abE@dev-arch.thelio-3990X/ Reported-by: Nathan Chancellor Signed-off-by: Masahiro Yamada Link: https://lore.kernel.org/r/20230105031306.1455409-1-masahiroy@kernel.org Signed-off-by: Heiko Carstens Signed-off-by: Tom Saeger --- arch/s390/kernel/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 9505bdb0aa54..137c805d6896 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -15,6 +15,8 @@ /* Handle ro_after_init data on our own. */ #define RO_AFTER_INIT_DATA +#define RUNTIME_DISCARD_EXIT + #define EMITS_PT_NOTE #include