From patchwork Thu Apr 7 10:13:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12805034 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 79BCEC433EF for ; Thu, 7 Apr 2022 10:53:02 +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: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:In-Reply-To:References: List-Owner; bh=ZzlI8/E1r900Lpl5lRVfrfob3kCrITZaNMa+2D9NAIo=; b=vMUU76gPoKr2PV rnN2zSXOUOGeAgbn0WqFYd6EONKAH6SrC5/fEZoQNlX90HniDtKn3DcZyDteh3KjttuCxkDnln5up 3e/XgrhSbGkzedOzx21yqgjZceabRg2k8oiZVcsK6Zmvy1RxV2rxttvdbsq/PThqq+V2rwrxzGa/+ 5pBDx7kceHw5wIDormc67hxH5bqsEbOFPcmCAw/65xSs3SP9lCJ8Ht0hxKmv+0aufcXVD8I9kgVR0 /Tp7bjaLDs1zYl3/oc5F0LQQ/VmIQ17y8UjW8Z/Ow6jvVii+zmnrpwiq2r7aIYqbMjwPHbSivFysm PSdon0qhsLsjiMFka2hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncPjM-00BMsr-1C; Thu, 07 Apr 2022 10:51:12 +0000 Received: from mail-he1eur04on0619.outbound.protection.outlook.com ([2a01:111:f400:fe0d::619] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncPad-00BJUn-N8 for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 10:42:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cuFj6AFk2gq4J7wI2Ao5rzEyqUl/vqmdwBGMBVs7/kE=; b=CSAuRIrFxZy/+72NjRDXl3aT1lJWxYctl6wtsqpjsPmppzADtgtxSqr344ZsFdebBBPGww+MajAOdtCocMBninHOHOtiP6AWKyjqFfTlD8zYRlGofQDXAP3lGB6NhXAcbZps99am3Z3BFBeJ1SJlFbqugdwE25rV9kJLIHIuC7w= Received: from AS8PR04CA0205.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::30) by DU0PR08MB7463.eurprd08.prod.outlook.com (2603:10a6:10:356::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Thu, 7 Apr 2022 10:42:06 +0000 Received: from VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f3:cafe::5e) by AS8PR04CA0205.outlook.office365.com (2603:10a6:20b:2f3::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22 via Frontend Transport; Thu, 7 Apr 2022 10:42:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT022.mail.protection.outlook.com (10.152.18.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.21 via Frontend Transport; Thu, 7 Apr 2022 10:42:06 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Thu, 07 Apr 2022 10:42:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4045dd132fb78fad X-CR-MTA-TID: 64aa7808 Received: from d3f534386085.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2E29FD52-2C20-49D1-BF27-2B9FDF4BFB43.1; Thu, 07 Apr 2022 10:13:22 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d3f534386085.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 Apr 2022 10:13:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m63CBVWS319xA8k6Z+TfGdYFa7g0YmrnRFJj682ylSw72iKwH7cnATjWjSUVHT4wZAxkhlYWuaXcopFclrLLD6R39lZybeJFMy0Seki7T5SU3v+Qhnr276Spe62c37YFAw4UhjGpaAkGiDWvVZXve+6L0TmO/1kYOvhckNoWTCwuHc5u2X3wccL+HzjNLshk7utkRfPYLNtGwEbHlQQ7qm4agfBMvWU54CAnYusuqhgGbqdX9rUj3tJErnxZtJ6Hjxa2CUccE+LqyAtlAAf3OsIXyRzwKjagfR54QwWgcLotZGv2gqgvWK3tXSyyUioXLdID0b0UIslW6fICGfAjWw== 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=cuFj6AFk2gq4J7wI2Ao5rzEyqUl/vqmdwBGMBVs7/kE=; b=TS1u8mCy4+MCHeOKpm9e8hwMbjG9uWBOtbFcvTvcL8feGJzW7Rtqci33OaVR12e184JwIzy1Yy1pemr3m7TWUuP/b3m5galrM3TV/RmJsYxzmBhf2mHeAFw+TFdbEhMXZYjY0E5hgGYyKPnMm4EIiV+OvjcQ2WstnxQf9CbdGwpmxJLHIiJiU1wmWORWr+1CTl4ibRmUX5+tWt/5vqsDaXvOK1TbdbpdIPYJiUPsFgGZENZ/SqTi9Z7nmSZg0VPZ9qBYpmBojHgW6spHrntMt31MCM/KZkxCKsSTo7/BdY+9qbi3e5DKW8nKV4uoxzxqg5saUaOHm+Hn7EAYOwDdKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cuFj6AFk2gq4J7wI2Ao5rzEyqUl/vqmdwBGMBVs7/kE=; b=CSAuRIrFxZy/+72NjRDXl3aT1lJWxYctl6wtsqpjsPmppzADtgtxSqr344ZsFdebBBPGww+MajAOdtCocMBninHOHOtiP6AWKyjqFfTlD8zYRlGofQDXAP3lGB6NhXAcbZps99am3Z3BFBeJ1SJlFbqugdwE25rV9kJLIHIuC7w= Received: from AS9PR0301CA0028.eurprd03.prod.outlook.com (2603:10a6:20b:468::19) by DB8PR08MB5388.eurprd08.prod.outlook.com (2603:10a6:10:11c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Thu, 7 Apr 2022 10:13:19 +0000 Received: from VE1EUR03FT020.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:468:cafe::c2) by AS9PR0301CA0028.outlook.office365.com (2603:10a6:20b:468::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22 via Frontend Transport; Thu, 7 Apr 2022 10:13:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT020.mail.protection.outlook.com (10.152.18.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.21 via Frontend Transport; Thu, 7 Apr 2022 10:13:18 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Thu, 7 Apr 2022 10:13:22 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Thu, 7 Apr 2022 10:13:15 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 7 Apr 2022 10:13:21 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v2 0/2] Enable orphan-handling=warn for VDSO Date: Thu, 7 Apr 2022 11:13:02 +0100 Message-ID: <20220407101304.539-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 7de8f05c-3679-4c2d-cc74-08da188342aa X-MS-TrafficTypeDiagnostic: DB8PR08MB5388:EE_|VE1EUR03FT022:EE_|DU0PR08MB7463:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: XroWTPg0KX6wVNkbsjHacIKrWxz1gbAmwlxfOqd7JQoeInsbX/BqdSBBb/1HUqt6ha9wM7Lmt8Rz9NRjhDt7/uZL8ZxJ38LJaCI/63BCTcnsBNKCkKeRzS25R3+6lobtU/Vcgffvya7Y5BeJ0BBESW2fqjY73oEjHHYR5Mb3DcFY5rJEXkG64whvzIPcsqV32ovQ8EPadUovqNK1KsQwUhiziu0xJ5+U8rZMCeOTZgRmqRkpH0+0yx231kmXX3W4DfSGa2Ogytuj9ZXG0A9uP4v3yFe3CM3tu54rjPptV8X46Cjqa0ImOCHbbp9p0h3sCYO5Dt5PRFxqRzUZMUnSX5NHzZ7MM1fCdI2DDcUIFvs6WIktRGp+w+HFgkT2oRv9x7tdZL+2JQVOohe9vfwXfdxyMl9YUdUCjx2vyynVNgpAedxa6FvPZSJxR/sSDoH7AM7xL82C5wWKBStV/SZgTh97w4su3+NOnz6wizMC8ExPY0elkXNW7w/auiZTxkbavtVy0e4bjXQaXkNW/DXnyZtZvWQB1v35B2/HA7YJ9LU87xVxVORvk0wSGUf8NuPcxidV/Lkftj+cWJ7mQIND+ZLaklE94ZhHDopPGKV2T4XLOcWBPGsQOgDP/lP1xrBzwcFzmfwo3WJXN3W1ahiDwyBvRBFvtWo98UYEpbGLFqou1iv3i2Z4ukx6pgbeAwmrRBZhDg2dcrmz1oPh2TfuRKzm2tR2F844d0tH6w+zPYkc4MJNRNZpvUX37T32blvlfwgLVDRGMoSofUWVJFnx94takkyn2tnMo8KwXpEN2gA= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(2906002)(36860700001)(47076005)(7696005)(316002)(356005)(8676002)(36756003)(6666004)(4326008)(70586007)(70206006)(82310400005)(44832011)(83380400001)(5660300002)(40460700003)(86362001)(186003)(6916009)(54906003)(2616005)(4744005)(26005)(81166007)(966005)(508600001)(1076003)(8936002)(336012)(426003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5388 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4bc73546-6285-4c09-d16c-08da187f3d0b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q4xhdCgkSD4pnPZXbyuGDM6D3Qfa6Jcgn/IGvgSaIspPPwGTRy8nBjcfngKBG+xRZtk4zutG4At/oSPfLp0XKfuwcoehJ29CsdVokisCppcgE7gLAgwD+4vTj/H4PDK7sC5J4qe1Ls+3CUlaEMp4BKjam4D2Xk5E8DPiQ9Re4xV1OREiR1v0SZ7emQkzCF1i/v7u/AHEv00ALyUi774IEeAaJdqWyZfwIPn30rMW3uoO+gv7HqsvjJT2z1TN5L17cia0mQLppZxL7Ms2pPYOI7kwx+42nIr+++g2hoqb5sm9w5cZG/a4QRGwjuNvJZfZv0fFuCwuamyivY+OTKo6M2RU7af4CpchXd0tDlJMWBgKh887zLErl986Fb2R+FstSrNWOjS1y8MxpOhm6jnbrgcW/AdZYtaJUxlLIY3AkOd91xmDB+/xGvlM00ZZWfwYoEVT/0Ee6dArbSYhRunsnLngb2f22+CF97it4HjgC383mlsMK084DPLLVU+mpzqOflJvfEUZ7B/NisDr2Ymm6UPouA8Ku/yUYtnzl3xdxoKC8M5dSArh77TlBIhL56yIyjyqtSryJUoiBiB/op2O2VNMwTGWdAta1qMrrn1J7PxpsVf+Farrh//yUWDI2Yp1anKYGRI9zBsPtneVWSXL4P3XhYx+AhO/5zhw545kvlyHef9Pf4XQVskJOvpbYtqGK40NSo12yoi7n71HMbYrdvZgE+vBCx3DOmSivnQszUKo1mSKzUDfZaVKWnauc3rH X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(6916009)(316002)(36756003)(82310400005)(86362001)(54906003)(2906002)(47076005)(7696005)(2616005)(8936002)(70586007)(966005)(83380400001)(36860700001)(508600001)(5660300002)(44832011)(81166007)(8676002)(4326008)(107886003)(1076003)(70206006)(6666004)(40460700003)(186003)(336012)(4744005)(26005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2022 10:42:06.3585 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7de8f05c-3679-4c2d-cc74-08da188342aa X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220407_034211_792052_A8B1D33D X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This small series enables the orphan-handling linker flag for the VDSO. This could catch subtle errors if features that use special sections are introduced into the VDSO implementation. Changes from v1[1]: - Include vmlinux.ld.h directly, to use macros - Include DWARF sections in linker script Thanks, Joey [1]: https://lore.kernel.org/linux-arm-kernel/20220405160246.1991-1-joey.gouly@arm.com/ Joey Gouly (2): arm64: vdso: put ELF related sections in the linker script arm64: vdso: enable orphan handling for VDSO arch/arm64/kernel/vdso/Makefile | 8 +++++++- arch/arm64/kernel/vdso/vdso.lds.S | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-)