From patchwork Tue May 10 09:58: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: 12844754 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 D54B6C4332F for ; Tue, 10 May 2022 10:00:42 +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=JJj+rvx3xDp5oMJdK3ooh1jhjYYrpZM5Jz/W6MiUdQA=; b=r63RXBdnE6Tk50 FpGA5tKXJ5efEL2XBOp9XdMlmI4dDnM/kn7yp8jCBNgp5jHRiVdiUi6Vn3bvOP1XQvsIiBtctsO9B Bg7YMtf5zsP9K0k/L4aGMLZPaKbRwjnwEF5tLMer53AaiygtKq5fXPSSgWRWVXAW2LZVMGsOMAI34 FEx0nwJt3ug5RX47YIR7YYzdhyjejH+dPrZabxjZ7KndN77BbTnMvtABPrQojRCL9XleuVp2o9+mQ Ut8Pwj17m0FSosuj290tsbkbtgwXWgR+B1A5o42Sx1U++yKErMA8kwWlOh5HikgIY7SvJ/jRMqHh4 hPuI+Ja+mYXlEtvrKAOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMe4-0011g8-8t; Tue, 10 May 2022 09:59:08 +0000 Received: from mail-vi1eur04on0614.outbound.protection.outlook.com ([2a01:111:f400:fe0e::614] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMds-0011Z9-Hy for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 09:58:59 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=XjSGaTCpzNVr/jYkE27GcUnDaO4/BDfUO586NOsn6lPOqOVPickhcsOcpkDEBIp+/nHlRcHJxccweQt/kz7JzlgBiBjt91o0bdCL0w/kL4t9ilZ2tJ2ryuskJM5gpledcG8ohXfLsSq7yg6vrylcE6hmMUHPCp6Iqb1KC8gtENWvf5KGAwmCxIqG5fyGw/ik2rWjcQ4OWRqFzj8EuLsh08kycDzP56ns6HeN3lcmfImi7CcaUPJJUSbURzZQZyxKygbQgPVfsQmQWRMLrHcGxT9KkK8xlQgztTBqei49iDuQOsv8s5HpEkCoowsA/8KGUDA9GEeDbVQWoUresMENTQ== ARC-Message-Signature: i=2; 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=ejCe3gZrl7ATn3+uUmaRRiirtRizgdux1RzZZZikJ9I=; b=nIA8MSEiec01BLufDDfM0Vg+7fwXtcAeqOLq1b65KfY6aSgr3dq4zBWVdUG7fILyFvuXVL18o8re1UPmZl3e57sVGKfGpE2l4K64pOyq5owBy12jZfRFXLHGNb6I7ajBxI3JXKdH5ajgaXyx47OoRV1a27Sa5vINf7G0pnP1sOth1zgSU5WBiUr06sAXaKDoPitdjXrmJ9sh4w7RHv4EBSgqcN9nnH88khWvKyIZbGSi04nM7BeUYPrjfiGJmlLCFiw+KSsOnwomHfMO3iceADAkQzgHprrXpHppeaMxBp8xNlYENKICbOtgmfivk2SZSq/VN4838YsOvvh9lpaprg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) 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=ejCe3gZrl7ATn3+uUmaRRiirtRizgdux1RzZZZikJ9I=; b=yLvJlMAdp4Q8WP4v3hmFgk1zLCjEtGI1ai2JqMqUrbsCM6r8QBSpEVNSp2Qe6Z+8+AoJMbFJiVd05QuyXMH3QHtoPNqKfYc/hr6deul/9Vpa46sCHMvXhnA8oSrgJVpIb/dHN0xDsV6aV9qfahLLiSKtmM1Mr9FQx9os05X2Zlk= Received: from AS9PR06CA0025.eurprd06.prod.outlook.com (2603:10a6:20b:462::30) by AM0PR08MB4321.eurprd08.prod.outlook.com (2603:10a6:208:137::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22; Tue, 10 May 2022 09:58:51 +0000 Received: from VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:462:cafe::d6) by AS9PR06CA0025.outlook.office365.com (2603:10a6:20b:462::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20 via Frontend Transport; Tue, 10 May 2022 09:58:51 +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.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:51 +0000 Received: ("Tessian outbound 78191104f1b7:v118"); Tue, 10 May 2022 09:58:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 968b4c640b39473a X-CR-MTA-TID: 64aa7808 Received: from dc89c37a336e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A474F864-8C53-4C2C-8A8C-C2F3BB870EBE.1; Tue, 10 May 2022 09:58:44 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dc89c37a336e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 May 2022 09:58:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fChAz3gF1k02F+MMfuTG+Ju52h/qiGCy5RZRgwFTRDHyTkxtZNA1UZLTYhaZw93C32d2KplWYgMmGCH16WR9dwKFNi4cW0qZeeKrdFwVsJgzghXrNN4FRNx/IKqBy3a52s02qechwrIr9GvTJe1jcObO0zGLkU2rprJ1XoB7zinmFhvM2Z91PkY+1kDz6KUpC1HHh2kOxn6k9BsWuVUWgXeBqPkZEOdKkHxEWpcXG9/qvzRVK679k/+//5uNpU6fR9UNeSDfLiyLn7FE3Vq9NtQ/l4bhWXCw0SFbwGKbZB0bVZwDVXmBChtNiVOjPc92r7lUlJLaBOAoQi28hsLsNQ== 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=ejCe3gZrl7ATn3+uUmaRRiirtRizgdux1RzZZZikJ9I=; b=Z1QABD4wZqyzHWxrDqm/k2Lz6LWkTacI3ozLFOrjVv/q4IK/bcNLcL6UxejM2v3/TvtoSdh0qmDUxMH5Zje+w+yP1GOzBtlDG4SKUezrqvs4wYmJoDxJ8mt3Z9ZsWcNgfRhvLwRGDde/aImtBOmOg3K1bAaz5VSCDDWzotrGsIIPVOrJMO/e20z0T9ge6ev5fRzyNtWuL6nn8VxctjkRPEWaWjhh+THMg2ILWLiYdk1+/NsuDZ6gzKoGyc/6ypgu4sdloKUVXpB5MHdCj0SXfgJboJ38z7iiiIADQlvPRgPzqqKqM9N7ADilsLvVXtIPchpPn99oDLgAZCMtOFsM0Q== 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=ejCe3gZrl7ATn3+uUmaRRiirtRizgdux1RzZZZikJ9I=; b=yLvJlMAdp4Q8WP4v3hmFgk1zLCjEtGI1ai2JqMqUrbsCM6r8QBSpEVNSp2Qe6Z+8+AoJMbFJiVd05QuyXMH3QHtoPNqKfYc/hr6deul/9Vpa46sCHMvXhnA8oSrgJVpIb/dHN0xDsV6aV9qfahLLiSKtmM1Mr9FQx9os05X2Zlk= Received: from DU2PR04CA0276.eurprd04.prod.outlook.com (2603:10a6:10:28c::11) by VI1PR0802MB2542.eurprd08.prod.outlook.com (2603:10a6:800:ad::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18; Tue, 10 May 2022 09:58:42 +0000 Received: from DBAEUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28c:cafe::e6) by DU2PR04CA0276.outlook.office365.com (2603:10a6:10:28c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Tue, 10 May 2022 09:58: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 DBAEUR03FT024.mail.protection.outlook.com (100.127.142.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:41 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 10 May 2022 09:58:46 +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; Tue, 10 May 2022 09:58:46 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v5 1/4] arm64: vdso: put ELF related sections in the linker script Date: Tue, 10 May 2022 10:58:31 +0100 Message-ID: <20220510095834.32394-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510095834.32394-1-joey.gouly@arm.com> References: <20220510095834.32394-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 084a4cf1-8ce7-4139-2399-08da326bafa1 X-MS-TrafficTypeDiagnostic: VI1PR0802MB2542:EE_|VE1EUR03FT011:EE_|AM0PR08MB4321: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: XvBi/FeUvDeL5cspg+uzq9zUowrFZKd0QplqB7C07gBvuRcDex1ii7bspr+WfRyrr6Zj0uvqwof6FH5uTMhYzVmgwAHjBE6HwoqBOhRVKa2vdsRdHqjyc/f2irsO894uQ76M6hof+p970/F1dGuyP2k5BGqZ+X5IByZUpnaJ0TuTOYr1wwQrKiQ9OLqvCugehIpY5RDYj9strVTFeT4yCzEAbA2J2D7Niftz8JcU8VdgOJzuuhT3FbuHIRbObivpIF/1guMAyWOG+vkW/OVN7tVTgoh0I2z3FNdY0Zq2T6a5yTTb/CsteMF2AchTy1QWlKMKCT1uxlV6wJgxMZq49Svhw2/yIpiDoss4dt5Rz+ghzsq7VV5nFaG5cW7I6qnR6sT0PaD30REAoe4Sja3Av4CGvQ67a8TBnM7WQ4YRB8ciedtGAqyk1r4fiDkm9Ya4sT3kp7np6TlqjQ31CMlzbO7tjtmBuLOsg9uhU5y0iK0BSPvx5BoTebXZmPo28dCGW7TCWXx7mS+Slvl77cuFpnyOtykLUBgWR1jB3EBk0QgeEqnJiKy5v3hVyXMWKptazbwOgdPkTQ+sYmxFC8RGB+6GUGBnEqgpZxvEodLtOI2tY/GUyFeLpksaIv+5Q5aVOeynlEzX2N/SwrKZp89fLav/flLRSAtq8rgDi0jrA36ixiLYUArd+Vp2DkkvQVpkP2GkpKPcvgWADLR8PwdbXA== 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)(70206006)(8676002)(70586007)(36860700001)(316002)(6916009)(8936002)(4326008)(5660300002)(2906002)(54906003)(36756003)(44832011)(26005)(336012)(508600001)(1076003)(2616005)(426003)(186003)(6666004)(7696005)(40460700003)(47076005)(86362001)(82310400005)(356005)(81166007)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2542 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f9fc8961-69f9-41cb-6a7b-08da326ba9e4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OBAtdSuyVriRY5GwDIIsnGQJ/iAKmCrPjBNOkXuHR2tvAvjt2H8B/28GNmmeKxjyBy0V6KvjyRmUoJCbWFJNEN6fsF4zudRw+M8aG+gIPPN4r/WL2vNOaWfQmq5BifzxrTVw6mktQkArZOoQep1w1DxOQDmfy+pjMMnV6f0LPyW80XWNjqwziefqHRmePQnfAMeiB7jUrB28emzbM5NREJ4f6cVlESS/clzl6qyermS/cyduZPoF8ziH6xH9pMpoMokeBTwnjW7DSVpY4D1DVz3t9y95f4RKg12mlqzUpaqk0MRn7WPIAYsBVHyO6FhjdzaJQ0p6ykWJFVKjolWfAPkySfmn37g+Pj1Ry0/4lN31UftOhs+BOf11DPbIHlNn+JVNkG1D4Bj8255XRIcsszMAhHnI6LQsNA2gb/7eUWqicRQh+lyQQXlCe400qgLSgHDpFC9RRoMlPsmsu5agk05iKIqCmRM9qhGDjRriAnY6YIufbrPXGXA8V8sjxyDhJP/vrQrrAymVd9QtK21xiWbaaCgq4jcUeYQIg7IbQnB42ngveowjuhFIVhM6N5YuM5QK/F9bnJNT8g+Xc7k6lG5NiFeRmslhLEAH8BJgA7CkQ0wSM4Bpk4/xXvnqpKyMpXkl/MY7lLu88ZbQvYfdu3IVbQKKuxTpmPmHXUU6wjOz1leuw0u6cf93lLGLKFkV 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)(82310400005)(2616005)(36756003)(44832011)(81166007)(8936002)(70586007)(70206006)(54906003)(4326008)(8676002)(6916009)(316002)(107886003)(426003)(336012)(40460700003)(47076005)(36860700001)(508600001)(26005)(2906002)(5660300002)(186003)(6666004)(1076003)(86362001)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2022 09:58:51.4715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 084a4cf1-8ce7-4139-2399-08da326bafa1 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: AM0PR08MB4321 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_025856_641869_47C54854 X-CRM114-Status: UNSURE ( 9.50 ) 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 Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- arch/arm64/kernel/vdso/vdso.lds.S | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index a5e61e09ea92..1cd85258c079 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) @@ -49,11 +50,26 @@ SECTIONS .dynamic : { *(.dynamic) } :text :dynamic + .rela.dyn : ALIGN(8) { *(.rela .rela*) } + + .plt : { + *(.plt) + *(.plt.*) + *(.iplt) + *(.igot .igot.plt) + } + + .got : { *(.got) } + .got.plt : { *(.got.plt) } + .rodata : { *(.rodata*) } :text _end = .; PROVIDE(end = .); + DWARF_DEBUG + ELF_DETAILS + /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss) From patchwork Tue May 10 09:58: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: 12844759 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 35286C433F5 for ; Tue, 10 May 2022 10:02:09 +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=WFG/AV7AflXrAc+VA9KUymA05Jsdypvj8n6szYjkg4E=; b=AWmNH6ZchhKvju +W4RnVt/5yINMY7LyfPRFPctzYg68Kx3ZqAvh9Up5gV2CH7VmIzFvr1Nl8hTKvIOKhWUp046K5tbL 749mxHtiBa+31/9ah80DigKLw/SQkbwu9d4I6xdCv/MJ92fTAoVolEVmkFTO4EeS/rBnAnsuF6x3y hEMtUumjjzL/YjhsEpfRwVR/Br42XY8+0yYD5+X+gGvfnOoX6lymmvwLBfUfmTmiliBQPPufSt5x1 E8UTroTpxMUaStd6ta7uMt//c3EAdjhRwLOlqqqwcCXlg680YcYupKI4dW11PzBsBT0CVUToUocEp Xs+hwz3I8j3l0M+3zjkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMfB-0012Q4-8K; Tue, 10 May 2022 10:00:18 +0000 Received: from mail-db8eur05on2062b.outbound.protection.outlook.com ([2a01:111:f400:7e1a::62b] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMdu-0011ZU-Tb for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 09:59:01 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=COUvCCzNeaiVqacu+xdQD2LgFb0kMv3urpiV9jFt0mJ15wsCTszaYyTpQCf4+D1mkPSlcJgqetAAVldOyJ/AU/PN/uZnPCICub4QrKlWygws+PHoXGWGHgfrK4USIPXfcQ4qV6wwloCqwp0Ve1cQURkrfhBRkP7j3l8FNy5rhKeoAmFT3SD+vpbjAdWRAkeAFV1YRDIOsdQ1XchbNaMMCXgmvaAZ1UjNI057Sr27RFjN3AIulZt9cKtDJiFBquFWleZ2z3eDMjtsUnInhpxAJqGENmeQt+MMXZER70HEe/QEsrmI1Uakp8Lm9x/XGOgro8M30MXT91+um1Fon4Q+mA== ARC-Message-Signature: i=2; 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=qJC6qb560ILk5EtQmr15Z1Qu2o3kT8peovqn5Siu0KE=; b=SuZ4RkE2SyXW+HxkeoKaeHN5FU96SJqwYKCGX7FYQOmyeDFEKBJQNGvdQd7mtSd/YUqXUl7tn+IG4bTMO+r5OKn2lLiA6dmRCsaYxzoUwa1DWgjgSgNrS9dSBVb6LpAwT1+KUpiEg91XLA8TwMInCsewUNSrTQfjo7LMGZBIk09LMrCiI5Ic55xg7f+UOU1zmlJ2p8yfVEpxYyRUFHnBDSwLLRCk87TssazuwPNsoBkClxMDVKrZB6pLZaTbrCbrtAnRde2Yt9ZDCWSCpFgTgV5e8jk4revmBwnQfSmXEcWa/vvHGztMkGGNU+lCcOYX1wIlLo4heREbNgSqUkC+dQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) 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=qJC6qb560ILk5EtQmr15Z1Qu2o3kT8peovqn5Siu0KE=; b=pQXNXLpQ7gbQx5rp3FKNQTB64vSLUeuj7hHJAeRBhPZOt9K63AyRChbG7ixMVR9tJj+fMb2ZuV5qNII9aoqlg4PNol/VcBJDvrIWmVdkhI12+CrxEcPtn+tmg4JqB0hv7t1rTbGzksXlfSqTDvLOVISAY+1CcVYHoXursLOdQ0k= Received: from AS9PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:20b:462::16) by PR3PR08MB5627.eurprd08.prod.outlook.com (2603:10a6:102:83::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21; Tue, 10 May 2022 09:58:52 +0000 Received: from VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:462:cafe::1d) by AS9PR06CA0028.outlook.office365.com (2603:10a6:20b:462::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20 via Frontend Transport; Tue, 10 May 2022 09:58:52 +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.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:52 +0000 Received: ("Tessian outbound 78191104f1b7:v118"); Tue, 10 May 2022 09:58:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8eb76658848af5b8 X-CR-MTA-TID: 64aa7808 Received: from 19840adb2810.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 46B69622-B5A9-4797-935E-8B3CE120020F.1; Tue, 10 May 2022 09:58:45 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 19840adb2810.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 May 2022 09:58:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KwmPMOeL+7JPHiz/IKERCzRUkPBkxnJ7Fh/acDrPSawlaJisVtz6aG57J3t9GUBUPNtNQYp/9lHzXbB/+UQh25GmwVuA8tt+0jWFK/mzOIdFASE1PqaKwpKQwYXrmEFRJlRwcE+3xZTlm3larbU4g7e7QnDTVTKaKIBAAjA79t8cm3b5BL9xRpFRbBv8O9Hkv8C7QsSesOnJc/RfGCRlkBrxSeBejf3TSx8xg8v8AizFspZHpbNpbXkEkw2zS+msubky3qxt5oxLznKVCphNLBxlmH+mxesAj2x9lVSk3prJR+4gm+9RN/b0VGevG9TsDEuTQ+BL2gc7DDqtG/oeWw== 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=qJC6qb560ILk5EtQmr15Z1Qu2o3kT8peovqn5Siu0KE=; b=oFvet96flZAUgoG02OIzBzwRk110bvhgf6uAH3wNfByn9ZxA/a8JXUoF8yw7zpeEFHtY3A3qNis2M6iBsUZPkAtXHQII+6DuWrE66ATXyP3WwjmLh/gzEQXVg4PegJ7iiVzW8Q+Ncr4W5Dh6b0Ns4s2MYpiuQ0SWyA8/w/qaqOGC5XzMxmeJoW4eNYPqyEHhdqBjbt8gKEwHJ07Wl8rl78niKCJxP6c0vuCKnsScNNrM1FjvxuTEC4OsskVyMg8V4NGbRGpbhtXDD/VLsPcKDEFB0YWaf1HUwWxGiCqMgE7gF+BipVZ1KsWssCcWQmBptV8c6QoQQgjd+xFJZYZ0iA== 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=qJC6qb560ILk5EtQmr15Z1Qu2o3kT8peovqn5Siu0KE=; b=pQXNXLpQ7gbQx5rp3FKNQTB64vSLUeuj7hHJAeRBhPZOt9K63AyRChbG7ixMVR9tJj+fMb2ZuV5qNII9aoqlg4PNol/VcBJDvrIWmVdkhI12+CrxEcPtn+tmg4JqB0hv7t1rTbGzksXlfSqTDvLOVISAY+1CcVYHoXursLOdQ0k= Received: from DB7PR02CA0023.eurprd02.prod.outlook.com (2603:10a6:10:52::36) by DBBPR08MB4492.eurprd08.prod.outlook.com (2603:10a6:10:c1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18; Tue, 10 May 2022 09:58:42 +0000 Received: from DBAEUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::8c) by DB7PR02CA0023.outlook.office365.com (2603:10a6:10:52::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Tue, 10 May 2022 09:58:42 +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 DBAEUR03FT039.mail.protection.outlook.com (100.127.142.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:42 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 10 May 2022 09:58:47 +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; Tue, 10 May 2022 09:58:46 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v5 2/4] arm64: vdso: enable orphan handling for VDSO Date: Tue, 10 May 2022 10:58:32 +0100 Message-ID: <20220510095834.32394-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510095834.32394-1-joey.gouly@arm.com> References: <20220510095834.32394-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: b51d59a5-4e39-4259-444b-08da326bb024 X-MS-TrafficTypeDiagnostic: DBBPR08MB4492:EE_|VE1EUR03FT011:EE_|PR3PR08MB5627: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: aaLLj8kxeZBz28AVmHVBCKucUdfjyZJTAliGJR6bc/6FqXFBMlHACW0BhSA1p1SEwnRyKDbBOStaB4tET+3MTcJRkHbcXl99eeX/2q57dWmLup8astjStiimBhA/zhz+Wc8pilLJQz4oouane6axhJHx2HYHv5pqxm9jyuloesmO3RKPKmVKbbXfWHhHjP49by5o+y0cUV93aUDMU3dBLR99CUKL+iftbMTSxx295oOyPNIYcpFPD4Kbe1Ldmib3QM+h6Ce20jIiGSDiSsg8XKDebSYHODcSoCzS8FHyqaiDT3fgIgMKmwomnzm2tDVXJwlNUiWvqYUdiq721W0MRtbCGRr5wcxVtTwfbgzEtfjJw2qGYKCo7nDHTZm73sbGLMsllnILlJvrEgAt7Oux//vzYV2Lx/G0z3AsGGveeppwopenUN5PkRkpbZso+vTD5ZH4xRs0K2rjeBt1VVqT6c/Ez1gSrPAp+rO7h89CZgPFguMxKhFHi34iomIB/Ok752ryPmpqyQ80qXb5oAvqryPnq5vvhb22OG11FUsgFU7sx2WSHNTJqk9LvWOcEFGmmh42Fq0DnHcV31CWRZ0CIAm0hSwZXMe3fKfImfu0swoghZVg6dF6fEQ95p8N4GblJbVu2Kl2lDF4je357A/SXd5Hxq3FFIc75WWuJGfGl2JvjssWcC/IsL8lazaK7iIZ+aAVd6EzDS2W6Yn+7PFa/Q== 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)(46966006)(40470700004)(54906003)(70586007)(6916009)(70206006)(2906002)(8936002)(2616005)(1076003)(86362001)(4326008)(316002)(8676002)(356005)(6666004)(26005)(81166007)(7696005)(508600001)(40460700003)(36860700001)(336012)(426003)(47076005)(36756003)(83380400001)(82310400005)(5660300002)(44832011)(186003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4492 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 16648cde-9d91-47b0-8155-08da326baa77 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ckips26br6HaY+XRgiDcf4nfdCKIy2cNRx5FS9388ErGzd4Yd/9SvVvtndWV1DwkofAGLsDdFzvZjFfKEGaLiOIzbb9xE5NlvJX8ZIAIZm/C7DdIK6kEiNAXscegNz000ahEHIwpEc088J/M9FxndgWcwlh5kzMBmmx8cDvJmVznriklLj0NdkZ9mAiBJULaM/IjqvfkWqprUIoO2mkTnVsu8ESh6zTyrPygZKQxzefNVCEgJqS33C+nL+Hgt3qw5LRa5NbJ0sD1vj62XYp9dwa0+tCYjJ0lqfwW39eSWCnqcVA2Cr6mVzgGIP5EKsyZ+NhAfhD5bW7tvZSmeEwNd6tgmrBYC0jeF45Y0ah0SQ2LarjUhMn76XkQb3BE8coPssp0ee2hk5dq7UU//dUdWV7T81IQoRfD2mBRX0p+evnDDb5sYgRK8nW+kOnff4UskC2V4EqZIzFZNISamyCuvktNKaGHKhabhAJpQLcx/ZYXjCfkF2XC8GPWFIxICYjwAhGnDtrUrIrbt3HEZ2+/Pone14SOt8g6V0oS8NXEFhbQlz2Zr6/0LQGfOm5Ru9VETAx50bQWZ/5vDLtgJHxSKs/nGaeF+vkakoBES9LU0/VhpF3m9ufZua4cQOWEKT0rdJu3umGcKLEmJ4I1KLkE8rs5ryrNfd3HZVk9nUHj8UGVICn8Gp0Q1QL9gdSgQ51P 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)(336012)(26005)(508600001)(316002)(426003)(40460700003)(36860700001)(47076005)(107886003)(186003)(6666004)(7696005)(86362001)(1076003)(2906002)(5660300002)(2616005)(36756003)(83380400001)(81166007)(44832011)(82310400005)(4326008)(70586007)(54906003)(70206006)(6916009)(8676002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2022 09:58:52.2996 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b51d59a5-4e39-4259-444b-08da326bb024 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: PR3PR08MB5627 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_025859_016618_ADE16E4C X-CRM114-Status: UNSURE ( 9.41 ) 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 Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- 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 Tue May 10 09:58:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12844761 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 DC72EC433F5 for ; Tue, 10 May 2022 10:03:10 +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=+MQATJIbpRi9ovyycW0j422y0R96X6nA7rmRXCGyV8E=; b=TAzVcbZ2J8vIZB kyUOAIqUcgp58xhTDrJFZbr8yJLq3NIcHZ2RTe+4IMXwGyuJ42v4qyYxZWxVqI1/JHYZqGHsQ27MO /gWhEV+Y+gtrp85AUh3Nzu0Uvfk9/lMnyJx0VQ9F3AD67Y0pHb6u0Vi0zoC2mg4VrZc7oHsAv4TDO LtS3wiCD1WPhT9kdioMLb174oeskUz+BW67iOaiRFLG6cS/B+Ye+GDvkWPAVbpPMMdf3ByFCd1lJm likppU4f3J0atBF5tpwAGJM5lsTZdJhUr1Lncj0Xpr4UBp/iTyumOlD8Z9ngjviLbveLVOAZ35teM XyztFQyjFPDe+xH2alrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMgM-0012zQ-MT; Tue, 10 May 2022 10:01:33 +0000 Received: from mail-am5eur03on0620.outbound.protection.outlook.com ([2a01:111:f400:fe08::620] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMe2-0011g7-Cx for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 09:59:08 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=hWarKKNUt8BlMBZJ6Nb/zGtuamaADXsPh/2xwG+awtreD0JljMl0/0XWWzPKHVyoCu6JxvlJ29IQsqCKIHFOPUY+Z06r10Ii4ANqdz/vAV/LQCxIIjPOl/5HfNvX3b+f9bmVNQB32dZwuRO7t6zZlL5T0TTve6OQfcI/yaS8ZX/RjGIf1qIbnXwJiuVBxbIfWA2FWavaVoMvOR3vjnhj7BsxaZ+8QCPCvKHKK3dhu3M5Vb0SM8/Zc8my7ZW9j9XarI5dJPy7A93oNLZIb0o+ii4s8Oy8C+87yPgM2+OAsFD5+tm5ZIfT/ZivaYaweRkcUv5aEUm55G9UCSyz/FmXVQ== ARC-Message-Signature: i=2; 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=xnjFEjgWnk+drt53077YxeBc29xdQZAQdx28+Yj8Idk=; b=Q5yG9ss7CBRePmsd7Sib2zlKj3ywQPyet7xP/s6OF8MqOqiz5ineeLWA/czifXZ04GHzGGfD0yKbfYQhd6xpg3UC0WVnV5gEzp7ZBon4Q7igSqJMteI6q77RZoD7TCR63s1I00m7vuzdfS8lAZX664M1cUrejYqA/Tr3uLOot+KlHrezwFXR8yuU8iVYz6/91gNitMGsaWma2/pOt5LTg5FyZ7nco7qH4UK56ZQzXEvvd6fuEQTj4xT97OUMUQe4HC9MDHOzoJJAJSyZtBIDLbZfsK9ztahtLKj4YdzknwYlBnIS7VhOJ9vhhriyVboCoTg1Y9lvcqQ7yWDVitFuoA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) 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=xnjFEjgWnk+drt53077YxeBc29xdQZAQdx28+Yj8Idk=; b=eb/J0nKrnx7TIK9F007vn4Pk4h6vX//XmDk0+sANM2m7Da731OKcUell+jHwP3r0xyUFRRz6AIpL/7bEYFrFQ/+ogWFrlkPvpGTdUTxmhkeIBC1MoUB8ZmeQT6HVRf3rLKR+2QhXItwOymj/xTxiCIjakizxfnGnE4tWdWr9xQw= Received: from AM7PR04CA0014.eurprd04.prod.outlook.com (2603:10a6:20b:110::24) by AM6PR08MB4850.eurprd08.prod.outlook.com (2603:10a6:20b:d2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22; Tue, 10 May 2022 09:58:52 +0000 Received: from VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:110:cafe::4a) by AM7PR04CA0014.outlook.office365.com (2603:10a6:20b:110::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Tue, 10 May 2022 09:58:51 +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 VE1EUR03FT048.mail.protection.outlook.com (10.152.19.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:51 +0000 Received: ("Tessian outbound ab7864ef57f2:v118"); Tue, 10 May 2022 09:58:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e707fba3acf2155f X-CR-MTA-TID: 64aa7808 Received: from 59995c4fa76a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5A0EA041-4C94-42F9-8A29-B282EFDA670B.1; Tue, 10 May 2022 09:58:44 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 59995c4fa76a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 May 2022 09:58:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZAKMHBZ0Ir6AwggCg4kL8c6Chh6cRQVJySTnFPNqCQ/EuV+hsc11tlRD/HWMb4iAAJfZ7opjS6ujzQInEqdpmIVCbUXFoTrNCZhMlyyxspAUVlt+/vl8MaiNWIM/F7CFMt+/exZhWJ1ltKhZMV9wlJSb2zQoE2IOVkj7KN6myjoCIMAl1bmujBa4Q2HfB+3wR4PhWfhiQSZZqXpqyxNpR1MWwiHHeQEOD+4XOUOwyGy+QIbL33ZfMJwYkQ0fQlh06YfZWQ2poAWcL5R0PSbfrGIpcke+gMox6fvOpPJ5LqiIwW4arOwPYg1xbu8pqoAE+Pod/8etyJfnTIGLo3DNRw== 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=xnjFEjgWnk+drt53077YxeBc29xdQZAQdx28+Yj8Idk=; b=YLx8BVu1HJr6gPLZ0gyafSY87j08oyvElMGwrkdu6Yafd9vuCDhTVQLWQ6eJ7+9owuHecX/BS+D8E7w/9IiXWK4OxvD9BsN68rso4j6i86J0uwCDVImcMShUmGAAnhb8nhcI+dIhGIWuA/S/4I6NEp83m8BZ5RjOZQhtyxrwubvpQ3pT946lUZFXyYqdU69yJNUEh+1rC/6U+7AsB/bVNpXoTumzT99L/CpwoKxS5VJu9I8YJUleMhpjf7XV8hSLYCKG4xvt5UjU7FRyhgpoz8coY34NaGPpTIs7WKTg/L4ITjVWZXM1U95PCSlzz1vSrMn6ScLHNhNTiG+pLgDaAA== 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=xnjFEjgWnk+drt53077YxeBc29xdQZAQdx28+Yj8Idk=; b=eb/J0nKrnx7TIK9F007vn4Pk4h6vX//XmDk0+sANM2m7Da731OKcUell+jHwP3r0xyUFRRz6AIpL/7bEYFrFQ/+ogWFrlkPvpGTdUTxmhkeIBC1MoUB8ZmeQT6HVRf3rLKR+2QhXItwOymj/xTxiCIjakizxfnGnE4tWdWr9xQw= Received: from AS8P189CA0025.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:31f::26) by DU2PR08MB7373.eurprd08.prod.outlook.com (2603:10a6:10:2f1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Tue, 10 May 2022 09:58:42 +0000 Received: from AM5EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:31f:cafe::e) by AS8P189CA0025.outlook.office365.com (2603:10a6:20b:31f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21 via Frontend Transport; Tue, 10 May 2022 09:58:42 +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 AM5EUR03FT040.mail.protection.outlook.com (10.152.17.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:42 +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; Tue, 10 May 2022 09:58:47 +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; Tue, 10 May 2022 09:58:41 +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; Tue, 10 May 2022 09:58:47 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v5 3/4] arm64: vdso32: put ELF related sections in the linker script Date: Tue, 10 May 2022 10:58:33 +0100 Message-ID: <20220510095834.32394-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510095834.32394-1-joey.gouly@arm.com> References: <20220510095834.32394-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: eb7624ad-f1ad-497e-4d36-08da326bafbb X-MS-TrafficTypeDiagnostic: DU2PR08MB7373:EE_|VE1EUR03FT048:EE_|AM6PR08MB4850: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: f2izV9ki0D6xj4TzIP/usNXDJHdxM+aqUkM1GAuRv+hp6XDxWlvilOgyDD5cjSXzvIwLR2brUJVHn214De09L8sizHDkFBb9lbqIWU4h+TYj0X/XELqa1Bo82A5F5mhbiW4LIoNkIuLfjPb740yo3Xnp+fMQ5CK7PZZTq/xlRu+8eAjfQOZmUvylaF2+sSCxvcSl1/rGyEBhjCKuvnEI9LLioitHCEc8pB3Mpa4LqjDAOQPQb3vQPJJcadyB4GDi2c79Zl9fKiegduwxuPtpMukYA2dpiXR4wbkumdLtSMf8TxG+H3S3RcgFkvmTFn6rvZqfN1wfNgN/MUAh8hD2bQzaI01BNHef+1dfY0xqrihbJBnKPVF0q0OqjFOMV23mtXXLk8ZCNn4BY5FBwQnTRo4GGLPB3jDlNBO/LwJQA+ndqIYsR7W+3zKCTV5sfwBPD6ud44bMghqb+Wf6Vtp2j12MzHOAwqNHiRZYV8GICKPPNUbdlLc+JqBqwbndEU8w6nHhYsmLHwsayWqv7hrV2XBaD1itT+fpl80Zs2LR32Skpag+5PMYzaVxGGPG6Le8bXRjcuhKC2AroXgZhTX9NSc9nyNZYDEZ1TPbo5fdFmvGI63pS9vK3BkWlR3cOcx+ea+CDfqk89r5EHdh3CVzpwxe/vfj3XDBEHQQXwN4NYvzPf7ZSQ6F8p+mV+RdZQW605LqWd9No2+xJ6YHt+nqrw== 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)(508600001)(356005)(86362001)(8936002)(316002)(5660300002)(70586007)(6916009)(54906003)(70206006)(8676002)(81166007)(4326008)(83380400001)(36860700001)(7696005)(6666004)(186003)(36756003)(47076005)(40460700003)(82310400005)(426003)(336012)(2906002)(26005)(1076003)(44832011)(2616005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7373 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f41425bf-57ac-44bc-fb18-08da326baa6e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bY/oCEr9ybmxowHIdSPGt8LHtpak4wL52/I3cq2qvGGXq9quUnUQaA4zUJuGTpXkqU7hv6NDVqzGsZBuyH7/V3DNc/DEUTEFT+LytmWnUlhf3xzZs/xBnmq/Tb6leJaJDTajDJcHTC6FnIsJ5xVdPLhGVVkbY/lkTI2ZuNHdppGMSwbQqx33WK5RYIEnEHO7K5Azc3H5kGyycOhXVFswsCYD0j9rqjPf7SlWTOLyE6hzrj3FaRkGKq2mEsJgKyQCi4UKKWBJ6DelVatmf/OPSco7CQ0Iwvl5TmXb7gVim4we0/ZAi8BSFnu2VHDVqNd/30pTYVRolFngG0TulHvsp4Pp36dK7Xx1aiZuv5HKaMzAdSE3pm7QIa3uApVymhpIOM7xSRruYsYPL5yPyjliJzpJRIv5XDu4FxYFfETZGUaP5+1ARTo072nU+vu6mG087VSqjHiNYZFOIosnNw6k4Rqx9T5BcLc9oWBFsnAThRwgeXhoCPkJnhHELZE1gZgZTSpr6AUrjIPs0E1dGbnZnfM1C0BwuTDMRaTU5YeicgJswnmNnXp5dE0N26nm+d9SHbpoaWXXtmDxFXd+CfrjU5XVez9c+on7dOlH3yXv+6YnQtHknrm1bgWiSWnAsruHl/uwu9yG+FuD8uGT8+vG0NmtOc718j10zpNd+bbwX3SpPeFJ/mgz+7gb0ejH/sEV 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)(336012)(26005)(508600001)(316002)(426003)(40460700003)(36860700001)(47076005)(107886003)(186003)(6666004)(7696005)(86362001)(1076003)(2906002)(5660300002)(2616005)(36756003)(83380400001)(81166007)(44832011)(82310400005)(4326008)(70586007)(54906003)(70206006)(6916009)(8676002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2022 09:58:51.6430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb7624ad-f1ad-497e-4d36-08da326bafbb 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: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4850 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_025906_486772_2E2128D9 X-CRM114-Status: GOOD ( 10.75 ) 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 Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- arch/arm64/kernel/vdso32/vdso.lds.S | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso32/vdso.lds.S b/arch/arm64/kernel/vdso32/vdso.lds.S index 3348ce5ea306..120cf422036f 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) @@ -37,10 +38,29 @@ SECTIONS .rodata : { *(.rodata*) } :text - .text : { *(.text*) } :text =0xe7f001f2 + .text : { + *(.text*) + *(.glue_7) + *(.glue_7t) + *(.vfp11_veneer) + *(.v4_bx) + } :text =0xe7f001f2 + + .rel.dyn : { *(.rel.text) } .got : { *(.got) } + .rel.got : { *(.rel.got) } + .got.plt : { *(.got.plt) } .rel.plt : { *(.rel.plt) } + .plt : { + *(.plt) + *(.rel.iplt) + *(.iplt) + *(.igot.plt) + } + + ELF_DETAILS + .ARM.attributes 0 : { *(.ARM.attributes) } /DISCARD/ : { *(.note.GNU-stack) From patchwork Tue May 10 09:58:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12844760 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 5B5C7C433F5 for ; Tue, 10 May 2022 10:02: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=fyeURMLoRZJak1AtJehPcixkLXNcK5NnSorG85SqxTo=; b=iK93TU47iuOoNt FuZHs0BHm2cMNVGDbbPG8hf3vN9W4PFVs+Y9ypl6jiKS3e6eScCMYxxFnaPKOpUwPS4XY14CWJxOt JYV2Ig+HpTJ050pk7UJtjMFsm1wdQZwojg465NFESzGTMYxC0lxYiqupa7SkA0nHDdJO2xuzPslhB 2TOCyuXJZN/QjbJeirrFnmn1bnzg5AGSEbZapgLVGSNmGYBpmL+Xjc+6n7sun/9/rH5C1cJjgc9g1 TwnmyoyZfeJt+KHH+30W1EG32nEzg8Nq9F/MHbzSuWZKz+X3oIdDkpdFJFY3tRKoMFoyx8xKwwqYE WYEUF5hCVA30dm9xwILA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMfh-0012h8-EJ; Tue, 10 May 2022 10:00:49 +0000 Received: from mail-db8eur05on2061a.outbound.protection.outlook.com ([2a01:111:f400:7e1a::61a] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMdv-0011af-Ci for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 09:59:01 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=d/pgBcv+s6zteYe+vQ8jdPkx6OpVnO1kqNg4oF/ntdf4GjOMy5coGIk38ZUMqMyrZCGb2X4uiZ+iQ79uIvpxTj1TwOji5zF4AbD1J9TaSFjP2NuhncDtNwlEqH/Ut4Numfiqh0yX/l8MIUiufk6e03XHWTEKVo/+FlUilTY9PHkf9wFPnJS0l4hBOUkyxlm9lhVdqYERgu1USqIRCYnURcqlfnS9Z9buNhb+ouBCqDO7NNk7oGSRI8cqdTgA2XreT1rsEUIUH1Wj37Bjlwpo+8zYkLSfoETzW453nSo75UErCjx5z7/udv2KdCHst4vdR8TbWV4jSuukEHRn0/oodQ== ARC-Message-Signature: i=2; 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=7mFIgUqic6nSvmWe2Ta0eaTRxoChAfFrjuQ9W5PPg6I=; b=brHC39PLpM3XUU30Dv0mzzj+Fo6vdAF/AAkvjtj9ZY7rQmdyZspdzN6y/kLmmt2Y6r8ouh3eN4RDO+9xtz4IauMbYbt8IFYc/i+i52JaLhz337PjLZ08NfiNmYOPfg54Hvrb6twwKUIcCCImFmcA8Gozz3WRtOqu76Wc1YmQUDIqeqP5DQbvHwk/lryE4f3asiX/mLXWaKQRUT64633tHVawqOrMoWwyYcVuUAva/E+MeQniWK1Jku5DRxFlYBZWxIBLhmlg8MknaZBeyVdOkAMdEvRVOvfP/BrdNofdxKZgTjnnBDIPgsJremmWTuXoispng5ojWDY1h7bc53F+Ig== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) 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=7mFIgUqic6nSvmWe2Ta0eaTRxoChAfFrjuQ9W5PPg6I=; b=rx6NMTllyR9tBgBZiH/h+rq2zG73g+MIGt5ID332XeKgzJtvY6xCgDYAxP3k0q1JeW1Yw1N7FPOLb3ctiQiR7Zg9mWqXh7hl+3Z9OfufghP2KLytk/gCQWG35Dqq404yK+Z+Vjpzyj6DHva2fYXbwl7xEqjmeZ66sLu/JDDu/9w= Received: from AS9PR06CA0768.eurprd06.prod.outlook.com (2603:10a6:20b:484::23) by PAXPR08MB7137.eurprd08.prod.outlook.com (2603:10a6:102:205::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Tue, 10 May 2022 09:58:54 +0000 Received: from AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:484:cafe::65) by AS9PR06CA0768.outlook.office365.com (2603:10a6:20b:484::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18 via Frontend Transport; Tue, 10 May 2022 09:58:54 +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 AM5EUR03FT022.mail.protection.outlook.com (10.152.16.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:54 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Tue, 10 May 2022 09:58:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 92e66a59db5116b8 X-CR-MTA-TID: 64aa7808 Received: from d87e3c0fc1b8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1C49CCF5-FEF3-4046-96C0-3273D62BEC2A.1; Tue, 10 May 2022 09:58:48 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d87e3c0fc1b8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 May 2022 09:58:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zfa6u3TKkGb4Sg4k99voWUuCV3MF6zx1zYWMHXP0/1gjD4hNuavp7HaSeK9z5jIFToRr/UDR2bJpAfkfdr1uUk+F9jTNDEbQQ7Jjo1T0/4IUZ1ooTw/wtA3U6H72AQtUkLX7rxsQSflSbcDtzrRDnDSNCDp/EcJqpuyHsGlY8ul9UCEh8ffAD0Y1wgQLZFvErV1qeTxmD7vli76+nQM/W2V1qPbpVw4k9cEMyVJYr4ZQXJCXE4vhTGg13nT3a1+nuuosKjNfor3ATuZz30+kMZE3pM1zZe9/M3jDVAjNLw8qHIdZNDaLjUrVDsZHqf9PFyuVIAQOJRBjK+2/iXZMqg== 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=7mFIgUqic6nSvmWe2Ta0eaTRxoChAfFrjuQ9W5PPg6I=; b=RSJojT9VtO8yIYsiBp5ZOMCA7lydGXvGbAgkfrOyUW37hSsf1xeG1vd0jKRloCXLfvCrvidR2uHaVhrD/Bwzzxg97g7wphwDwraqV/tg0Dfvxuk+gHtTK7/6B17y8QCAWDDwjyazDtpPHEYNORO+cUmBuqgoYCSSSN11L5e7S7E6aNz8BqFD4aKWXmEkAdD7vZsZLC1GNZVhzqo2wo35keurh/CV7IBoLwEIVFQmnHdn7xooLP8WuCw8hS2mFCt9dUcRmagi1rCgJ7Y3bahtfek5HcbLqOq2jLTzt/8bxvLmsgaCoj5L4Pu4vlD6wyKYtwc/3JHpaZmFaJlkwZ09lg== 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=7mFIgUqic6nSvmWe2Ta0eaTRxoChAfFrjuQ9W5PPg6I=; b=rx6NMTllyR9tBgBZiH/h+rq2zG73g+MIGt5ID332XeKgzJtvY6xCgDYAxP3k0q1JeW1Yw1N7FPOLb3ctiQiR7Zg9mWqXh7hl+3Z9OfufghP2KLytk/gCQWG35Dqq404yK+Z+Vjpzyj6DHva2fYXbwl7xEqjmeZ66sLu/JDDu/9w= Received: from DB8PR09CA0008.eurprd09.prod.outlook.com (2603:10a6:10:a0::21) by AS4PR08MB7925.eurprd08.prod.outlook.com (2603:10a6:20b:574::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22; Tue, 10 May 2022 09:58:47 +0000 Received: from DBAEUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:a0:cafe::f8) by DB8PR09CA0008.outlook.office365.com (2603:10a6:10:a0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22 via Frontend Transport; Tue, 10 May 2022 09:58:46 +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 DBAEUR03FT022.mail.protection.outlook.com (100.127.142.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:46 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 10 May 2022 09:58:47 +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; Tue, 10 May 2022 09:58:47 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v5 4/4] arm64: vdso32: enable orphan handling for VDSO Date: Tue, 10 May 2022 10:58:34 +0100 Message-ID: <20220510095834.32394-5-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220510095834.32394-1-joey.gouly@arm.com> References: <20220510095834.32394-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 10cf0044-b766-4737-8487-08da326bb151 X-MS-TrafficTypeDiagnostic: AS4PR08MB7925:EE_|AM5EUR03FT022:EE_|PAXPR08MB7137: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: M9cbVRWohsFXGqUcnKkmvlNIb8BI7Oyn4fJ63RQDJDTBQyZPKi75Vl57aF0L7GFUzXS7YQpaWsGFFbvsTtqT/GmwMV2gNJEbNT9Gzq7bYk1wXI+xMPaCGrkfjOjP47IIo7mHfDA45ow7c5BYIXXxDAW4sofuqpaMVEHEoEsz6hQ+rc12efP06nHUARwm4FSWxj94F6N7AR5BE1P5stwVqdlsJ5BgZa13F5VmuWugbz3Idl08JjLaun5ED0suBTV1cKyXsegWDlL9WN+rw9S3w0BVJi4pf2ldggA0C7W/7vL87NI4D3R1TcfdZ1mKNExGsNFflZsvTbrSxK4Jw46h0JaY5X62zNbR1MFIhwTJ5XwvIyhWWJeqoXB3obM9b8Xm3LCVZ0q1s6D+LgxlDIeA3GvD62YxxLrWLh02/mHGCpXyiguho/bPXktEse6WNc7070mmHrDmVlRuSJLW/5T6ShqxJ3F7/eq6BEX6MoFIlLejSth53sDX52wA4Z/ozKHUlNc8WqzYv//ByyneD89XHStMXsDCFNus4V6gBPKB/LTPeHymvv7dc/waKO+U5OJwF8oFU3oXTKua08FpYoBy7MhdCn8PfnpvJduXL4O7/GTelLn74vxuru+w+xgaE39kl8TyTdvl4BmYjPju7NKH35IqIkG7tqhdiFmKzjJAFpORrpIZJalJSDHhAk+zOyRG7NZRGWfGlX1pgzw2p7r2uQ== 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)(54906003)(6916009)(40460700003)(2616005)(186003)(86362001)(1076003)(356005)(508600001)(26005)(336012)(7696005)(426003)(81166007)(47076005)(316002)(6666004)(8936002)(2906002)(36860700001)(36756003)(82310400005)(70206006)(8676002)(70586007)(4326008)(44832011)(5660300002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7925 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 017ca4b8-b72a-4df3-702c-08da326bace1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dOgYsi389GQC/0SD47bRNptIkO4cg9TNxmox09/fcOVvvoabmgMaa7PpaIX8BCdgwQSWbujGBuboTmoS3EfT521P8ZTjosxlH3vMp93MLMcprh++EBZXo5kxqbIbtpRTvFKyp0xKfT1RwCD8GlkLOlC4BY2gYX3aqQXLmjn0PI+6P8HLVNsBYPWTQVstz4Fvyqx+dOJAOr1w2KN+BHEYef+GkSJDS0YTKkiIEVIYPWJhYoUBI+CHL7kN2caiJkXyTtt9dHoJLI/0uqMl9fnrR2Ok0pc8FCLX2HIyWBsQOoDLuvTCCzjdYIeS+TacUUlOkdLQHvR36+6Kpba9Jwyb72KxvRzzix/NMFc1RWnkqphICyls/JMTIzGVvILTwE1qsSStAo1Rpx1BErC6TJFCw+C6+t9bXDeDWIhTDAjC0PLxvnHH415EBIvsaraDXdB4hdT8H4jvj2mf4EmzXeSEOzIyMOetUQGeIRAgtLGrPFWz7gZVs72sCQNS9+dbLiz7A2t0bYMgNsRLxm30DJUdK+7dHRPLwfyHB8zxRIGDnB3AnY+vG8YblXk4crZ34Gg411U7tO5tlypHHYD4scYrEqQe4nc78JVHEfkHZBXpdMoprSwxngcPFbpm22zyQJLq40OwvwwPGs4uT5ET4kCv1EB6kuG968RwhmEWe3+SBOdGwdRIukan4XuR54jKeIVr 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)(7696005)(8676002)(6666004)(4326008)(82310400005)(2906002)(36756003)(40460700003)(86362001)(5660300002)(81166007)(26005)(44832011)(2616005)(70206006)(70586007)(8936002)(107886003)(508600001)(1076003)(336012)(426003)(54906003)(186003)(316002)(6916009)(36860700001)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2022 09:58:54.3561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10cf0044-b766-4737-8487-08da326bb151 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: AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7137 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_025859_488945_6715A93B X-CRM114-Status: UNSURE ( 9.05 ) 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 Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- 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