From patchwork Wed Apr 13 10:18:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811845 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 C79F4C433F5 for ; Wed, 13 Apr 2022 10:20:38 +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=hAErKeuE610H56n3pn9i0U2E+6/3oIKL0GqQHYBCC/0=; b=OQtEFOWr7RnqQD RNpaWEFbbw7tdUWdGdWQ8kkfd+eX6aeAfVujJ3DGJQGVlyrIoy3FNcsw1D05PWqVjxUfsImY6bfBQ W+eJk6k2u+nSM1IFV0lmwgU7nPlsSwC3MHAgSaYydJ9pRcBRGkdzZ0JA587zNs4a1gYJ7wKtd7c1z 6OcC+nXrkc2oZddZ/OahwxIgqYYT0izLCyMulsHvROF1TLtw3DAiMA6nxQd97d8fDuKQATEdWaqu1 dGsVZeREn58dnkMSnuV5e18nouVsI6Eczw4GbPBJ/INFO/lF4pNUWyIpx0b7nKbsBXWcwQLnYQouy drI7Ef6CXflJzcwpz6/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5l-000VFI-Ti; Wed, 13 Apr 2022 10:19:18 +0000 Received: from mail-db5eur01on062a.outbound.protection.outlook.com ([2a01:111:f400:fe02::62a] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5Z-000VDU-Ow for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:07 +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=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=NFG4IXASTt4xbzhXL7Ok7lqKVlfkALPLcORSqKGsoMWBiRC9ugdGRG+vJsOy+18Tsj8kFc8wCvcBQeZswM+f/dEZxoTsuV0/zk1zuGcbogU7GgOyftCL1yywLBlZyJMaFW90Bf2LXv+E0ORXUMedOfisbqaQ3snuHQYtAPzQgcY= Received: from DB6P193CA0008.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::18) by PAXPR08MB6752.eurprd08.prod.outlook.com (2603:10a6:102:131::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:58 +0000 Received: from DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::32) by DB6P193CA0008.outlook.office365.com (2603:10a6:6:29::18) 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:58 +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 DB5EUR03FT047.mail.protection.outlook.com (10.152.21.232) 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:58 +0000 Received: ("Tessian outbound 9613c00560a5:v118"); Wed, 13 Apr 2022 10:18:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f1ab3a3baff0d018 X-CR-MTA-TID: 64aa7808 Received: from b7664f8b45e6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8BAC76BD-2F1D-475E-8907-DDD570C8B73B.1; Wed, 13 Apr 2022 10:18:52 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b7664f8b45e6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UzxljwgvgXASDkqX8Vi6iVbD2X81xu0ITlMBUuNUPeaUNmElaZ/aVhzCiGvaguy7hUXoJVY4bMfAzJEzy/CRVCzIDgceJ6LToEoGYewX5OwWEnVjn+wtETlBkMpiwxCce259gufcPK/yzrKZFqOIsLGrpzzVQlvQNHrhB8ii7zmokdBTWRpUbMZncS/0oC71w/NV/kIt1nhYVUxypUi+1ww9aXEiiT8oWZWFJ6PSoT0Uxa5dDFvTzZD7YaWUXVuuTiMNiJrS64rXnzlWhkLkkTUS7wR5ahTnArCvrBWa+yh525ZsCJayLj1ngdesI+x0VY24CExG6YXlZry6YNGuyA== 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=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=OK9hJkUwOW8NMdXvqazMPzDdcy+ESIyGOxE+E0wKh8QtMprL16F1gWwO9fadX6lT3k/F3NySNBS4SdTOz63T2wU5SO6J8+CyKqvnTeU81AF7sxZBNmpy9Z49lbr809eWsc777O22/KGURxjeM0+65CCcR6DWyDHkH1k9ljwPVFVFP8ldR4LEv3LUsrq01S8ya+v56B3kkraJmEiaarsazX8TC6zh7NhP+uXTpWAwvA17JeVjjtUZVzbCUvqr7B6KWbAlrRh/BiH3pCls8C8J7izP4bfglDmuD7uDiHcPf7cJQ3yVmiLbih1wXiCx8JIBTd+5VGUVmNSRvx1Zjd1gZw== 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=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=NFG4IXASTt4xbzhXL7Ok7lqKVlfkALPLcORSqKGsoMWBiRC9ugdGRG+vJsOy+18Tsj8kFc8wCvcBQeZswM+f/dEZxoTsuV0/zk1zuGcbogU7GgOyftCL1yywLBlZyJMaFW90Bf2LXv+E0ORXUMedOfisbqaQ3snuHQYtAPzQgcY= Received: from AM7PR02CA0002.eurprd02.prod.outlook.com (2603:10a6:20b:100::12) by GV1PR08MB7706.eurprd08.prod.outlook.com (2603:10a6:150:51::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.23; Wed, 13 Apr 2022 10:18:49 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::2a) by AM7PR02CA0002.outlook.office365.com (2603:10a6:20b:100::12) 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 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 AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) 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:48 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Wed, 13 Apr 2022 10:18:44 +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; Wed, 13 Apr 2022 10:18:35 +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 1/4] arm64: vdso: put ELF related sections in the linker script Date: Wed, 13 Apr 2022 11:18:29 +0100 Message-ID: <20220413101832.4594-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 4a4461e6-e002-417d-cd69-08da1d3705d1 X-MS-TrafficTypeDiagnostic: GV1PR08MB7706:EE_|DB5EUR03FT047:EE_|PAXPR08MB6752: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: 7AGN6zQiTs/Zqm40gWDniccbWhZCI2YgBAZ4miNMQP13/DELQotFXOm9Pp8LImlyer+P/of+fXbgi8cC4FsLp+r60fdvqxKMaeqv6CQk6CxFL827KA8Eqhyb+TWkPS4IAE44bgBZTPk6sXipRzTTUXeAOb1Rg7l1WuSDNvvkshMqnC2uU9L6AASiXHXhj4EB3RWLBSbXmV2WCmxFJhTaLCEeUiKZ1+fJcEkZirazImQr61K9ZGJ97kVQ7J09yVgelf8wy78Iw9gsO7vphJ7VugUeJR7XYxxTz/UVIqXuSI52sNXH5ha//96Hmpahx11X/oaMphbHxGaH/fCFLcsJb0tO3/Mcg33d3B/vkbxEZ/EUqEyzc/0+wiQmIUDpynJA6uN25+kdbMno7bXdGE/5cHOGXgez8yk6PTh2stgVpISvU0xQCVlvwe2DphVW0XT9BP0158qUHVhCsCcSPdbG7bRoppkNwVoVTnfHOdWnGmixKOpBNj4eBGYrboaCUm/Pb3NzCkFkRPc0wYRls2dH49SAmF12WqV/q4JNE5JD1AO0v+Rnc6ZRfiVQ9ygw3QZNLfN3XPnZBpsL3VhUnEIa73jIBXALDwBkJguLOZ2mrcpCGynZL8foPuOhP26Dw8AU7/QsNNsMSQsV2P+9bt3qdK8pd0GtYvXwM7qEL/ldd9Q+994psHA3nnodpMMPWYJfWrFtUw8mNdELMOerUaKHjQ== 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)(70586007)(186003)(81166007)(336012)(36860700001)(426003)(2906002)(8676002)(82310400005)(36756003)(86362001)(1076003)(26005)(356005)(4326008)(2616005)(8936002)(47076005)(7696005)(54906003)(6916009)(44832011)(498600001)(40460700003)(6666004)(5660300002)(70206006)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7706 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c3069d1c-8032-4e01-6288-08da1d370023 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wDhqzODQXvwu6x5fjmIzXVIxZFLpYtxt6IkblO7iWkw87Ux5uWvkdWLyvn7QPupGSyFO3R4b/Y5FVhyeVzr+eaIvnKSQqIokV7PRhZLEomH/8KOQbodpU8PImRYDGVL8oeyJB9rfwPDenNzgmZpwif2w1765TlQ22vkeK/wKJS4beKUs1CE7FGUJcqxntjIC/Z4ChymND3doa/kYZuXbcAYAZVyiy9VPo+4N8tAEXqKerf8ek9yDQXh+spoPr+h3WuWTlrUG97a+XgWnprEvkXQgV+X3ASkPoeVggvI/kMUTywOBrana8iBlAnuy9fTb4wNmzWkps8c8wVz3VMucb3OJ1uIyOvAvZ4uSx+fJeXeE68JpxsRpC+Yql3cgaB7LzAdRkalJywkXFNShiDX9ODaWDVIu2YKJpA0KiEjl8/TC/KhtC6Ucnugu/ePjzlASLD2LQ5qunSeT+XkcQQBFaW3paB2CpUR9zZRtrTo5KhLeH8Ma87ZSby5O3bpZh/nVNAn719hV+hqbtM1jYMdiGuqR4k5rLlapm6BBnYoPACM4eik96vh3HXJ3xJc9wWU5z/HTBC4okiJHnbtl1d0Ud1ZrT1dML7Cg5oNAt+3yOAnpmFKPi+6S0wrNwtiFogoVkYKnzwx45TbQqbqwy05a8ZO3/hOuosPBwFOMsuX3gMV0Cem4PGxhhTSk/3sgjSOJ 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)(8936002)(5660300002)(70206006)(2616005)(426003)(107886003)(336012)(1076003)(44832011)(4326008)(81166007)(8676002)(70586007)(7696005)(82310400005)(186003)(36756003)(47076005)(40460700003)(6666004)(2906002)(508600001)(26005)(86362001)(6916009)(54906003)(316002)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:58.4232 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a4461e6-e002-417d-cd69-08da1d3705d1 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: DB5EUR03FT047.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6752 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031905_852635_3966D2E2 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 Use macros from vmlinux.lds.h to explicitly name sections that are included in the VDSO output. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso/vdso.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index a5e61e09ea92..8a8780c6d093 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -11,6 +11,7 @@ #include #include #include +#include OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64") OUTPUT_ARCH(aarch64) @@ -54,6 +55,9 @@ SECTIONS _end = .; PROVIDE(end = .); + DWARF_DEBUG + ELF_DETAILS + /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss) From patchwork Wed Apr 13 10:18:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811847 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 5F3F1C433F5 for ; Wed, 13 Apr 2022 10:21:00 +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=ehNtfeouNRl3cwcpq3AoOfp7YcwG3TZksa4w5H0euFg=; b=qUF5rkbufs9YsS /jYFoUlDTE7T0lPX+QLY8i/g+I2iLQGOJGpNuAhuQPdfwipMHg6B6GurJ2HH+xcdIO6PMSIzFDLII UTX0+MGEMkWR4QaZQOodFF2L3No17wyKHgFk2YicsbnMbqwSUYAyWc+ELNA8VxOLx/6iq+TiyRkbR m7LGFpg2Y3ZdQR4BNoMtaY7pRDmxbsIMINmFYpeVsdH7xbk6g/2DOZYz+Z/qcfJGJg5hiQMOmkCgb /QXpcSHIhle/6rU8IOPKIO3r49gdwBPRQ9o8wuLs5abTlZ+QoytI55s5n/jKb4ejTFnBivkI6bJGr XRHfJogwhOs6yJrS6SbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea64-000VHV-EE; Wed, 13 Apr 2022 10:19:36 +0000 Received: from mail-db3eur04on062b.outbound.protection.outlook.com ([2a01:111:f400:fe0c::62b] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5a-000VDa-3H for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:08 +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=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=J4/fLC5H0yKn5c+BNYPKK5z4ER127LiY2Ys1tHO9GBWhz2SkqFA/0xBBhgOdTaMLdshTR73/O5coloqpsCSosaKgk8OXt7nXUArS0LQF80fvyNmqk5KILwY9eWk/1eUJPYhLV60SQhDKASw1rwAREb7CSgx85F/FlrExBSesCf0= Received: from DB6P192CA0016.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::26) by PR3PR08MB5628.eurprd08.prod.outlook.com (2603:10a6:102:8e::17) 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:49 +0000 Received: from DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::6b) by DB6P192CA0016.outlook.office365.com (2603:10a6:4:b8::26) 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:49 +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 DB5EUR03FT004.mail.protection.outlook.com (10.152.20.128) 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:49 +0000 Received: ("Tessian outbound 9511859e950a:v118"); Wed, 13 Apr 2022 10:18:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 09bbf7c87f3251fd X-CR-MTA-TID: 64aa7808 Received: from 65ead49e5221.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E2D0FB41-FC7D-45D2-BCE4-9F530CE6A5B9.1; Wed, 13 Apr 2022 10:18:42 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 65ead49e5221.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AJfWgVZP7ISv3poyJyCpRcFP38pniTVLnCqtMnTA/aDE+rYg6gt06b4pRwxZUqweB+yGSRIr2Zz5ysDNtbWpqm2CCYjkZ8ziuHLvszvKdMLjuR3xuN6TY40ujJ4kRBvg2QHzE8GfgPd7CrWVkv2tMEQmEyp46+9BO3FaM1eh2SRwR6pUfEvUTQL2BYM35dc/26PV9c9wfmtUjMAW0LSdsw7lX8d/aRc/RUkOzsgcekGOdRNq1lU4gQ8Cy8AOah4Uhwy055IHtX9YDTkRiq2Ykoon3CWrVDU5GndUUBCvpovvtSkNE5B78sKg4LMuj4iFafvsFvA2PgqGvMMXj9x/ZA== 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=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=TLWn8v5mv57GJTHABEQ+kkIBMFJaL9f3lHn1FX2hEIyDEU8lobFpZj8LihhHR1Xo/5dQplPgpeFwZQmkaRTbSLwG2GZV4jk3UQBQ/OMXnThkpQ08Da2L7Rk4LYk2e7cBR3cLzW6W2C60x0E7PIhrK5BOrGwBwK9p/dO2PLIz2LXciM50dAR4z8LxGPyQeJaoyBd2Xtmm5DrIxAgunLHKaysiO1FPHwbMfawXIbBvXZn3Fd8KWIHnqB5b1Im7G4DX57TiD+PvqS0SFyFa0v8PmSBEbJMKY6oijZJj8HLFM9aufgYVjjbyDSXjEaqrPRUV9NGw+Zz7ifK5g0DvT5D7Nw== 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=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=J4/fLC5H0yKn5c+BNYPKK5z4ER127LiY2Ys1tHO9GBWhz2SkqFA/0xBBhgOdTaMLdshTR73/O5coloqpsCSosaKgk8OXt7nXUArS0LQF80fvyNmqk5KILwY9eWk/1eUJPYhLV60SQhDKASw1rwAREb7CSgx85F/FlrExBSesCf0= Received: from AM6PR08CA0048.eurprd08.prod.outlook.com (2603:10a6:20b:c0::36) by AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) 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:41 +0000 Received: from AM5EUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:c0:cafe::ec) by AM6PR08CA0048.outlook.office365.com (2603:10a6:20b:c0::36) 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:41 +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:40 +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:44 +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 2/4] arm64: vdso: enable orphan handling for VDSO Date: Wed, 13 Apr 2022 11:18:30 +0100 Message-ID: <20220413101832.4594-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: b4141466-b8c6-4b86-b7ef-08da1d37006a X-MS-TrafficTypeDiagnostic: AM7PR08MB5494:EE_|DB5EUR03FT004:EE_|PR3PR08MB5628: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: Mev6B9CdRPoaC2bjRmfxXO+XH/ag/NrarainVteTtqjbsIPnO0HJJn+oSOVsZaqZTzK6+7aX5xfVAPJEgT0eiyVoaPtHEjRiy2yj4leQeQ6qZXas+vc+S3IEOaevTFmGcGOAjk4CsGZkVFTC9+JWiFEFJ7VKtHsj4ONO56C63nRscVaDRFF4HOIj+T5OQjw86r1k74oSKvNFMrTOKlbRNpAfWSfa2+L6sTfN8PI6Aa8Sk++lZsYPVk8rHjSAg4S53Pktbq8X4XbryUIi2NJHp0TBxXR9bCl7fgGRuP+ao8GhzOmGGk6fuh1GN7KyPuuMYEE9zpaMaJ5p2lSsI51x5HPo7Od1HdPrEWXQR87jUikSydPDNhp24nRuQTesrM5o4dmUEurzIGv+Og1SoDf4jApQQSfEr5azvhHI7pRftEA6NwUMmxIbrnhJXmqK6imhCr/991lpRN5V+kYXp8/RJqXewESOhZ/jdP/q0SGMo8fuk8pVLiVEBY11QMnbrPh8qxTVVkMHNL1Jigr0HSotr7Gh3ubuxjv/+sd5/tdagidSdz9qiJ8u1E5Mcq6ijts9gRuAssmAnEaLfsOPxcajfeDwpJBERlhv/LJWGR00T3N2ZEts7GlRFeCagJr9Iqn13Q02UrzkLSzqu9+PpEvrlN8NpvZcU9DrRCAUvXvkNjBo5MROw7c49xQuazymoEh+9tYDTnz4291nDA3pA3aMTw== 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)(36840700001)(40470700004)(46966006)(8936002)(70206006)(70586007)(4326008)(81166007)(44832011)(36756003)(6916009)(7696005)(2616005)(508600001)(186003)(26005)(54906003)(1076003)(47076005)(426003)(40460700003)(2906002)(8676002)(336012)(36860700001)(82310400005)(316002)(5660300002)(356005)(83380400001)(86362001)(6666004)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5494 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0d2afbd1-b9f8-46e4-10f1-08da1d36fb3d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UtvkSYnfSAh1DQmPHxxn7Fgy/LYDmsb36yuadZ6YOqQi+SFXszzlpi3B0zH+XWyUQSnJfFZmWMxwy9m0U3u/RRQEGubD5lEt3byRsYG+lYI/rBJ7dcP1SFxvAbvEBs1LS4NdbSTaBifhjoHGzBzuOgown/GkIuzq9hDC0b86/8/5kRGtDA1cjmVtKmptSEct71ugxmzTHMHcAJ2fwuynIkiFi0asH4o2Tx/+/gc3R9KrK5m/F6U4Xh1qxlr79nb8ckC4myB/nC9wyx37geI2HRQi0atIrNmOjk9ijKyeQa2piYSuIIl6YoFuYmulmY08ISLyNLWB1w5WR/zdraat0ZQYhP/f3OEvol9FPdQW9wa4q4EwwcIzWACy0l2gfOwGfCmW78KAybbXeKmQho1Xl9NCwTyLFV4ISXzvUgCUbe3h5xTmEPZRfNP4Sl51Aa+FDmNvbD0GkEklqJckVS7EsxM6j4EqZT9zohkVgtBS6Mt3G0vGeRBunxg3e1saAhsbCfytPcjdQfXnKSj27YJIE5zSrjOOsSpLp2ggn8wzFk2P1wK7tRjiZ8/7ONOb82SABE5ebFafrCjoAFs+RpTQ+XXOlJp36AIxcG+AMcHmrWrB4J14+kmoiKdOpd9+x1bV5R6DZ63+DGFb13ejsBN+WpCD909nXFO4VU2x7MY9BupUoLpYTrX5tn9foSdtF+fn 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)(2616005)(508600001)(47076005)(70586007)(186003)(44832011)(36860700001)(54906003)(316002)(7696005)(8936002)(26005)(83380400001)(336012)(426003)(36756003)(4326008)(86362001)(2906002)(8676002)(5660300002)(40460700003)(107886003)(6916009)(70206006)(82310400005)(1076003)(6666004)(81166007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:49.3590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4141466-b8c6-4b86-b7ef-08da1d37006a 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: DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5628 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031906_180446_1BBC0C8A X-CRM114-Status: UNSURE ( 9.19 ) 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 Like vmlinux, enable orphan-handling for the VDSO. This can catch subtle errors that might arise from unexpected sections being included. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index 172452f79e46..623d9ad2c717 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -24,7 +24,13 @@ btildflags-$(CONFIG_ARM64_BTI_KERNEL) += -z force-bti # routines, as x86 does (see 6f121e548f83 ("x86, vdso: Reimplement vdso.so # preparation in build-time C")). ldflags-y := -shared -soname=linux-vdso.so.1 --hash-style=sysv \ - -Bsymbolic --build-id=sha1 -n $(btildflags-y) -T + -Bsymbolic --build-id=sha1 -n $(btildflags-y) + +ifdef CONFIG_LD_ORPHAN_WARN + ldflags-y += --orphan-handling=warn +endif + +ldflags-y += -T ccflags-y := -fno-common -fno-builtin -fno-stack-protector -ffixed-x18 ccflags-y += -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO From patchwork Wed Apr 13 10:18:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811844 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 F1438C433EF for ; Wed, 13 Apr 2022 10:20:31 +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=2QS5N6VQfCGQrE/+01sAc0zTIIR2FWyqUjOXLuwMaWE=; b=kqxzjRNz2dAelK grkhK2p1SQ845dKUFiOb/4Rp3P3+fv7Isp+JYjY1OCyl4ZTeW0/kKRCdRWCGOkuN5b/jN5ykUn5kv TwnPclewNmzyv5BSrjV8a3tWvzApWZUYT38Es0X6/C+MengYdHW36/CuAQEhlIAk9tbWHE8IVVOMW zOkagV/CfHSjuOSUmeOsai3C2cHAF6+EEZ2xiWcORs4ab9Wz7ujXkQtY1qFhQk7v2FoUyVSB7Eznh ic4NKadRYytZEaZGRPk0m2nSgTLS4ed0Hf5TB4X7N1oQv+g7PfXEAeOlx5LOBJTNU447l1jX+CdrR 13DomQWV8kGg06r0o3Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5c-000VEd-Ro; Wed, 13 Apr 2022 10:19:09 +0000 Received: from mail-am6eur05on2062b.outbound.protection.outlook.com ([2a01:111:f400:7e1b::62b] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5Z-000VDV-Qz for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:07 +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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=lp7CIpgHedwHmv5z6IQrB1NTR3Uk444lJDfKkt+/dCOikO/LQHKiyF8DuG5JCNRJeKtlUm6IOy+UWW44gSlsDb+kMMBUrRLCdbJE2LEZM9vHPdlaLX1D9aB9oNO/q/uSZSkeBTku+ucvPEmyElhyBLoF2TfhZcSEF/QZfvGPjGs= Received: from AS8P251CA0002.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::15) by AM4PR08MB2866.eurprd08.prod.outlook.com (2603:10a6:205:5::29) 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:59 +0000 Received: from VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::ba) by AS8P251CA0002.outlook.office365.com (2603:10a6:20b:2f2::15) 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:59 +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 VE1EUR03FT011.mail.protection.outlook.com (10.152.18.134) 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:58 +0000 Received: ("Tessian outbound facaf1373bbd:v118"); Wed, 13 Apr 2022 10:18:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 508aa161527c987c X-CR-MTA-TID: 64aa7808 Received: from e1fb15b597a1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2D205504-395A-475F-824D-BE61533960D6.1; Wed, 13 Apr 2022 10:18:52 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e1fb15b597a1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O9m5VSRFTudZ3f8KW21Jhro5ZTuBIedK154X4UF9JHdi7IrHcUvpYQb8nwP4AQwynGc6msyihPcnmrXeAZA8f2ysUhwcfA19aTA7TNyVdx3elgmXPpbKSFXL5t1nyJFonyCSHD5MwNKR/HixfjCizRh3ewh+5ITR0v9XXiLuR79EWPQMJZR4f+J6hXaeIrGUcWAAdLQPF7TccRbXZ0YOHF0EQKkvjDMT0j6o8d6lgIF76SGOKal0gMTMTCsTuLoTHVc09S3lpa+xGcCdZvIDWC0PpcWVS2ylHFzA6gR0oxZxvfHiQXOgn/lLdUuN53wVijskOwF7A4flcz4CCQoOBg== 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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=BO57XNoYJAQn0IQ548JPniUmkeqOj7/rxaAnyuGKKQ+0nrq0A40SSL7H+atXHvnDmuzsQJdNn1iCYtTaR3MEXD8E9eNvgb1a/dcfQsYLwh0LOJDL1k6UxVURjZn4G83JZXCcCg6XLq4Cs5ql3z6Chcc1xCHgWS4cVWhik0sdC/nGfI4jYnYg3D0tXr5Q8QaujLgE9BUZub7tsPU+ko7QLj6awbqfvFB1z+2Bn8kNXRpZ5FhH7cWUnBeSPLWO759/RpDjP+U1g02FmQ9/rIDU1Z6hL5yPwV8ATcoYdVvkRjeSdxaYZgYUtYA6ybaPVYi8Hd1oprZpdAW2oZQxKbyRFA== 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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=lp7CIpgHedwHmv5z6IQrB1NTR3Uk444lJDfKkt+/dCOikO/LQHKiyF8DuG5JCNRJeKtlUm6IOy+UWW44gSlsDb+kMMBUrRLCdbJE2LEZM9vHPdlaLX1D9aB9oNO/q/uSZSkeBTku+ucvPEmyElhyBLoF2TfhZcSEF/QZfvGPjGs= Received: from AM7PR02CA0015.eurprd02.prod.outlook.com (2603:10a6:20b:100::25) by AM4PR0802MB2226.eurprd08.prod.outlook.com (2603:10a6:200:59::11) 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:50 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::a0) by AM7PR02CA0015.outlook.office365.com (2603:10a6:20b:100::25) 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:50 +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 AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) 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:50 +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:44 +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:44 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v3 3/4] arm64: vdso32: put ELF related sections in the linker script Date: Wed, 13 Apr 2022 11:18:31 +0100 Message-ID: <20220413101832.4594-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: aef2273e-6120-48d9-5c2f-08da1d37060c X-MS-TrafficTypeDiagnostic: AM4PR0802MB2226:EE_|VE1EUR03FT011:EE_|AM4PR08MB2866: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: WbueOFZznZnx9QRhwS5suWbQlJp+X+cWaN1OeKMk1kQBjQ7O27Fuod+6AV1BJFVrP7xKNcJoLCiMzOb3Xj2E6AkufQH+m33EDxoJ+pRiulIXpwfQdydRYk1/28982HJz0Bsdc0c0+1R0zOokJnZ0K36lww82nwF3TEQ94wXKJRH5vYf91bA3jqTTAEWXLvcQsBDd880GtPH4ZpMBjJK9cyw+GQTVmzOXpunLhn4RQw2BhFnDDgHxNMOiNmvfG1rzFUxtyScxWRL5f+zEs1n4D+bEICIlx50U8mmdNTjpqLa7goAOSxYLuuZbfqsQyk/dh4ZMFULO9h1iHzOftI+zKWTeLMhRljxUdNX+p/RfVe1wavXg1bKaJhPQlJHeuoosTx+yQVrDjE+bDN36za8o6k1EsGeahmxGoNaM+rSkDVBT69rg9scxgrlp7V2mR+0lYWbaYn2Cln7eHEtKDOv+efPy5i5JaezqiOVB6US8GFc4BGtLOsH3HI39QI79zKuvpg0iKnxcsq+vYFApxhOPOMsLTIBxS462Ujx7xSXCas65jNx4SoSjG1aKQDd0fHoNMsCBCP5/BYbFQIeopHUaNBEKiSAp0cwKYRQjPjjhwYpnoRN24d3BLCVwBRSlfRRONmc98ZpO+hNLjdvg1z7NvZ+UVNhjZp+oBZVK78ddX0770CuM8lVe7HKbsUuznZaUrCvCAaQ6viSUEu7ixB37Jg== 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)(36840700001)(40470700004)(46966006)(70586007)(70206006)(8936002)(186003)(1076003)(44832011)(508600001)(26005)(2616005)(6666004)(7696005)(86362001)(4326008)(8676002)(36756003)(316002)(336012)(426003)(5660300002)(81166007)(6916009)(40460700003)(54906003)(82310400005)(36860700001)(356005)(2906002)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2226 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7a459b10-1928-452c-92e6-08da1d3700d8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WKwrB5584ODK1uEFv/+BZhkKYVGeJY1tKQyZng0c6Id0oEmkRux7vGNcXSj6+05UzjNQF3E5XwEYB60YJlx7nUMY6PzhLLLqqwD+uLPjAYydL1pUbIYCjDex20e8t3U+4JA/1p8Qi2QDiUnx2fnXHeff7eNiJoF6Fg9IxwCxpwFmyWnQWsqOp4ArYbLvfR6E4wMcLOIP8i1JcB3sM5tTgd//6GKnsxKZDvUC2EA6xxFcIo7PJ7gA0NIELoNEWf7Nm84bmEWCwXcIvf6m+pM4N1+9WYq1s0LkLnLqjCfrjMdj794+kdtXtTta70zaRIy1cfnWz9cdpG4LjV4Vg89seyxoE0qwT0W1vC2MJssCZhnWm7NasP29KI8jqw5yNzNPGZuUnw2ukMkqBamyKi3oDTWvxN8ttZA3ciNkPWUlwJrdPCRhfEIYK7Ym+D/IezUPRlkWZvvJE41fjEPOOfNo7mgXUmfFEt08zI7EH6hBS/8kG97gpt819stZA2rmbYXh653aZmYafrzCUgAIgBW1RaVP4FBBw9thOMcsbaybei9ZliNx+DY+X3MO2Jy5gjOmL6POrj40rqsTwk6gdV3AgjlyXGJ/AD6EbrSR9dQWb6vfws/R5UYRKrMBx4UbDGqSfpngnQR2LmX3ZN0zEtAHA3szQw//X0vbSwjgHZbik6rhWhSd9tmkK/iL1CBVERmT 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)(36840700001)(46966006)(40470700004)(4326008)(8676002)(107886003)(70586007)(6666004)(70206006)(498600001)(7696005)(8936002)(36860700001)(44832011)(81166007)(2906002)(336012)(426003)(2616005)(86362001)(6916009)(40460700003)(1076003)(186003)(26005)(36756003)(54906003)(82310400005)(47076005)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:58.7132 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aef2273e-6120-48d9-5c2f-08da1d37060c 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: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2866 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031905_915665_7BDD59E6 X-CRM114-Status: UNSURE ( 9.56 ) 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 Use macros from vmlinux.lds.h to explicitly name sections that are included in the compat VDSO32 output. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso32/vdso.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/vdso32/vdso.lds.S b/arch/arm64/kernel/vdso32/vdso.lds.S index 3348ce5ea306..3bb955f08240 100644 --- a/arch/arm64/kernel/vdso32/vdso.lds.S +++ b/arch/arm64/kernel/vdso32/vdso.lds.S @@ -11,6 +11,7 @@ #include #include #include +#include OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) @@ -42,6 +43,9 @@ SECTIONS .got : { *(.got) } .rel.plt : { *(.rel.plt) } + ELF_DETAILS + .ARM.attributes 0 : { *(.ARM.attributes) } + /DISCARD/ : { *(.note.GNU-stack) *(.data .data.* .gnu.linkonce.d.* .sdata*) From patchwork Wed Apr 13 10:18:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811846 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 08857C433EF for ; Wed, 13 Apr 2022 10:20:50 +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=+AxfhCs6dRAR64mPjK8gfpZtuZ868BRJ9UvSs+yc1no=; b=bCjj3I2xvwQc2F kyrp8fsZXsNkL2Quz/VI2Nvlujo1bvBDXdrgiAgG+WREm2w1P8FHvgUBHnwy4uDvvuq3gh/mNB9l3 uP8814c8keQT1/Ug+nYBlF3WHkNznzNf448j2FyD8Ff4ggbn930tIOUXF28OzxKBqAlGTEx3rlu+E rWwItva+1PN7xQurZ9pe0B40y9Vf9OTAJgv/FnYSj32yNcvMV0Qfo0hZA0YiLpfi+z30uKdFjTVKH AxKGOuDgIhtHOws1AwMisKu+44xrxMVYf3KIHY9LLwNRUAFpbyb8BlxRyCjwrRrScXseHFHec0D+y yk+XGQ/Xqz8j6N5uR9tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5v-000VGT-4V; Wed, 13 Apr 2022 10:19:27 +0000 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5Z-000VDb-S4 for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:08 +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=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=v6qNM43gc0kUQM5UBXAHBXoQ1gvo3KzuiWHHqHHenh3eoncAlKSTTJh4EVP4dokjUjQfhbw6rYEPtwDPvvPsETikgfJBNZ9Rog+fx9z1GhcLX7/f7mgrT0c7O7qDyiQatrTlkNzpdLAnoDOmUHoYrlfjeZ79qF28gnd6Ve0ydOA= Received: from DB6PR0802CA0032.eurprd08.prod.outlook.com (2603:10a6:4:a3::18) by DB9PR08MB7769.eurprd08.prod.outlook.com (2603:10a6:10:395::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.23; Wed, 13 Apr 2022 10:18:59 +0000 Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a3:cafe::99) by DB6PR0802CA0032.outlook.office365.com (2603:10a6:4:a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14 via Frontend Transport; Wed, 13 Apr 2022 10:18:59 +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 DB5EUR03FT038.mail.protection.outlook.com (10.152.21.84) 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:59 +0000 Received: ("Tessian outbound ac9bb5dd84f6:v118"); Wed, 13 Apr 2022 10:18:59 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 64e59714727dcd12 X-CR-MTA-TID: 64aa7808 Received: from 29eea49197e2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 61A9DDF8-64C0-4B70-A14E-1D3827631880.1; Wed, 13 Apr 2022 10:18:52 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 29eea49197e2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VsBXs2NH3VT1M2H06fDwJYawmn8g/RBJU4LonIq2LTPbRmrd5v+UwKuOk3euU1/rejWEHGUdmYuW00DKAK4ObU/hIbklrIQ01QAkruGPmv37soTjvRkJxtp5HvJbzmXNhSf/zDbaE9GkiuVS6pS4oMP/s94NVybkCkdyEs+/aPQAZsR8yHL3nqkJ4ydDFSUv7Lh0H4WhX4fuGZbJtkP53XHbfIFskTBcboi1PRn7KrPgOQd6O41O7LLE5iXeZXH/B7uw5EdBUk2uYYW9aA5CrkVwdOg1F256eeAL5azRR4Iq2R5C+s1m+4Lbjh3Dg6HtZoak++3YuKy690JCVGbIzQ== 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=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=lOtdNxGX7c0NjmHYCf+mIrf5RtowJc6DnWPUi+CxCgLadBlpH8FU8Jp79TvcI3uCE2wYUeMfo5EcmrCo/iYyJVdkW/QrT1GAsxmo8aM7yD7wxUT5w0ceCvaEWISMtDad4feApQY+WAlaWbnjAgTomjC1wRPGY/OCI86m/niwqCl5En3hrUbwh3+2ov8h2gYxXAXtm4fBftYDRGIP9NfilvAm5/lmJzcQbOd3zcnAIpUHHvrm6GNyPYvo5XhNKVxSjpEYqa5ijvx0IIJqAJZdR3Z5Xt+Ghy0e0RBltCZhpS5XcUD8BkjpmUatzEJs6MitBfpAOM27WocipvWbwNeNdQ== 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=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=v6qNM43gc0kUQM5UBXAHBXoQ1gvo3KzuiWHHqHHenh3eoncAlKSTTJh4EVP4dokjUjQfhbw6rYEPtwDPvvPsETikgfJBNZ9Rog+fx9z1GhcLX7/f7mgrT0c7O7qDyiQatrTlkNzpdLAnoDOmUHoYrlfjeZ79qF28gnd6Ve0ydOA= Received: from AM7PR02CA0008.eurprd02.prod.outlook.com (2603:10a6:20b:100::18) by AM4PR0802MB2258.eurprd08.prod.outlook.com (2603:10a6:200:62::8) 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:50 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::44) by AM7PR02CA0008.outlook.office365.com (2603:10a6:20b:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29 via Frontend Transport; Wed, 13 Apr 2022 10:18:50 +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 AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) 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:50 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Wed, 13 Apr 2022 10:18:44 +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; Wed, 13 Apr 2022 10:18:36 +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:44 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v3 4/4] arm64: vdso32: enable orphan handling for VDSO Date: Wed, 13 Apr 2022 11:18:32 +0100 Message-ID: <20220413101832.4594-5-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: c4fca150-4b6f-4daa-b7fa-08da1d370662 X-MS-TrafficTypeDiagnostic: AM4PR0802MB2258:EE_|DB5EUR03FT038:EE_|DB9PR08MB7769: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: it2Cn8SyEXi5mh/2zsTHKoUzdi1NwvV8UE6FDCmt/Uep50bXsz9k2QkWIgCHVUUpDbJKXjnr4kAaGBKcqP/tDhqjx5zMsRfiJ82zQABIuwv4iCDrFZ2OiybXVl/JK/QsVvwiegJaRr4xSDmZSOkoVX4NUdBfXvPTvwTYn/Dr6r7aysYyycktTUW+0Mc2SXNxrK228tNeohxESdMdXs9YTOC9iIyn/dQfXs/A94ezl11TY5GBKaWugLiu+NquK+kC0/6ZUgCxp03g9hvoO0tSF3JrWpMCrwTjH9ZYNHdeeJMTyl6m+cv1CBL9pCMGrZDU6j5ALETYKFvdP4V7XgdZhHGF0sDCn3w327nPHMIm9sm4iHMQmE6BYUTUdBzu7vc9GSP2+xHiG63h/p0FG4rDhJNwVTIXZiBFrcpKhf+Ir0sp0FT46W9B3URTzCAaVbisrevfBSeVV9cwQbF6VZbGTjcB7fUAq6Zi8oOcia1dmZGIv4q0dYNjYCyOrLjAT1Tf1bf6xgPdNUW+CB1g+L3+TFYSGRnroAxVlsggDudumW2cVUSC0hHPNc4ase5M8stQMJi+4ClYWM4HEWAenjaW5fs54ZpSm/GW2cfKuEoX6pBIot8FWLs9pbEJTLIzlkucUkP7wy3hk32YR5T/66k2p9Oa5oJw07P5idlL0oquFp8HsW6EPzy1lUAtxtCBzPgHLvjDJxtkMvJniu+rjgGE3A== 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)(356005)(26005)(86362001)(498600001)(186003)(36860700001)(6916009)(54906003)(81166007)(44832011)(4326008)(8676002)(70586007)(5660300002)(70206006)(8936002)(426003)(336012)(1076003)(2616005)(47076005)(40460700003)(6666004)(2906002)(7696005)(36756003)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2258 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9ad83a14-7118-4ef7-efd3-08da1d370137 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W7JzWnDzSzcrCHYrlolDf3mbskcgMZAPUl0Ch2yNcaYr4Cn/8CGa7ZhOfChP+WojErmEGqQRwwGKLJ9jYmvtj8o32+ZHQETI6DdOCiHqtOORIbuPogqy3HViifSyGcZMaJmaXzTS3XXUZRoQLkv6G1kKO1gJ7VNaVxvUjbho7VUB+00DhgEDKXAVX5RymnCut4oiqmpEnPOrlNpesHPytSfhNGasclMF75BXAuOB9ZTHREj/sdF7b36obn9CkFsKvUSBghkp6lzBoLi0RdgDCI0celTyEOAhhByefnLPhnc/7gnOL8Xa+xrDZS3Wrmh5uzU/zORJu9X+XNYqOEql+doR3PybJEB5BKC1rlvuBSx0+DVs6fGH+j0JNBgFJjJTdhISbnkRtoM+MAbNw1w1RKUdeeXbIWssV2P4alap1oz3lPIYQHjcchBV8NQ0qBF7MXU6db/n0RzN3VC8rw+zGssLxAMM56kByqAhtwLNCSe8ysvO9Yqf6ffO99e75hm/gnpx7VNeKN8CQ1jjIOwGDtTsNJFWM7/WOuhKIY3eWaz/22vuv+CF+/2EbrYSP9Hg7Brys8IlKzH6Gzc5QQPc+OHCUupxVNsSsZau/I08KejGTs/CNXDmIK/Y5YbwKX9GNu4Y0osQTNrIUF8PeRXQM7Nn7lVTQ2eyr0dJANrdNb8VAbdoElzvti5MW8aFSGyZ 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)(70586007)(82310400005)(86362001)(54906003)(26005)(8676002)(70206006)(426003)(1076003)(6666004)(36860700001)(36756003)(4326008)(44832011)(2906002)(316002)(5660300002)(47076005)(2616005)(81166007)(336012)(186003)(8936002)(508600001)(7696005)(6916009)(107886003)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:59.3886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4fca150-4b6f-4daa-b7fa-08da1d370662 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: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7769 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031905_950658_9EF085C6 X-CRM114-Status: UNSURE ( 9.56 ) 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 Like vmlinux, enable orphan-handling for the compat VDSO32. This can catch subtle errors that might arise from unexpected sections being included. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso32/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index ed181bedbffc..1bf0bfb99652 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -104,6 +104,7 @@ VDSO_AFLAGS += -D__ASSEMBLY__ VDSO_LDFLAGS += -Bsymbolic --no-undefined -soname=linux-vdso.so.1 VDSO_LDFLAGS += -z max-page-size=4096 -z common-page-size=4096 VDSO_LDFLAGS += -shared --hash-style=sysv --build-id=sha1 +VDSO_LDFLAGS += --orphan-handling=warn # Borrow vdsomunge.c from the arm vDSO