From patchwork Wed Apr 13 10:18:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811853 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 E4554C433EF for ; Wed, 13 Apr 2022 10:23:24 +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=jkFceiaw6sMuXVmFHGeTqTPlTBsPwyWaH7LSOZeVvb8=; b=iHHQDMj6itApVa DgS4QqzzaG2jMrB71yOK9Vm2Hm3qYNSeY5CENdMl862NeUDfP40QZbgt6DT34xEhXOjsxDsvdzj6e c+RqnwYesIgRbOqY8JzIzuppjqJOVKchgssmd2dGSohcGuAyzdUGmSfz7SiSHl7d3Zm+MohjHti1H gBDWJ1evsq9skvdPUH1Fz8ZBqURdtdSe2GXIh56H+X40c64jsQNQ+bmFNvuiqjw/lYggeO/ahOPlK rfnZLO2OZQcBoz5j9E6i0GOHjpIb4aoQiJZB6q4rEsJ/l1XdTubcvTReCfYjLgfKR3hZd1HFIGyB4 IDtLLQgowX1h+zvjTFcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea8S-000WFa-Tc; Wed, 13 Apr 2022 10:22:05 +0000 Received: from mail-am5eur02on060f.outbound.protection.outlook.com ([2a01:111:f400:fe07::60f] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea68-000VCF-BF for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:21:16 +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=IIbNSGelgbFXU87U2nZX63jfOdxPBeKzZl63MG4PQxs=; b=p/qyfeLt9OLNvyQL+eAS0mNg7jW9CQccgwSMQYbain4AzWrVC21MlUV8D5M6UtkaiyH4FgHKHZn0UdJIHISkDELkUjiV16/h2XqlGKBe3PJA3ml+CdL4VjebRNr4czgX0mcksamc5WUCmronPkycRCBBathcOysYZvLCx7Ub6yg= Received: from DB6PR0301CA0088.eurprd03.prod.outlook.com (2603:10a6:6:30::35) by AM0PR08MB4113.eurprd08.prod.outlook.com (2603:10a6:208:129::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 10:18:48 +0000 Received: from DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:30:cafe::25) by DB6PR0301CA0088.outlook.office365.com (2603:10a6:6:30::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 10:18:48 +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 DB5EUR03FT005.mail.protection.outlook.com (10.152.20.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:48 +0000 Received: ("Tessian outbound ac9bb5dd84f6:v118"); Wed, 13 Apr 2022 10:18:48 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 522aae16e87c178f X-CR-MTA-TID: 64aa7808 Received: from 9c5b177c0bfa.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 980CC78F-1E94-4717-B290-ED78A1225FB2.1; Wed, 13 Apr 2022 10:18:41 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9c5b177c0bfa.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HDniBwp0DKVSg0Ip0K9qsNxSGK6n7CjiG5r5nx8mnj2yLs8pL7O5vBCeWRc0cgcm7fbz8x/IYNjtqFq/pFdNVaIx9oE9b470mchK+R6yCWbIk8O4+/1IkqZTy339mb1SAQZvy3WqeUPtRVSV81CtjkLml1XYiKSvCP6qpgwa1A7MzcD68t8CtYOpvf62DObMxk2tqDVfIuZ/54Va+xMLVxtV0owemAgXXcbz24F91xCr2oVCpoUzW8ah6qO3mgq9RPxRAV0fY6QxJmWLxBat96NjCdK5Zrr+0BY6/97seKHcE/EaAfsIQOA0R9AbhhNdGvaroi8KY4AZsFXvfUohNA== 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=IIbNSGelgbFXU87U2nZX63jfOdxPBeKzZl63MG4PQxs=; b=f3fLAZu1Jpqc6CyR3yurmYtx7+JdomUE4uF+4of+JCUe3AWapo1UHL+aRL4A4eNpI2JbU8mQwu2b3taViMVd/zUXk0VXwlF0PMuKbkaqq6wfVtTucZ+pV+KIPYxHn40tijd7e22HxaKUGxo3TCrXJJGAhqjumg87Le9t2vVImY5oxfo2lxAoZeHcQas34CCv9ANX3o2X5v3jDaWf7JlCZqBQFTfg1RSlgd7wgeuR+itQEIrSFQx7UuUWkmMTSKRUUWcEinEtWsOSHUc3PXsiWqU6LekQmeO6UcKMC92oJJDaDsheqtFm0pxWA8KV6NwZUQ1QylhfibWq1YPL7Pjr4Q== 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=IIbNSGelgbFXU87U2nZX63jfOdxPBeKzZl63MG4PQxs=; b=p/qyfeLt9OLNvyQL+eAS0mNg7jW9CQccgwSMQYbain4AzWrVC21MlUV8D5M6UtkaiyH4FgHKHZn0UdJIHISkDELkUjiV16/h2XqlGKBe3PJA3ml+CdL4VjebRNr4czgX0mcksamc5WUCmronPkycRCBBathcOysYZvLCx7Ub6yg= Received: from AM6PR08CA0039.eurprd08.prod.outlook.com (2603:10a6:20b:c0::27) by PR2PR08MB4683.eurprd08.prod.outlook.com (2603:10a6:101:27::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.18; Wed, 13 Apr 2022 10:18:39 +0000 Received: from AM5EUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:c0:cafe::f) by AM6PR08CA0039.outlook.office365.com (2603:10a6:20b:c0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 10:18:39 +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 AM5EUR03FT058.mail.protection.outlook.com (10.152.17.48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:39 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 13 Apr 2022 10:18:43 +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; Wed, 13 Apr 2022 10:18:43 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v3 0/4] Enable orphan-handling=warn for VDSO Date: Wed, 13 Apr 2022 11:18:28 +0100 Message-ID: <20220413101832.4594-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: bc7bce52-42b7-4768-f872-08da1d36ffa6 X-MS-TrafficTypeDiagnostic: PR2PR08MB4683:EE_|DB5EUR03FT005:EE_|AM0PR08MB4113: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: 3V6kB0SGIUzI3wAdOLSPlXKS88LyIUIRg/oG0UWmQUcl1FNsv8bVvaSC7EDRJt2XUZ5UVkEE6V7UY713ur0XNl9aM3CCwxwleE9oLrw2FWo8cJCCuZsRyQmiORa+VoFr92qiGa9ZvIX40KePG3+8wFRvEYBGccnWHa20cCUcS5leVTdtiGlTDqmQy54at00X2mNiAdul+rnKARu+jmt6KdkCeQwpuJAs1Wt8XM37VgiUGQKQoQsQkdrBcCXiuUm0jbYavkvq2yQzN5WjgrVNIMS72jvWecMjBVIRGXgZqfm4ZIUU2w2rWa7M7PCkF9ROic9YKpvwyNfsJIjWToaURVZrtyqTjZHPfBbPKaRSCHpfoQ+jjhbcIPboPHsZFzxgT1toOJEANsGGHVeznDPmtWiS46tTrjxE3FSeqUMbuAkrk8PM75pIh8yIQszY6L4UpGRZFwPtac+EgEf+SbWzffrDNyiVFgEwkLP0LtLHjqbv5VeIzdFcI6jZrplUXrmVwSr2Uy+ABLrQAGvFsgOKWuG0a/nxPBIdPj2i0eooXgAau/6F2c+khp/P3j8aJBNUk16Z4vKWTLX6LElincokPlftnjdOxJkH6MGfNILeLlnJgtXdKbJKLFC/3tTiv0d8en73MbG+/OdqqARlKBxiAwNo3KCylAsqxfUkxjfxW8kb2svleq8fJNURwOZbCvw+DChkH8VA0lyuj3R/cXJPUuDpENct22kxlHLwo+ULMqErQMRqW774zCMlInjjzANm0PvvRC6BTbd5VDae96RWzxTzXXWvuwILKULvFEgx9D0= 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)(36840700001)(46966006)(2616005)(54906003)(40460700003)(6916009)(26005)(186003)(426003)(966005)(47076005)(70586007)(336012)(81166007)(2906002)(6666004)(356005)(36756003)(82310400005)(4744005)(316002)(5660300002)(44832011)(8936002)(86362001)(7696005)(1076003)(70206006)(83380400001)(4326008)(8676002)(36860700001)(508600001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4683 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f5791309-5827-4bfb-59d6-08da1d36fa5f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 86d/qF11PYlX3UUAGGFaqwZhBU4VSaVCt6ybfGPFpFH7NEvpUpCFDuihb9EPfjjLPU/ytPMEAaoL+czUzdwib+KOoUgsvkf/ns72mBYlMkExIOwmMbklFZ41wdJ+cMa2x/v7nE7L//PtmNnOdc9Ow6ltAO4fhLe3h3Afeva07q4qobbIKRrtbPcfZhsOdD3obqHGR8XXAmMBTu3AhsTPSxCy7gDnFqfeXMoVKk2bpv38DQ2xWmpnOeDnteP5JbLCrI5puYXzvN07h4fwSE1mzPMenQC/yJDw9yuUY7sDJq1zcYHpRRriQH6tGM8C8qC7WualECpVZAwY9J/czWTLbP2BkekORfBni8G6anBSWVVknTYM+ra1twHiEi61lm2gr0rT9NA3WO9Dt0w7D1rhO46NS4ok5TgvSBQ8iiZm3YIYXl0HTuulqaBnGhsN9txxs3gAhc1C+5gLbmFWKpkRwnPE5unCdhKwYLLLU+7PSSdPnOb0rS7513UyS4gC6ymUNvDd0Gyn3KSgDLRxHvn91vnFq6/KmLf3etWo7PuvBCTaNsLgQiIYWpgLB+uMvRvyUIYaHbas60FSeq+ymkAeVwO+upZ7EZXLkxj8QRo/07XSYGwsTg9/S2y4kqff6bo63pS+YoQX32l5P50lPDQGgrfhnI2eAfkq593uqoXYYOUvq3A5Yz6tl2xZNIY4lT4nFnbOMErGD+R4gX1dhqu2+0cb8NEbeONwPrqHkt07mvvvWz7E01MrKiCLKRDUKRai 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)(40470700004)(36840700001)(82310400005)(1076003)(26005)(508600001)(426003)(36756003)(83380400001)(47076005)(36860700001)(54906003)(336012)(316002)(6666004)(7696005)(6916009)(2616005)(86362001)(8936002)(186003)(107886003)(8676002)(5660300002)(44832011)(70586007)(70206006)(966005)(81166007)(40460700003)(4744005)(4326008)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:48.0762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc7bce52-42b7-4768-f872-08da1d36ffa6 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: DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4113 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_032114_489799_4E0E2D31 X-CRM114-Status: UNSURE ( 9.11 ) 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 v2 [1]: - Include vdso compat support Thanks, Joey [1]: 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(-)