From patchwork Thu Apr 14 10:46:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813337 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 4236AC433EF for ; Thu, 14 Apr 2022 10:48:37 +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=QIBaR5x+E//R8DodiTlRX4hacAdPHzvWqOtODWm/7As=; b=Pi7WxluKNOTFvv aRDTWapAbEtF+pqzl0Af+0oaq2KFWXGp/Yi23bX97Kd5K3K8C19nJF7Tbfytyw3JVedbuAy9LlvMQ dvlubwT/ev9M1x4JikkLKwvjgkzsvltjRqRCU6A+B5kj9okuMCABkQMgsimkx5rLnNiqAZ30k6ioq YN2F9NlC2qiFFN0o86hotDwA+zcfvscvnS05m+U2wMW7ZYfYnqEt2OKZbb45JH9Iymw98DFrg5IWi q9NDcqs8zGXdeiSyxxXq2vcd05byacS0j4gq8cGOZkPQ75kyFEepGJqyb9N6pEkxjruiQUwR/eR66 KR1RYIIE8XziRbBV3zJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nex0W-005Bb1-OW; Thu, 14 Apr 2022 10:47:25 +0000 Received: from mail-vi1eur05on20603.outbound.protection.outlook.com ([2a01:111:f400:7d00::603] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzs-005BPO-8I for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:46 +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=VUfzDKwXUP6kz4bMrZHRP8bnZ611GOQKwOFAp2TmWwU=; b=dSaQDu9glOqXnvncX9UjT5kJH1D53SETLwYyseNh17CwxV4GzvMh7/STAqN3hB+/kD9nqNb1Bx3a/PPod/j8pP+CTM1lcXofTIKO/S6OgTzu7ka9rFrASFWjU94dMBXo9hJZAtJ4jqcyCogMpZqMMZZ4zt+ilCoPaapOoUKmpMQ= Received: from DB6PR0501CA0021.eurprd05.prod.outlook.com (2603:10a6:4:8f::31) by AM0PR08MB3281.eurprd08.prod.outlook.com (2603:10a6:208:5f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:31 +0000 Received: from DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:8f:cafe::b9) by DB6PR0501CA0021.outlook.office365.com (2603:10a6:4:8f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:31 +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 DB5EUR03FT022.mail.protection.outlook.com (10.152.20.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:31 +0000 Received: ("Tessian outbound 9613c00560a5:v118"); Thu, 14 Apr 2022 10:46:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 60d5eed5c3a4a443 X-CR-MTA-TID: 64aa7808 Received: from 741615aad88f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FEA7B595-B3DF-4524-8631-8B361438907D.1; Thu, 14 Apr 2022 10:46:25 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 741615aad88f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LzVrzHyReomCmlk6204fI+wm0dlkTfUl5tg5pIKWGjepImxC+TX37RJUne6CiYos7YTAlQGy8UPa4bfYUzDeHdYKWWAjzCNhetzwhiwITymwSl7bbMijWCFI6/B4ezC4VfwWKXtryx7OhpqsQUhGU8GCIOqj6//wnWH0nRYbyaj6lxqNgVttXmFHRW7+Ak+4yaesLk3I2QXmlxYGfuf4oP32h0+a/Vndzh/LXDt2uXZgbpFuMtbIYFbUXsDJ/D+Nv3J/y4vQJzlOOgig27Zd0YORFM2fikzWtnyxaZuDW0vXCNvc+BYIgR+GXWwbReogGgqIJuy4vbuHPRAVsDB1Dw== 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=VUfzDKwXUP6kz4bMrZHRP8bnZ611GOQKwOFAp2TmWwU=; b=c8anLw6X/g0ZvCPXJsU+A1dnYAmqQdi5QEKtBo+EQDLbI6M8Br2nVo1aI98tPHv9v+UPjMiY+jD1/YsmtcEGycOXesvDiqgnu3WBJlPWTpdEoWA5ApM0H2i04rtiQWiB6BwkzGiWJFoYjb94QPNeebuz6Q8zu9ntk8xPvroxlvvlAweY8mIc6c0YAP/A/esAn0adz+XuTHBoFHzOg324wfVA7emHc8msY2aqKlTlNcdvpuf6IMBAwSgfQLedCjhoIK3n+G2HC4vLvkJzoxjDkWdYm7x2wj9gV+V40Hy1Fjs6ya0SywMlV20BI8zoufAswFPAg94CHKcSuR3nmJTb6w== 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=VUfzDKwXUP6kz4bMrZHRP8bnZ611GOQKwOFAp2TmWwU=; b=dSaQDu9glOqXnvncX9UjT5kJH1D53SETLwYyseNh17CwxV4GzvMh7/STAqN3hB+/kD9nqNb1Bx3a/PPod/j8pP+CTM1lcXofTIKO/S6OgTzu7ka9rFrASFWjU94dMBXo9hJZAtJ4jqcyCogMpZqMMZZ4zt+ilCoPaapOoUKmpMQ= Received: from AS8P250CA0006.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:330::11) by VI1PR08MB3008.eurprd08.prod.outlook.com (2603:10a6:803:43::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:23 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:330:cafe::b8) by AS8P250CA0006.outlook.office365.com (2603:10a6:20b:330::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:23 +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 VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:23 +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, 14 Apr 2022 10:46:30 +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, 14 Apr 2022 10:46:21 +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, 14 Apr 2022 10:46:29 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 0/4] Enable orphan-handling=warn for VDSO Date: Thu, 14 Apr 2022 11:46:07 +0100 Message-ID: <20220414104611.17748-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: 4e611255-ba75-4b48-c4ab-08da1e040978 X-MS-TrafficTypeDiagnostic: VI1PR08MB3008:EE_|DB5EUR03FT022:EE_|AM0PR08MB3281: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: dNdEg1zk2ZFnK6u2vzxcb9csGY1KLS9E0D587sDlhG6y2oF7h9J5ZVOYb94Wagipjg1LX6YGLnL1ReymHi1npqsdtnNy6BuOqFKruKoOT26uVjDMyx6iVL7zfMcm/2IHcplQ50yFDGOU57UQhsyQCihA0Xb6BCyzj+AuhiIChb6asBTVf0IkbX6ElhzZl0SGKwcaVx+PJU57VsElEANkp8t/8gTW+F+9b9/95VGMf2Jj5Mo2m+n0g+msWTauDT8VXd3PxVQWQzHViUwzqxabym+1WIYPJW5Nc0LI9Xm0uFk33ZjZ/a3RA3drheJhC5wAOYT+J5At5iz3rB4AYolgjHnUPJoNGjg5qRbozifgcuWJck8lxInlzzOZuo5umaZTn3Z49bffayd2Aq3ztAwfjX47vcTstteP6Q7/iAi54GpkfvWVarXYaPka45POM7BggTsFUyBw11gL+uqsSqQe6/q1eo4CAwEb4l45IHbFPQ/q3VOhsDraDjJU8U9j8Pii8nqGNPOL8A7fme7sWgqPgyo4/7gbc8n2vJMwtd6TNBvH2HZyIReNSz0+JILjBDqi0ySjp/miOZUxRpV3AL42N9cHOvMq9cvHSYXTDzoNxaeEgvlv+0zCGQtMi6fXJUKEqvieF+99Eej0TwvEigL5eLJRR0QX2cUPb+BxsKKt4k0hqZk9ASLgyfXt6x3pVgoUqLLs/hBYTca9PNfN83jmJDwc/W1ZClI/+QN4XUzIDXrQbeHYW39KWobJNlh9tDgFu0rc+GswvrAnBCwAqkhHfHMjQ3hpJtC+KUB2V7laa4UV+XMfgO7QirLu0A1Oz1kM1Na+Zb5HwyQ7mupiZr+XdQ== 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)(46966006)(40470700004)(36840700001)(6916009)(966005)(81166007)(356005)(54906003)(86362001)(44832011)(316002)(2616005)(26005)(82310400005)(508600001)(8936002)(8676002)(36756003)(40460700003)(4326008)(1076003)(5660300002)(36860700001)(2906002)(70206006)(6666004)(70586007)(47076005)(186003)(336012)(426003)(7696005)(83380400001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3008 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 65f8f490-efc0-4af5-405c-08da1e0404a6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VTI6OD1Tqhjs4WBup0tWqgJdeBeGC4xfMxypy/9RGEwB+YvUk6Aq8lJuWN0+2bbHTNvaK0Hbb3/0wmYJyM6le8/QVPT169kwwN89lbabF++NP/yyYWQIF5ufB9wiSMAdJBGXeoYu2MEW+vlYqH2nQWE0NGVKYTNZ2puqVoWUGwnIGOIaSORskggFiaMck/kOkulWdPfcV1i1wVXlYHe+ddMLOzQw8lsJKMur2PX0XQ+ZLvSZTkvwnY4BNWx8N+mqvbGNSVjbj16ufNi6g+Qa4DCC6APxC9JskESDtCDMWncvuuI1nnqz7ZCSLCISBtYa5V2fTo9/ZqX3Xjuse0kcqunifUyaC9lfJ43gWWknoMYpD0e1Bxb6VYaL8xyn9+hFExeRoGnK86FF+H/hOuob4TxpQAliviJiC1CjclNuaICgg656HTMs62zQvBj3iJa8hivxN9wzVxizZKLQuQXeS0jpzN/vDfKqwl3HjjF5e3N8Fk+fyKd6QXtXyw/CSLr/IJsc/ySuKM7pQO5iBzX+8dmmm1aXaOJpZ8gs+FCIi8VbOtpUGJUUvbLbj38ZI5r/UoVcfffHVT2oH5+1DXsGdnvfDr+8DXuXk5i32gSDP1OBcoNN6VBHEfQ1tnQLzWygZ3797m/T8zbbD8yKK5fmtJ4L3Dg4ejgAc18IHdN+UrJv3ynhFlrGYXooIFinvw/cZRVs/wpSCLu9WcKF1fT/ZeKBSR0l4US4lm7WjWu/WQYuAN2ZnMkKKnPT3YBuKLsJK56LNq/CFKnx2pwb4y776+z0XwBKWJkCWzwzTPQy1Q6mryO09eRmTwDM9zlvDed/ 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)(40470700004)(46966006)(36840700001)(70206006)(70586007)(40460700003)(4326008)(82310400005)(8676002)(498600001)(966005)(86362001)(54906003)(81166007)(6916009)(26005)(107886003)(47076005)(36860700001)(5660300002)(8936002)(7696005)(6666004)(44832011)(1076003)(186003)(336012)(36756003)(426003)(2616005)(2906002)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:31.3802 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e611255-ba75-4b48-c4ab-08da1e040978 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: DB5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3281 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034644_334786_08635CD2 X-CRM114-Status: UNSURE ( 9.81 ) 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. Sorry for the extra version, I forgot to include Kees' and Vincenzo's reviewed-by tags. That's the only change to the patches. Changes from v3 [1]: - Adding missing r-b tags Changes from v2 [2]: - Include vdso compat support Thanks, Joey [1]: https://lore.kernel.org/linux-arm-kernel/20220413101832.4594-1-joey.gouly@arm.com/ [2]: https://lore.kernel.org/linux-arm-kernel/20220407101304.539-1-joey.gouly@arm.com/ Joey Gouly (4): arm64: vdso: put ELF related sections in the linker script arm64: vdso: enable orphan handling for VDSO arm64: vdso32: put ELF related sections in the linker script arm64: vdso32: enable orphan handling for VDSO arch/arm64/kernel/vdso/Makefile | 8 +++++++- arch/arm64/kernel/vdso/vdso.lds.S | 4 ++++ arch/arm64/kernel/vdso32/Makefile | 1 + arch/arm64/kernel/vdso32/vdso.lds.S | 4 ++++ 4 files changed, 16 insertions(+), 1 deletion(-)