From patchwork Thu Apr 14 10:46:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813334 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 E24FCC433F5 for ; Thu, 14 Apr 2022 10:48:07 +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=wKy8Pb1scYncUot+qmR5OaQbXfU3A4/K7+tq806KbRI=; b=EU7a0WKZnF0q7R hRJZtOE4Q5HoO8o/tONbcmPdThYQ3qbGBNXOMeuhQgAZz8n8TQEGLn42gopRBRWlzHYcSNe/MduNQ n7cgX/YZJleJI8aYTb84jrNtaPcB6nMwQWo4lVZuxMiouJDGaLkadgQgKV+lQtj1dSIALWYXjb9Iy mUDQmT3+BaXjrUw5SDvhbGZfJujRYSOSWNxaDlI1vJhThzqkIsCSsh7Ly+TgrG4Lqt/ui+LWm85Gm yE6ci3lv/unCL/Be79ZnPw8dmScEY/O2iGvFhC8hfNhpUpF3IhTmIbriPfTKIiMA5KwU7Vl8Of6g3 4nXLg7UP2tEqgFPJB1wQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzu-005BQh-2f; Thu, 14 Apr 2022 10:46:46 +0000 Received: from mail-ve1eur03on0610.outbound.protection.outlook.com ([2a01:111:f400:fe09::610] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzp-005BOZ-T3 for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:43 +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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=SPZUPhNF78kRsipG1/lrtw9BfGqrXs4egL/sQStZ8oX6HZ+nKGP+YhXTTgIitdePFpL0JJkneLkbRJfZr9Dl07Oxny0g99HR76B8ekxXTN+FqOiYSIijbcgW+bLSJmw/6y7ovNgFF2C8x16qVhAVSxLqR+DjWV9CLtO4Lv36+Ds= Received: from AS8PR04CA0210.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::35) by HE1PR0802MB2154.eurprd08.prod.outlook.com (2603:10a6:3:c1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:35 +0000 Received: from AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f3:cafe::33) by AS8PR04CA0210.outlook.office365.com (2603:10a6:20b:2f3::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:35 +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 AM5EUR03FT037.mail.protection.outlook.com (10.152.17.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:34 +0000 Received: ("Tessian outbound facaf1373bbd:v118"); Thu, 14 Apr 2022 10:46:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2b77d16b9a22ea98 X-CR-MTA-TID: 64aa7808 Received: from c5175a33042b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 20CBB733-7B5C-40F6-8E84-856971260969.1; Thu, 14 Apr 2022 10:46:28 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c5175a33042b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kfzOm9s4dtz2Pn8FMnLI3vOEt2K6zuD1h6Wq02SiZGYwJgQopfgEvVqav1LLixs6VFGe/4vDn3Gc9+fxgPQg9LB0VbfHos2kRnqpAQa8dVN/B7gQcI87zg9zEohcBeJS/kuwI9SmvXIeC9QGWiaYirphrFoFZz328I6C8XulATbyLv6/84WQBL4+tFR+QVqQCKMT8p56LxrNRxAbEJdjpanmo+BCeTtyxCf1SoF9B05Tt0JJM9U2mo7K6fGfwSJWsYCjh1/uWyT+nt4D5+NSf+lXlEXzUfMdoWoNjEvVugIzEwv1Q2PAoLuYUBnFtUmgRlSIgGbw4lfiJlhZDkmKAQ== 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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=Qy3ykZ+5QMcrIRm/sQyYkiZ/kw4EA/5q9vfysrL+tWbnjOszNe24mQhWjUI3XODMqeKEC9+hRvCXP+104h5AUuuozSGw1Btws8r9+IuceeM6qIfWDyZgGI4sIg3aNkcSjQ8J+D1XkwC65YdTFw+clNPcGzstYMCe1dj29CpK4+we7T6xPkpp47egfly85rrY94c5KeQ0tocZuEvaC7PMZkNxpm8O7u+y0Wp3keUFym9kCDDuQLzURtFMuq30qFwrnUUdLy5k6II/KTEC2I8+tp/vY5gxmayC2bvLUScXcd1GJAcO3SE+g/NwLoj07CWWlnaEqOZKMtHpubfs1VFJlg== 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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=SPZUPhNF78kRsipG1/lrtw9BfGqrXs4egL/sQStZ8oX6HZ+nKGP+YhXTTgIitdePFpL0JJkneLkbRJfZr9Dl07Oxny0g99HR76B8ekxXTN+FqOiYSIijbcgW+bLSJmw/6y7ovNgFF2C8x16qVhAVSxLqR+DjWV9CLtO4Lv36+Ds= Received: from FR2P281CA0001.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::11) by AS8PR08MB6962.eurprd08.prod.outlook.com (2603:10a6:20b:347::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:26 +0000 Received: from VE1EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:a:cafe::d2) by FR2P281CA0001.outlook.office365.com (2603:10a6:d10:a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.8 via Frontend Transport; Thu, 14 Apr 2022 10:46:26 +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 VE1EUR03FT003.mail.protection.outlook.com (10.152.18.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:26 +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; Thu, 14 Apr 2022 10:46:29 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 14 Apr 2022 10:46:29 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 1/4] arm64: vdso: put ELF related sections in the linker script Date: Thu, 14 Apr 2022 11:46:08 +0100 Message-ID: <20220414104611.17748-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220414104611.17748-1-joey.gouly@arm.com> References: <20220414104611.17748-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: d1259b5a-6a8a-40d0-057d-08da1e040b9c X-MS-TrafficTypeDiagnostic: AS8PR08MB6962:EE_|AM5EUR03FT037:EE_|HE1PR0802MB2154: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: XNzlrsLLg2LIPbeimKLVlT8HfXvVE8FavbFnNj4QtkD2Cx78//ZfmR359RIJUn7DYUtK2q/X61X0/MefTV6S0fJ74ShujEX4ronooXjFuupOvmufwng57sN5eWPiwlo/sxZ/tKfMtw5QuEK3CawGPOGlxH5K5kdb4GvQo9ww4pYXZ/EBi3wKaz1QUN1Z3YNIN8uqhgKzHLEvZ0he3KYGSdoFlZSO1rDSzT+BsaXVC8hSLmbnrFhumboB1sgvnjDYlOMpIWW1WuNXiXPznxG4NaR+46CngDkCzl459rg5aj2A/H3S+gAjcjeA7A3UQGK2aHmMxrlzVqnkycoXKuhCOTFTtdvavy+QmKgUdlJ0VP1N7FW9Ak9S1l3TltchNclBnrpH8+viGtB87VPxrI2q5nG48ucOY8O/oVCREVx1Gi1dOuNhspkejC7lUwzGcNekV+PqnAnxfagz0wl87fngJ8P3NB2P4PxMbjxijaVuShIRXUGcbydXi69VxOUlXJS+Ib2ah5MRPk8XQoLiEH/aRq4pT6sKwDkaFDVbOZ34gs3OIeLAQ6XkpDukzI1qs7gG/feO3SdJ0hvCATyVOqMkbbZMQozjT4R+s6xcpgSuz5UKoIqEjBvFHHX87Y+gB12e1TyImR4ehAHETiaU0Fs/efFPpZkBqtAgH9/5PCX2ErFDKKQ/BB8mHC68+XOUr5ZKac6E8QhKEuZ1iK0ZMc60sg== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(70586007)(70206006)(1076003)(8936002)(7696005)(4326008)(8676002)(508600001)(40460700003)(54906003)(81166007)(356005)(36756003)(26005)(186003)(86362001)(336012)(6916009)(6666004)(316002)(82310400005)(2616005)(44832011)(5660300002)(36860700001)(47076005)(426003)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6962 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 65836e5f-fc5a-48be-6c10-08da1e04068f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vAxypwBTQIG981fhDZT0FzdMFK9dZRds9i1w//4BgRYqYtI2peGsZbSZTkHsqU2K/3lJF0xOGanI8Fn5bV8BokV38nnFqlz8XC/HT7G+enD/kOEEN1W7kiKODdv9LXAn2Vg/BhDiGSldmRAYpJbhiEl6Of/uLpnImw9tfw7uaCmgvBDDVUCDgqKf+ffS5oKpc4K5q3OZXVY2GHATHDA2EYYvK7npjEmNO/r+rQJKxqIxOfQ3oVD9S9PCnnWYKxCERMhSEnp0pLKzLD6IXkNpqikvx50fuiAEdrtsdxURQgs68i5jMIb/sYJzrl/et5GFmUOanF44iMrbJEkA2CM1RM62rIlEsEs22wwQYMbd+UEReMDCJuYUV54Dyl3c0jxRRNm1DFz+meNIXXB1ZVowPp9sQgZt9b78jW+2GFi3iQLsFx0N5fbArqvQVuIW5D4F0NaEZNnJIpRpjXCwWxmfdqQcldFQ0v+bUxr+OMfNP8wqtgr6HQgVy1ywCBEaMvhGIanVNmvNanby5y4uCdU30fST2x1t2s6xeqr401kG42sXT0alHnD8kRsaPhSAQxiRp2upnO8Mdz8DhrzihRgOVEIOZGL50Asiqyb8NXS6eADcGZzFP/pg1i6ialFN/AQtu6z0JogsqiPfIwFB0fnQCCxQtabKdymyCXMy0FQWqnp7dhqHA4SwVUvFfqds25/O X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(2616005)(7696005)(70206006)(186003)(6916009)(26005)(70586007)(36756003)(44832011)(8676002)(86362001)(1076003)(47076005)(82310400005)(4326008)(426003)(336012)(508600001)(5660300002)(36860700001)(107886003)(6666004)(81166007)(54906003)(8936002)(40460700003)(2906002)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:34.9198 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1259b5a-6a8a-40d0-057d-08da1e040b9c 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: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2154 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034641_982195_8E7C1E40 X-CRM114-Status: UNSURE ( 9.13 ) 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 | 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 Thu Apr 14 10:46:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813338 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 3FEADC433EF for ; Thu, 14 Apr 2022 10:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=iKaSyrKYdyRmbH 3Z7r/QjOp/CuGhqOZpLHAofaCSAwIzwqewr/kqSESdXepOXzDWp4dJWxNd9jFl8QKi2uhZ37HnLJA kkx5TFZls15CH8nxjmrPJPq/byaP45u80YS/NFg/X1VJhVuxTasZM+RYh9sjIO9CfJr0XKFFA3Dms bJn8jzZtEmbnIJtWBfM7DsHm5OfOFZ1Nb5tW3VxScFNISU41rc9aLf6KFt7E6AAlBwpbFquuupli3 7V8peTgIyWVml2hxBDe3EvrYt2RDOuM3YMKtij2HEGrUtkdNYbzrkEF0MLmYTiXCIfLT9BX2ya33s Pyg2W8eIAhd6e6+Ua8+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nex0t-005Bhs-B2; Thu, 14 Apr 2022 10:47:49 +0000 Received: from mail-db3eur04on062e.outbound.protection.outlook.com ([2a01:111:f400:fe0c::62e] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzt-005BPK-4M for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qJC6qb560ILk5EtQmr15Z1Qu2o3kT8peovqn5Siu0KE=; b=Qr0/Jf+h0WWYLpOGDLryYahSRv1Uz/jO7IPOYpBGHfRZMRc3BdS6zXF4X4+wI8F28zWXVuS3nHdV3ckTZwy3wvUEex+LNWGv+WqzFYmIO7H6KhNNuyYTMSSQCad5IbIfsJBIsqyZqmoIC7+Da+fDGtcxiTFWDRykYSEY7zTFU1c= Received: from DB7PR05CA0057.eurprd05.prod.outlook.com (2603:10a6:10:2e::34) by PAXPR08MB6893.eurprd08.prod.outlook.com (2603:10a6:102:13f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:40 +0000 Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::c8) by DB7PR05CA0057.outlook.office365.com (2603:10a6:10:2e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.18 via Frontend Transport; Thu, 14 Apr 2022 10:46:40 +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 DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:40 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Thu, 14 Apr 2022 10:46:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7c0f4c1cec93a043 X-CR-MTA-TID: 64aa7808 Received: from 26d982f2f0f7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 32CCD2DB-7628-4B12-930F-CE19301E4228.1; Thu, 14 Apr 2022 10:46:32 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 26d982f2f0f7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G6asJkS4toZy5pX1/BvQy2foG+Pg4PXPaXG+bEWckHrOWEqRYlYmZXIKmKhLDD7ExetQ+CyKsbnhZiRQcznSBTMEuv+LBfMIK5PtO/2u2+MJHrBhLg2Np2MbSAgmL7NcH+cVA0itqJl/fPY3m9HPSclOEmNFOvA5yY50S8GZP6jbinkX/u2EkAh9x+KUHAd8uMw7q+cFj5TMw5ELh9/YTxQ4AwZHB7LDZq/jBF2YIzTmm7WNrPDhH5fGhPbD7WdveUlxXIdKPObQF+kTiNixlt42waePrZ5MpU501BzR7FeMcJ8LImCJPmuRhey2BZpuLKFLZlqOfITNYEEZomI9SQ== 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=Z+bgwTZOS8moyhgFCv60DGAN8OpgbLYRGPAWPLuF0vIEVN7mArxASuAXDxhtilmrOTHh+K36Z8l+zu2OY5O7mbXBlYFzil/FjTLjNQ9HcejcFgXU/+mzWmcIlUgqdIoI4E2cS59TYtBR0eubMvwA2nEUaniASVVOjTNE7Yx+s1pF+k9/Fg8LbHsv1ALreV9Oqo5ZrD/CdWJLXccYXR6a+QZOQ5yg3RlAEoKtaYBBAUnl9ZCaNfEqfRkrOoTBFUSEMf0HtUDiI7X7/y/QzekqIhjjMX75F/ZeJ5t/nRWtX3MKQASlu3XIkyHIhVuSEQ8Nd4MPZf6dmwy0cLQl+DdIeQ== 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=Qr0/Jf+h0WWYLpOGDLryYahSRv1Uz/jO7IPOYpBGHfRZMRc3BdS6zXF4X4+wI8F28zWXVuS3nHdV3ckTZwy3wvUEex+LNWGv+WqzFYmIO7H6KhNNuyYTMSSQCad5IbIfsJBIsqyZqmoIC7+Da+fDGtcxiTFWDRykYSEY7zTFU1c= Received: from AS9PR06CA0398.eurprd06.prod.outlook.com (2603:10a6:20b:461::17) by DB8PR08MB5482.eurprd08.prod.outlook.com (2603:10a6:10:116::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:30 +0000 Received: from AM5EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:461:cafe::4c) by AS9PR06CA0398.outlook.office365.com (2603:10a6:20b:461::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:30 +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 AM5EUR03FT046.mail.protection.outlook.com (10.152.16.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:30 +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; Thu, 14 Apr 2022 10:46:30 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Thu, 14 Apr 2022 10:46:21 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 14 Apr 2022 10:46:29 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 2/4] arm64: vdso: enable orphan handling for VDSO Date: Thu, 14 Apr 2022 11:46:09 +0100 Message-ID: <20220414104611.17748-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220414104611.17748-1-joey.gouly@arm.com> References: <20220414104611.17748-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: df5d42a6-5322-4686-12eb-08da1e040eb1 X-MS-TrafficTypeDiagnostic: DB8PR08MB5482:EE_|DB5EUR03FT028:EE_|PAXPR08MB6893: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: heBTax779WjbOBYVdqWXmjZfEeR4AnO9oOC/7KXWwrBN18pIquY+zLynTu+tiuIk6CcvWDBPBw/dfyKYrS4sx6a6Hn0CPOGI7YCYod6LCzW10pak9WslJmunzY5yQ5nn0/7O8CWo/xOcCwLMlrzmgonIvk+f2hpppXWlURvV6CAaGs2CzQbzn8jAKXrTiLoxkp1PnmOKIbatjIVrvTsE6NAF78Jzgj8kKHHKJMyuKzSI2M9A/DIbGRFFWxiwhVQO9R3JBKmbM6uAlT3JjEuip6/w5lWHAxgjHOB2elXH40NLSp64f/ijAzwedZqQNvyeDspCItN++XTJR4s43EaD/EjTawKdROFW5J+w0mZzYUdt1hJ7zzY81BR4p+htW+vj9rth41xqlImyNU0mXvHFSCc6h118BaAzJlGO8xZFqC7zOo9onabwT3FfNv8stznWNxWCUHzPv1YQycn3I/G0X/GS1Pv23QvTFRPklK0yHdUgwNYcVmjkVPHVrObk6P5dGx6g7l7o2ZCO7zocoQczy+s5cBhOulFH8/xUXKxwdkGKMNHF9mTdvCw8PJgYNqbvlQz9dRe4bg7ALEx0sF5hs7pzY1YhWaF5x+8TFlFh99nNHNgHPvSa4Si3z+Nkw/zY8nVQx/0RcJnNRFqYtGATAN9oxI5yGuxSpqKNRpJW4ZFgpuThY2eHwOc20vub6v9fEVOTWYj29tEiouvULQki9A== 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)(6666004)(36860700001)(44832011)(356005)(6916009)(36756003)(54906003)(316002)(83380400001)(7696005)(1076003)(2906002)(508600001)(26005)(47076005)(5660300002)(186003)(426003)(336012)(86362001)(8936002)(40460700003)(8676002)(82310400005)(81166007)(70586007)(4326008)(2616005)(70206006)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5482 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: fb947326-a808-465d-d689-08da1e0408b1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DoYupZbOVYMfoq/M8mHJ3gJzHtTBmEr9FiLECWn8LjKCKR+ZIzggkJzDAWWtAkSENbS+gKaq6lecKbnd463Z32TBDgXepOphfR25Ltb9f0Zc/NoKqg2OVQWcNmZSR+cMaf4SrjYTlABR+/7iG5aqHv6Sc8gKjzXivFHnIuoDOqgM50K4NF1a6MLqeVKn4vYpb5n71kNQG42D80NAwrEvsXw2aDuU5BsMavKjMGOqSOz2PRoYBAe2jiHXUeBKpjUeinnCgoJuYUoP/QBRYI9sKsHg6+TtkkiM+j5I77h/8t0oQ0mb1/APOKVmL4xGrbRzpU+18CjXfEVPKTgn2hQO4ekudWUds74F3SWrLYjxRL/plg9ZmgbMnPl6LSGpzBkt6UKdTQv7OvshLevreR7o2RqkD+BJIyRA04pQEHNWgJueODnO9sO2mxuB6IP+meYTqlHK2nU38jX2BP0qK5e8xQT2ymPEZrXG69t5FQC0FcCgPMdLWaYbqQDx71wXxnxD1j+WTAhv2iZtBFTJQvfaGMeWfK/R5ZGv7m8iggQTSldeeKYy2cVW7Nu3PuGGB0dzPZL6aDn+llTCl6AGGH1V7E+cGHHt/Jnl/cEzdAxhYANspDR9Ab7JmtHXhAqxluYLhymQ+joPpEgUZY2up4xsVVkw0M6aqDe57fOJO9vZp2QQxzFXYGapXwE9zvnnbkuP 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)(2616005)(186003)(26005)(54906003)(6916009)(107886003)(1076003)(40460700003)(336012)(426003)(7696005)(36756003)(82310400005)(47076005)(508600001)(36860700001)(2906002)(44832011)(86362001)(5660300002)(4326008)(81166007)(8676002)(70206006)(316002)(70586007)(6666004)(83380400001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:40.1378 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df5d42a6-5322-4686-12eb-08da1e040eb1 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: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034645_250536_115CA916 X-CRM114-Status: UNSURE ( 9.08 ) 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 Thu Apr 14 10:46:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813335 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 E57DCC433EF for ; Thu, 14 Apr 2022 10:48:20 +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=e5CqnC0YRMrEBy lYsCMv6qbBtnku/o8sImg0MtXMHrMFH9z5ent4pUxhtrWKWUYVWlTRBiOkCrz94eRT6N8K3pVti08 YeozTfNnht/Xu6PIU9OUKPRfshkMKd6dweYe5HVP24yeb+Pdzz2/bOk6GFnCkSkhMADXcL8C98Us5 k0TLQl8XdpchVk6UK3QM5ypbxKhZCq220wus5rhksDKLL254IRNHgIBlHmrKfeXEAUOrYrJ+XxJQq +M1sFXwLfPt8fPg0EpAJR1G3LTDfCfXIz7OPO+WKtQxMzf1S0WxA3W8JKyXHkhksRiMSUkYExB9DZ o5mCZsvfbCscHLNSUccQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nex09-005BUB-4S; Thu, 14 Apr 2022 10:47:01 +0000 Received: from mail-vi1eur05on2062d.outbound.protection.outlook.com ([2a01:111:f400:7d00::62d] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzq-005BP7-FV for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:43 +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=6F7oV7Cs2J5vtqCV4Z3uutv3DSPH9nU6bu2Up2xPI6imSQOUROzFDH4pGfLM90QJpIfiJzoAntMcsI/3Dy+Bih40Dqb+miZXJVS3a4Gyqepv38l5yJV4RCvpN1DXesFcDoAXpFSD9RbfVzl/6RU8Qe38uVkJA3LltzxFAsL08f8= Received: from DB6PR07CA0167.eurprd07.prod.outlook.com (2603:10a6:6:43::21) by AM6PR08MB4120.eurprd08.prod.outlook.com (2603:10a6:20b:a2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:37 +0000 Received: from DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::3a) by DB6PR07CA0167.outlook.office365.com (2603:10a6:6:43::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.8 via Frontend Transport; Thu, 14 Apr 2022 10:46:37 +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 DB5EUR03FT014.mail.protection.outlook.com (10.152.20.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:37 +0000 Received: ("Tessian outbound ac9bb5dd84f6:v118"); Thu, 14 Apr 2022 10:46:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5c452dbb44645cad X-CR-MTA-TID: 64aa7808 Received: from 3300a7aea5b2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CCB4AA32-40D7-4E51-A7F5-4888707E18B1.1; Thu, 14 Apr 2022 10:46:30 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3300a7aea5b2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ykuow3s2dJS/+8ZvMsM576ixzXfvesoufWL7JIjcTaQX/UEN7zcyAV/DSi/iMAhkSdUUR0rz4D8z8s8Bm7mt4a9xceL62rSHNHAaQj74T1+KlJ07L8NJ8leD18re77AIu37j0wiXVDI58JIRvlX5y3OkP0Z7oWYkhHPB5HY/NBjO8JFljSjvDewUmhSruz/zBTAeO4o9ovS/OWhoxd7P4VmxnNn9wPUZgfjb7TvKisq95jwSYQ8adVOSGpaketI18S5bi54PaP1+IZyvThUJ2zbLFWy2RgejLnzkHAK2unShChSIECztnYMy2xQTuA7+GNKZyN2HsgjxqJJqyhxUrg== 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=YT90k7APJCD/gSP3Krxm/GvOCTp63CHpI/syJCKddxhQXqybr7BVX1ZJt8MLwKXABsg3XH38e57R7wwd6WbwJ+HvmlDQIwPt3SM1bzXF6LEwTLJ3XBUc2dVFDZasui389BblW9napmD2iHwwbfy2I81ACVSVSYtCV7d+mX9oaeR1QDaEBoYTqYsgcKIIqhBAdnOEVV12J2xmXasdspWQVMgL0JqnMHtZiqJxpEVffjIE5trIsZSIsQ+MgXRJlkxDxI3lcyhqgZ6I8ew+rdh3W7VgTVY96omwCA/+cf2kzuOZFtrfzREp7rFmrNVhqXyYiBLyrUtjgNAi+37qnHUKjw== 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=6F7oV7Cs2J5vtqCV4Z3uutv3DSPH9nU6bu2Up2xPI6imSQOUROzFDH4pGfLM90QJpIfiJzoAntMcsI/3Dy+Bih40Dqb+miZXJVS3a4Gyqepv38l5yJV4RCvpN1DXesFcDoAXpFSD9RbfVzl/6RU8Qe38uVkJA3LltzxFAsL08f8= Received: from AS9PR06CA0402.eurprd06.prod.outlook.com (2603:10a6:20b:461::20) by AM8PR08MB6626.eurprd08.prod.outlook.com (2603:10a6:20b:367::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:28 +0000 Received: from AM5EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:461:cafe::1f) by AS9PR06CA0402.outlook.office365.com (2603:10a6:20b:461::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:28 +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 AM5EUR03FT046.mail.protection.outlook.com (10.152.16.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:28 +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; Thu, 14 Apr 2022 10:46:30 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 14 Apr 2022 10:46:30 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 3/4] arm64: vdso32: put ELF related sections in the linker script Date: Thu, 14 Apr 2022 11:46:10 +0100 Message-ID: <20220414104611.17748-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220414104611.17748-1-joey.gouly@arm.com> References: <20220414104611.17748-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 676e96e6-af31-4ec6-bd78-08da1e040d01 X-MS-TrafficTypeDiagnostic: AM8PR08MB6626:EE_|DB5EUR03FT014:EE_|AM6PR08MB4120: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: hkn03HpJuLfmiTaLLqxpAfYallxs5zF40n1RgEIMU9V8bITIyAnLz3/+r4QBm4f8ZXOQV81Wu/S2MLRJBRPrUmRTvBNDw/3LAz2a77qfrcnH/BifjHbUPVJWuQYFX0rw/37xHBg7qjvIdS/BA7ueN/dBtVTf1R8Tw316LCewApp/j9A8+OXc7/UzXlMVRLpNk0yx4Qm0yvpj+jr8+CyI8YSS3b68ZHJc7GD8jEE6KNDZ2OnBcrDgfoHIyCWhazqI5gimiYc4zUQiCWnNUw2oJve9FtYLVUD/Hrw9DrPhrQzwRWkXSlcsvweAR1NcEyuNdf9K5sHgNNdf/ukUWHinbUiaWe6yX7nc6IDdKQExNcqC+MUH7DPouaGzo0q5IgHcDRrd9+KuB3dcVE3FAQAl2z+2YhbHUyPjVhbqUP4mJveM5MOdtM7z0KnG7QJ00/ZCjx4bKmVsayepHQMsPQh+n3+WClYHuNzdePmnlEvBwqY4KKQIPWVYImdlecdYID10guRseFXWdE3s42UuBsOhG5UuMaLluBNES1kASrUP5nUphcOURn9qS36+zMq1w2X97IGl0D03Sm4C9crIjDbwk1d4TuVXbhx+XPUkV4tmF16uBWKnApNnVr6cSAP3MSysDsAUiMfOT01FB7Wlqyzt4nyw53C4PdrbKUNvgDL0y/pC9QFUQf612pEpaktUZSQRwKdAK8kisA69VKxgtB9kgg== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(2616005)(82310400005)(8936002)(7696005)(6916009)(81166007)(6666004)(4326008)(8676002)(5660300002)(86362001)(36860700001)(70206006)(70586007)(2906002)(40460700003)(54906003)(36756003)(1076003)(316002)(356005)(426003)(47076005)(336012)(508600001)(186003)(26005)(44832011)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6626 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c78870cd-e4a7-47f3-7286-08da1e040785 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Dcs6okkWqHAsDm3qgPuUvMOt3/JqlUsQPPUDxhearw2GqwB/up55f5kuhK4i5FmhxYZEGp1cjIxxtcesHNqNGykyr0rxHTJV8Y6KDRRofQbOB7+Bl16qtu2Ck2XCk1LaWZ89zXAl+0DC8qGeuTxx9bY7kJDcQI1I0wLHgGimt+AL0l/5ynilfrRu6lqph+vRWuAdziF5M+wRY892DxtPGLtkNZLA0/GGiUB3Ch3kxScKGMk9WM8ucnwBNnBZZmFuEYbGfcqqKmd7mh5Uf4EgUwRRTXeg3xReUmx1FmyXQKKooHkvsPEpYoKy4JzOpX4kLiU+7+iPM2b+9v8gAztyo3h2za0q/zhG7xs0iZuBDZbud+qsV+yTc12t91624tRs+hcKJvL76LSYA1znLZyACCeFb5HQY4wR3Ozv2flL5Ua/aoFrJccxFuP+pQb2fVuIkQRbs2C65mpxPMrnahHYKSTyGlPuHj5iyIqCG7WhAQG3baUVDGvcoyMlucYF8LkMpOfii2FkV+vsk0J8VhBhJ0fJBgefv1R23gA4RDxN9NoGdjfo8FcpszAQfqlzDMtS//hy0M3V5hwYxW0h/W+GETIf9tDsity2Uhg6atqxe7c4T3aOVTUHRx4fskAukwMeOSbHNRhsX045p6KTj1iIfA4vUfX5/b/L8mzh/5t54r5lC8z/mc6akqGj3EadZjw X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(2616005)(7696005)(1076003)(186003)(26005)(47076005)(426003)(81166007)(86362001)(40460700003)(336012)(107886003)(36860700001)(44832011)(82310400005)(316002)(36756003)(70586007)(70206006)(5660300002)(4326008)(2906002)(508600001)(8676002)(6666004)(8936002)(6916009)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:37.3110 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 676e96e6-af31-4ec6-bd78-08da1e040d01 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: DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4120 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034642_560413_1E66DC0B X-CRM114-Status: UNSURE ( 9.45 ) 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 Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- 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 Thu Apr 14 10:46:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813336 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 BCCCFC433F5 for ; Thu, 14 Apr 2022 10:48:28 +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=mUxyJU0vKzuhqH qS6ckKfSdbpvv6gmohup1rktqSAD4TfcbfN+1U+NLLv1t4n3Z3FJ4qbsrTQmsucG08p8Vk5ZlhKPT la07scaXKGJh0yF58ZXNjK2TnfykaeVCHdmBXUr1BZetrDqIcHq2gDmjtdhAZWbtxQVXiU+GKbcZO oAJzOpGIDIDuR9HCCx8qFSjid4YNGnx0KhNorfmsGrIyMo+iWHXui79VcqfquvmChG8dAQJ4gT7MQ zTW2hNtUlbL32mjcDOJZTY05EBZg4G0xBFgI+l46SmndoMBBw1RdJC3o2AEAKi6KZR7MQGwB/H/pE m6YUP/vs087QBkJ7r51A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nex0L-005BWO-Cb; Thu, 14 Apr 2022 10:47:13 +0000 Received: from mail-ve1eur03on062c.outbound.protection.outlook.com ([2a01:111:f400:fe09::62c] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzr-005BOw-Fm for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:45 +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=CbwxzkDTt/UfqG2w/B5iJlhN0AaIzYYfXIH5Trn3ActjZNbRliIUgtK1BtP6PGHByKNh0JvgaxSfg8PVKVFELSqFR+6b6JUWp2XauEF/zzJo8lKGxLMi3CxPAPVJAJycKHxCO0mPlm0Ymv8toxynNYetAsRVJlEEm3r3ef1J6vA= Received: from AS8PR04CA0187.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::12) by VI1PR08MB3741.eurprd08.prod.outlook.com (2603:10a6:803:ba::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:33 +0000 Received: from AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f3:cafe::76) by AS8PR04CA0187.outlook.office365.com (2603:10a6:20b:2f3::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; Thu, 14 Apr 2022 10:46:32 +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 AM5EUR03FT037.mail.protection.outlook.com (10.152.17.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:32 +0000 Received: ("Tessian outbound facaf1373bbd:v118"); Thu, 14 Apr 2022 10:46:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 633d45775f99d14f X-CR-MTA-TID: 64aa7808 Received: from 61ed1ca38266.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F1D6077F-B2DF-49FD-A356-588EDDDAF751.1; Thu, 14 Apr 2022 10:46:26 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 61ed1ca38266.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WAZAL8/P74Pbk/a11Q/4gwvueA7qmD7CvVoGYsk/Z4BIU0OZwsJvbnhO0yorEElftNt50B8pYkXmjAUBRfi8o21NzfYg/MJ/xyRIjH6eYmkV18wcgSwtbz3s4mgQuQp/Isuhmd4aQDy8r1D/byVec+npbLihUzXwS2iv7yYkRlvYGdXdSvjtTJ1nlVtLfq4wVwWqdxec3XBefUDcH/8SErpV0kq9AcrEvqlhg6LzxEY5NjTeC/th2M/1Fjpg4YPs9kzwI6+CpdQlqbl6EYxehJ2xTZ4Z1Rl9HmGTLLVDCs3Rthvej8w0Z3rlxeirijmZoKgGyZR+QU5mhWX2Cc/zqw== 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=Sd7WpWp6jMNVHNkRIZWC3B/IiKDLCKW0f2awsOSPN8p1C1M1CfnkEgWclBG4ORbirxIbArqB5SU93tV5/qVVH84gqH4UiH9fGAIew7lBg0hDqjyG8issqO4meYUSiJQgSCM+kKCLT9ax6/7uIetZfEH/SGZBrydu+gVz9nlq1Ov5u24jqxbvC8K0YKlhKfLGdjy1kVXNlQoOEiToFODYAIRSUtPf7l/2mkvCB2cwsCarsPj/+3Sax85kd22a5DlRoaixMPD23fK8Wz8SQpxGbEhQxQbHmOItraxp/7qWDe0VCa2cNl9Gjvoas8o2B/kYHwHbhQEGFaK0dgrS9wK6rg== 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=CbwxzkDTt/UfqG2w/B5iJlhN0AaIzYYfXIH5Trn3ActjZNbRliIUgtK1BtP6PGHByKNh0JvgaxSfg8PVKVFELSqFR+6b6JUWp2XauEF/zzJo8lKGxLMi3CxPAPVJAJycKHxCO0mPlm0Ymv8toxynNYetAsRVJlEEm3r3ef1J6vA= Received: from AS8P250CA0030.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:330::35) by DB8PR08MB5435.eurprd08.prod.outlook.com (2603:10a6:10:113::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 10:46:25 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:330:cafe::d3) by AS8P250CA0030.outlook.office365.com (2603:10a6:20b:330::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:24 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Thu, 14 Apr 2022 10:46:31 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Thu, 14 Apr 2022 10:46:22 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 14 Apr 2022 10:46:30 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 4/4] arm64: vdso32: enable orphan handling for VDSO Date: Thu, 14 Apr 2022 11:46:11 +0100 Message-ID: <20220414104611.17748-5-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220414104611.17748-1-joey.gouly@arm.com> References: <20220414104611.17748-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 521db417-b2a2-4f58-ca75-08da1e040a57 X-MS-TrafficTypeDiagnostic: DB8PR08MB5435:EE_|AM5EUR03FT037:EE_|VI1PR08MB3741: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: cz1c/c8Rj8zyy7ewAQlpsevD9Bb2lh+FOCKYGKhr+e6pWGxVQGCb3DYVj32UhDi8So7i9mhG0+WmmaQ0xYxmaZvA0h5KVz5wou7pYK+U0TviKOS1EU9sHpbwxi5eBifAXHsaKORqUiDM3bs3VtKRUrQz0cs7OWueSvX0+MP1+ccqKrwxpoImBmTA7RDw/WFBonmiOB+Q6JRI64NuKDjBbA8rffI/yk4KfPaoGDZOuDUdUI0CQj3D1R0eKNZoBljoTAC5FJWJtB01fICQMwQJdbamIFUCUE2i+yvbyA68D/ElPkD7xyVSAfyQC18KFxs4pBFuocwNzNFbm1Zguf1CWRKwURnXdt64Dk+J+YwEiyTs0SVEc4qFty52xEPTSE+xOqV1oyN+uNNYhOjq8k7V/OT3mRmj9OcUtkOn9/YXtoz9q5iyTXO7TSeQVwB8IqJwYL+aU4cD0M8TVder5RNVezDmNmJKcb6Q9IF3H2+U6n/e+ZKJl1LNdZ5UbGL4tN9SgrwVkUZLHLnZWX8P43aNerex0nS7YD40CjMEnkOHomp0VD4ryVexwv+w0/5hF8pjOd491sQxYJt+jOrSXhpwGj8LgJrbmETjw/yU0R8lImo0zXg4yfIJv2szcfJsc1HezCQi/KGtDNBCiEEXIsXWKr1foFWzkWpNkMBc2oHtghb4s6AdvXa4fvb2/JHDkv/puwX5Aw6JkQEwwk3aCNSasA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(81166007)(356005)(1076003)(70206006)(70586007)(316002)(4326008)(54906003)(6916009)(508600001)(2616005)(8676002)(82310400005)(47076005)(86362001)(26005)(186003)(7696005)(6666004)(2906002)(44832011)(5660300002)(36756003)(8936002)(40460700003)(336012)(426003)(36860700001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5435 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b50c0b38-772d-43bf-bb29-08da1e040588 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XdHc4WA+rhsm1gPrMnEAaOvzEFCZ9UhrhgRTvHROfop7Pxdl5rWzvqw83aNAmuY65vexV29xh+Ct/86W5ydX49HY4EoSzPmiCB+wqP0IxFasgAq8K4Sqn8mOawbL0c8rvIRxPhWOYPwOBMMqBMLmrZZoJhR4fkTsoinRfNLpWZNT71XdwqnRBMsItUMbwiOgqzQnWxKiQSAkWAQxgA37+gcRHH1HWUxxSa72f35LT2ciFvlIScjJdS7zVOUIHfn6nNURDiOgueGjDPV8VItJfRmru47zuh/zmqNwZUhAcsmPsiS7fF0Jn4vN3SfMkBR6UKFiQA36XnsVLHcPtc8gXf7uO7hy76dr2+8WGDxTmFo5DP6NtFjvzXn2n6NxStAeZwcCVeUPTGIUkZBDTAcVDTlYM25GrE+SGEOGw0QVyANLzVnWdwmUKTQUJWDU43dVWpyqwqE8aBB94qAJta2W0tEujtbPT6OXEKqNVexRMY2FTZvA0Fpb1uIdsnJfGJ0lbfL0hRfA1j/7Ycz1AbiSKgOdX2ZOMwCA5Mf1eqTBRV7QF26pm9jb1cMuo9115QGv31lYeDDxcbqlAasUg/dL546zRCrGN82q6ReeoNKAaPmHbGjQMK7YhdEqdem/vJRBHtMUjdSM7k6Hata5Gr87lagaw/lT56oVTZyQTHxlOfy0C4mx6Xu3SkiY/R54n2/p 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)(36860700001)(5660300002)(107886003)(47076005)(186003)(336012)(36756003)(426003)(2906002)(2616005)(26005)(1076003)(8936002)(6666004)(7696005)(44832011)(8676002)(82310400005)(70206006)(70586007)(4326008)(40460700003)(316002)(86362001)(54906003)(81166007)(6916009)(508600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:32.7949 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 521db417-b2a2-4f58-ca75-08da1e040a57 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: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3741 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034643_574454_A8036FC6 X-CRM114-Status: UNSURE ( 8.54 ) 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