From patchwork Fri Feb 10 20:17:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136351 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 49397C636D4 for ; Fri, 10 Feb 2023 20:22:32 +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=oMMSehcDX382Wm7jXc0os24VfppRCsZiLxr/11JcoSg=; b=23NMNnHYvNNduX WzROSs3OvHG4ZmsBOnHUOB8GTlgYEY2qhe7drDqw6+lyzPWrGQ5aKUTnDaPAPHpnBcCGLsha8jZ/x 2WoaP+tEvsTkhHwJhr4VTEUgdY0wMdev/M8I9+kC3KErXlORQ7LgAAStlQAc7FHElHvzK8T1wUCL1 HiViKMudz65x+3WBVs686Ewlw9NOrIy8dTwxXUBx007O+vGwMFvq7UBx1ofF+77gDHlSzgDZwCV9c seGJVIQstAgLcE4L0J7VHu7NEblFPn7Ohew0SWCwRBE9yczp7zh8U2HtrO+KFHGVBoa3oUI+lc3iG MlHODOl+qsQ39AmEzFIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQZuZ-007Mi1-Mt; Fri, 10 Feb 2023 20:22:23 +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 1pQZqP-007L7p-4P; Fri, 10 Feb 2023 20:18:06 +0000 Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0KQD017186; Fri, 10 Feb 2023 20:17: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=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=tdTC5VrCnFeXnh+zoCLt4xb9vP5DazkIJNxumj8ppFekJ8t8dDlTWXmt/RfMzj3s4H60 EWndWoPUM97WfZ9mRk++9ja6Xs7kSDR60YNM4yYFB9IfS6AJAbxwLysTH6CTXjCMfruo KD/+Yivy1TTFXN/1Hl57jTVI1juHFhvnmAfu7bAMr/t+vQEtICDebg+vQjA0ludLm/uO Pcyq+buchPzFzwJ7luvOPk6qJ+OAGj/sxhqDrI7LJoXVyz7ykrRXnfiYbZEjTYiOnjlt 8kxBjplU1uxDPGGZGlnm7cqQt1w/5MIQjGtzH4LgCx7jPGUKJQgMsIugFmVS1CYBbnIf hQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe9np5n4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:53 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJg6aB003017; Fri, 10 Feb 2023 20:17:52 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2046.outbound.protection.outlook.com [104.47.57.46]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtb7fr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V877TJnu0GbGckfwiaJECALhEMRBw1SrXNmwj1CujrB9pW+KdBAn9EsYoNYLc3gA2meei4Yyl7KmTJwWssqpfscBUcFANINZ6jrTzpLnfo14rdy6bORDKN2ImePhSI6/afPozLevpCOn/bRWjEdzXEpZJrYfCG2SlYqwPOvsiY64ATIpqXhePkY2Fz0zwMFF9rPbQZdAueZ80a6Ni6CKx+C5rB0b1X8uJRBlTH74cruN3kHtpW8sqgP2SCALGe9GAxWurCe8eWn21PWIr4UDImsgho296HR5UDAS/0BMLJoAGRt5WocxyXvJbkcnLxTNGuFNPcOTrPTjAWnIvIgdDQ== 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=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=BT+msafWhT9mylhj3Dm6WvwCGfPZTBuhweWfp94X5iqyrUrqlMIZ8NGwKo5MYjL/4FfP1rEUp88vZzxFOEtjrfuG8/IR+r2ww5CjZZ79tTRq6De+/klOP4jTzDbVfggLXY/ej0iGIUGbGpmP6obl15PqB5p3/hHC3Tw1HcGIkAArayHBaDCqWjwgdbjTN8UNRwA7FLMpvXPP0FegnvViLx5b8+nAHXJ5Z8TZznp/4yQzBlh8RC3Lh8bJEeENJw7APUlSvSYnEq+RL/6cdzSdudAtdkcr6Cwyj8cL2yalnDy4MuuZPe2zel8J52cToq2IMVh1Y2MzVJ2TYDJEyjY6IQ== 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=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=ZWGM5bi7hA1S9lGoBXNh9RZWbpOm8GU7gsIPfUsi22oY48gVtU174iKerizAkyDcXGNbfFPT7wR0rCrSjrxUgfFH72e3a9DGGCy/EsE/PnfoYWocvK6+BHlggGXz/PAhDjFPfgHGMBm8rOc42IhP6NwSJXkpFzR45eVMmiAvvVA= 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: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:17: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, Heiko Carstens Subject: [PATCH 6.1 v2 6/7] s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36 Date: Fri, 10 Feb 2023 13:17:21 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-6-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: BLAPR03CA0015.namprd03.prod.outlook.com (2603:10b6:208:32b::20) 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: 16eba4ef-d3ab-4e7c-fad0-08db0ba3e1d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZkWHLYDwXsgAt0c8ePyzz9U5ig6nhWdnyGVENddx5UW0Iy4OFXC78aY8UG26OZarQpHYUN6DOYBoE3EjhkCNDVn4b/nC6JPm/1FXLfpgFXk8z4Max6+jNBQTOtNkHX8lNlqo/v0c+ljSgy/uoOVNkRQSRUW1SxtLJqJIEtHaq9q7O70CWH+86ptGptYp2LlniwrUGUKHOI/or3dZI8ebd4lVaFXwJRqJFYdhR76fX1pMapL/KUfH3znQRcdC3FKxgE+L4cia+XNck8pofFTCcuWcTJ3idFhwtrlU+DCrPvDZ3dk5bOs4i8JyUh00REsxEpMacbMBrL+/E09TlWpCF20REiF8BohXhHYA8VOKsAwqCcHS3ScjuTOrSPrdaAtmadIWT+SVusi+xEGoKeJxmlQY4sICczzHdaCInElMarwU2t9GQn2gmtyMH0U1+mpmZvFEZqWs1ZVLfoa4Ub0lbP07KrLFWiYAU4TR04p3xzddYBqvyelbTImDRZPAvxUTt0skWfB49iJcQ3SCJ1PP4z8Yz4xiJJh1fMlkPXZfWFeyXw12UNJG0dxnrvHfxFjiATJKRnnrobrNCzoEZ4R82jEqVqgEWRG3QOHe2LWSxJkNuZSGORIz4z8qS3WYoFQz8nZ4MxI2fNW0iEXBLDCVdh9c+3U3CBeSDQ3pKHsLmgi1TgzW4qcjs4b5IUzErtYGEhrbrbQFMSkumQ91uKYMiQ== 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)(66899018)(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?12NxIW96tsb6T+/ltKEdMh5+V5yM?= =?utf-8?q?s5ioJV2A+7i0q8caFQffumshbzrE1qnnNh7kGwKvwYfsBoEqbfnuXzHwraOcxe5pa?= =?utf-8?q?aiS4TuBatQNBVwVNesn+WhqI5kBJ4GYi1A7K53MPISz0fwJtqVJLs2dA26O4uX3js?= =?utf-8?q?1HftlZwL4Y28E8vibHu6Zrcgs4T0jS9k3zQ+W4rLdBqMJBED+1LVerUrVFM+J9pKH?= =?utf-8?q?xNmVVxrbO2XFJGMnYFIBjMmDMXGl68ycqF0o4xYgPgkxQJY8fGQdwac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0LtQvsBiS?= =?utf-8?q?sGeOqdFavoQe4xywZ03NURupiQHGoarHatAVhpTLaVCTim7ew8xPrykwP4UuwPVlq?= =?utf-8?q?t6Q1kQH0GH7loxeZYJyKU7U9EBZNOgJBONUtD4OvRbWzZN7SHRsZg2f3qbP8hhqNA?= =?utf-8?q?BaGvh8l98Q+OA6nOvDO67pNTjQGBOd3qldjgWwN+LzDoMxifzkfxwp05GX14a4ZsH?= =?utf-8?q?uqCzn8lSIX2t2plkb75RsIlJqO1AFTyDpDf6VzDZt/BZKU7hCrZlTbOvoXJ1wt6Ci?= =?utf-8?q?rhqPPcJKFqpFPqRMnipK5sA0yOYugrhFF5vxELgC4HDgA330oCHgbUlDagkq1xTyE?= =?utf-8?q?Q+k8HIrEsmQSkAAskdVNnun33amM6RJ9Va2SChOaa0pjaUTsA763oDobUOooJDjaN?= =?utf-8?q?auARzF2lfibNeLuaAh+3VIdI+MiKN73eT4esKuz6u+8ehGedPMZhHq8=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?PDyaALcse+JBU/dp?= =?utf-8?q?cdn8w9LZYxWpgwlDmortxBon1RzrigB0ZOiclEgGW8Xlzp1EWxsquPkTLyTw5GmoM?= =?utf-8?q?kETx0udSA6LV7NdU3rzSpjBb6dn8KicxtKNF1jRMtx8q4z1oiYfx9dldHSR7tjHn0?= =?utf-8?q?+gMBQ0TzkXHkgVupE0OVqQjQX119Kdq4tfUex8d+IHpvG06gCcQll8PXXdGC9hBR2?= =?utf-8?q?cCYs49yt9NPVyov/07tan8kH9vadfiWhRG5HLsbLeflqjuvRBOl3Ca+JNDIgBqrEh?= =?utf-8?q?ZnOB34SuxO6mJR5o0pqyf13xguLQPZmpHqxGo57hIigM1AfuUq2GFkliTQ1THrYlk?= =?utf-8?q?6SJrRazZ9fCHTZEDSLYm6uJwVl/+ko2sjklwo1qh/hvdwdmjAUJ+PbfPK5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d3 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:50.2366 (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: uz+tOWb0j4hWSKE9Ovt0k6pBeHhWKIhowTr96pmTIPIe80bjzKJlXfIChy+K+vrZTBv4Yl7Vn8VsmAuyMitCWA== 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 spamscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-ORIG-GUID: YxTXEfjr7-fu0FZmY7DZ2KTx9fAqTm9t X-Proofpoint-GUID: YxTXEfjr7-fu0FZmY7DZ2KTx9fAqTm9t X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230210_121805_220364_C56A63F1 X-CRM114-Status: GOOD ( 19.56 ) 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 f81d96710595..cbf9c1b0beda 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -17,6 +17,8 @@ /* Handle ro_after_init data on our own. */ #define RO_AFTER_INIT_DATA +#define RUNTIME_DISCARD_EXIT + #define EMITS_PT_NOTE #include