From patchwork Tue Apr 5 16:02:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12801750 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 B2D90C433F5 for ; Tue, 5 Apr 2022 16:04:43 +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=bX4BEmoqrwbrgaAybDg9sx4Si025uqb93quajthvmE8=; b=3IKNfYoM8kYNUd QXZCf52QfHjQ7asHT0Mhb3p/cg4xFrJzuG4s986piwyjvJ5dHLeFSviz0ajhist5/vh/l1MB+vfid jLJWWNiMJTMt1eMn2nyljHU9yljsp3hMoRq7Q2MwFmUc+HxhXzQUKC+rGoB8U8WQW8nArDGEaFVU3 7AnpXov7pXfx4BwSss+Mb8mE2bQ4biJoKx/0yLtbk2vxX22GESEFIZlJPmWX1sZsMVwSrG1BgJEjv COM/j7knqYoJNL19fNTF1ig3o0RaQ0JBESEsxkEamD8pRIakR/+PP5Gw0gE+yBJ58N84urxbO5UOj Z3h/KsX4U25YJ5QULGng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleO-001oS6-DC; Tue, 05 Apr 2022 16:03:24 +0000 Received: from mail-ve1eur03on0624.outbound.protection.outlook.com ([2a01:111:f400:fe09::624] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleD-001oOh-9K for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2022 16:03:14 +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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=DDN8TY+xNEYESE0ZKlZXT2t/3NVAJDZ3ajGd1bWoyoImqfqluUqAY2e9WVUVEXk74HnB/ZwUEyfe7Bhu7PfCr+becCfQ+GUj0lEGLVkZplZsffOeaoDh8dYVTOrEFDHcjlO+E+NHQysvvvmCJkcfsH4XRZ32SZM2AZ0hOF5vrvc= Received: from AS9PR06CA0194.eurprd06.prod.outlook.com (2603:10a6:20b:45d::29) 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.5123.31; Tue, 5 Apr 2022 16:03:04 +0000 Received: from AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45d:cafe::83) by AS9PR06CA0194.outlook.office365.com (2603:10a6:20b:45d::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:03:04 +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 AM5EUR03FT055.mail.protection.outlook.com (10.152.17.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:03:04 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Tue, 05 Apr 2022 16:03:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 955f9b09ff34c5b1 X-CR-MTA-TID: 64aa7808 Received: from b9bb40b8ef3e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 23B08FFF-0FDF-4789-A5D0-234D2E8E9DBE.1; Tue, 05 Apr 2022 16:02:57 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b9bb40b8ef3e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 05 Apr 2022 16:02:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0Btu3uxdz1ZFuf/VgKduBSLwjE6CDP+5/O66sF5+dK/4GioQWcKAui91ir0BVHFtqFprmPCmpavDucxe5Q7OQdxPq5frGZqTLA1+I1/j30KQZJ6opIefh3h5rQZtyzYlJ3TswFOBuElFqenhXrcM3IkAf1LMjT3s9PKblFX7wHiA9i61zjdvXCPexeudv5BF+4XfGFNByWjdplwEks7YNiDRc6M5jciqCwFKgvk3aQ+QHUApJf61Sud5HFiSN64BST6IAbNHc3jTFdhClZ35yFIGWW0fey2DkRo0Bq2AYVfRvxb9URKngIiuHvoOsbcGLGi7tE5PF5XvE7gv1pMXg== 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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=j9XAU5HhwA753Ro1iKu46VWIB8ltscqKywNThK9+qZaIAhUt/mtXxSEkPy4npCJPz9CHzLiuzYBN8ovh0afr9iTBViGoDNjo170fXI06tYfaEBaPWCMFJwbrKV2O5uRfHQKRhHObSDDqe5g2/GfHSEGWfEXnh587iZIsM3/JVGIztlM9zpuNJo3UP5TCe9R90k2/3FcOw1ELjOiDuESUKLr7IWtUhKL2fAh9on9UDw20NjZXsh0yutnibe1Kr/+6O2F4pW+7stHVkXROLvLgeHx8uprk1oHqtF7lIy/ntTlM4WEFHJ5ySnhwL/BL/3lVUTSK/Kq/vtHSGkiDjNvP8A== 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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=DDN8TY+xNEYESE0ZKlZXT2t/3NVAJDZ3ajGd1bWoyoImqfqluUqAY2e9WVUVEXk74HnB/ZwUEyfe7Bhu7PfCr+becCfQ+GUj0lEGLVkZplZsffOeaoDh8dYVTOrEFDHcjlO+E+NHQysvvvmCJkcfsH4XRZ32SZM2AZ0hOF5vrvc= Received: from AM6P194CA0001.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::14) by HE1PR0802MB2427.eurprd08.prod.outlook.com (2603:10a6:3:d4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 16:02:55 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::43) by AM6P194CA0001.outlook.office365.com (2603:10a6:209:90::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:02:55 +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 AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:02:55 +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, 5 Apr 2022 16:02:55 +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, 5 Apr 2022 16:02:55 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v1 1/2] arm64: vdso: put ELF related sections in the linker script Date: Tue, 5 Apr 2022 17:02:45 +0100 Message-ID: <20220405160246.1991-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220405160246.1991-1-joey.gouly@arm.com> References: <20220405160246.1991-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 4bea0289-a81e-4eed-7125-08da171dc462 X-MS-TrafficTypeDiagnostic: HE1PR0802MB2427:EE_|AM5EUR03FT055: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: uzcQxXLkpnqDdJ+JeESBaFvvmv6QqfifsX1WQoNmzmeZM30T8rtn0Tb4x3ZmUY7iFzNnhd/AM3OWf150GV49GADuxgr+DY+qhFbKJ+caADKyfPhSomuNuisH8JU8OI6M+2pTJEHp4kvm8jyI+Kk0fFj9pW4v9fiZC+mUf0Fc01wxds34sssJpRoZv5t8+PQeLz+kirN562lrKyapLYzEpL/gtBIsnaxa+JWeGQ+hhdHvlW60r5QkTdN6sqO3JXEZJSupXYpocpJ6bHJzzTrH8i9Wpm+FPWmupo0cCaOMuURJnIB3BcLsS2R/GQUKh4VH1mOUc4QEDYbhdGIAzfTx7BvRYa2G/jok4gxlIo9ciMtm+XubB7/uKWvGFBuJofNwuup03tftwekpkjJffRVj0kQT4mPTNEr5jmYqrdpbjlauyZibqE0BBstCv6HROUUARTtjTZsGNxXJdoM5G43O2ZU7d6cR2cq8Q28c7+V0+atzqP41TCvEEQYELZjPSEBA4ous4mi6QfKiLOgg+9JJbKNLBPhV2B6UwK3L8iRxdZb5iX+isdV0dBwfyXwF5IyEFy0pyLYghJGI0vwqFLPet5lLxZB71ByYdkiXDm/g3mbRHxy59pMhOfArDmMhbi2aK+FDBLdE0QhIsy3uT9LXBd4s8WUx3vRwcNQheVR5h5JK0E2prdIDGRpoqVpZ8BPoOmCf0oSJSocNmCQd6mLIRQ== 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)(36860700001)(336012)(426003)(356005)(40460700003)(82310400005)(8676002)(4326008)(81166007)(86362001)(6666004)(44832011)(7696005)(47076005)(2906002)(4744005)(508600001)(8936002)(70206006)(5660300002)(26005)(70586007)(2616005)(316002)(6916009)(1076003)(186003)(54906003)(36756003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2427 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 78e9339a-87e6-4b81-3e63-08da171dbef2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8NDXfasu3f+b0jXXa5Phx7ptHXG8bSA1Dc7FI8LAzYVpKIqzYwrKWmkq4gqA8LbNGQkcvZyPHboPmTVP+FipHKfHV4BqKvevCdX2701w+bxKqbvSQobLcNcucBNaUyVyIfltuI7y4QenoJ/YLt2CEzB52LXhLqN8yhuL87FWyck6es40Ok9vUKrFlhG76LzEDarBRrjlMQxBJtL3fXnwzaHd+3T4dlM+BJN9XgYorCcplDqI+3QFNji2YWlWtCLX5Cl62Fdc9Xohk2+e5SEolV/1WdzAWXh4kcjrImeVD3JMaU1RlibF00yoO7L9qNHM4g24aJKJMJ4t/Y4LNmoLqAZFan6o0Xvuqjf83sISLJOH5eU7Kzd71tezseYeTX/5IOfcedsfWSaUmjS2nl7dNx2YLON8m5EEkWTpf5KCG/8YAgwxvcfcmIJuionR/ufjhUlKUyYSMY2vGFfKUlUnHQn2cIyZfnaQRzoYpUCIz8/5/Jgxx4WfxmWcQpCBz41diyMUHoZ8/fF/GHI8pDvACQjLfyD4wv7zckuUo/W4DgUQWmBuLsiLC5jzZaDcYvWWTIeamAQKF4leYUcZ/jXS7uvPuy7o09rIxOdwadTIJkWqXhJHNgVh+cJnRrUfvtrRrq3qgq5+GLxYx/n58XCul4htWh8zLxui3axOKLPPNaPlSvvZQn8/yd2ZY9ixy4di 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)(47076005)(426003)(336012)(81166007)(7696005)(2616005)(36860700001)(2906002)(107886003)(1076003)(26005)(82310400005)(70586007)(44832011)(6916009)(8936002)(54906003)(8676002)(316002)(4326008)(186003)(70206006)(508600001)(40460700003)(4744005)(36756003)(86362001)(5660300002)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2022 16:03:04.1988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4bea0289-a81e-4eed-7125-08da171dc462 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: AM5EUR03FT055.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-20220405_090313_387235_03B009B0 X-CRM114-Status: UNSURE ( 8.14 ) 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 These are the same sections as ELF_DETAILS in include/asm-generic/vmlinux.lds.h Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso/vdso.lds.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index a5e61e09ea92..e453e74e98f9 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -54,6 +54,11 @@ SECTIONS _end = .; PROVIDE(end = .); + .comment 0 : { *(.comment) } + .symtab 0 : { *(.symtab) } + .strtab 0 : { *(.strtab) } + .shstrtab 0 : { *(.shstrtab) } + /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss) From patchwork Tue Apr 5 16:02:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12801751 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 9F98FC433EF for ; Tue, 5 Apr 2022 16:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ehNtfeouNRl3cwcpq3AoOfp7YcwG3TZksa4w5H0euFg=; b=hAQVGX1hZmHjpX uXKEqL/fzUTngW5U1pxku1HqRG0JU6lYf236KBK0LNpOIhvkXsHJpLW/7X05ikT/ERQGUvs8VTTar BpDUf3bb5eUODgFq2+FZFDYdmONCcdNSvAwFaY61PjHstt+NIZNEdOaaHkv1Es8PP448g2x+zQqUn t5OG1mrjXZlOGptXmigst7ExiUieWkZ/HgVKKmYNgXc6dcLEn994cbKSjp5fbf6lDeAljUm607lP4 1okGFWSE6FucGQoMGkBVWfcfaqioZuVUSDBs3ZIS10m/ih+zzT3cGecSw2HZKUKLpMuzUgT9FCw5M 9IXcTjWlZuPRXBtTUNXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleY-001oUL-Eo; Tue, 05 Apr 2022 16:03:34 +0000 Received: from mail-he1eur04on060f.outbound.protection.outlook.com ([2a01:111:f400:fe0d::60f] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleJ-001oQE-UJ for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2022 16:03:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=iPkpHprLZbQDjWcAbWW5OpTXfCZNIyhzlFzG8XnvmY9ztvHZm3fwz7cUtcO5nNfU/A1YU/iisusEv4A79F6ahNe58cFH+wV3zq3KlJTM62aNm3GHHGosLui8RfIpKSD+OaTKHt+UXugKfBKaQVWXRYiILvEhNtrljEuelqSCA0s= Received: from AM5PR0502CA0010.eurprd05.prod.outlook.com (2603:10a6:203:91::20) by PAXPR08MB7043.eurprd08.prod.outlook.com (2603:10a6:102:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 16:03:06 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:91:cafe::8b) by AM5PR0502CA0010.outlook.office365.com (2603:10a6:203:91::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:03:06 +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 AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:03:06 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Tue, 05 Apr 2022 16:03:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 46f2f18ed173766b X-CR-MTA-TID: 64aa7808 Received: from f0c3b5682798.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 82C3AD92-360A-4A8A-BF04-A7EEE3FBFB55.1; Tue, 05 Apr 2022 16:02:59 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f0c3b5682798.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 05 Apr 2022 16:02:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l8bwlNVovqHCveRfz7HC5/rSF86mjDg2l1P8iFvBvg2PM3he2KxDO5mBm93MJqG/ZeIzaypRr+dS5s8Dt9tJGbWS4ZcqrqT1rSUupUUmsS/lriOQBMzb/ivA44uOKqlk74DOwxoigOTMRKQjQRdwEN/pWz4LqnHuWRA3nmm6DOPmIWlarWSPjHSFbSfFXhRFf9duapUtayiZ2vR+YzErPTrzVBLrFFJ4IhOJCvwLno+nENzKx+g01vvTVCWVRfkPLdOo1H2Omj9QZiTuuvJVUWaViBtL8FpE6EKZDWXQHDwlELfQS/QvlKSTi5fHErq/oV76p3mO99IMJuWME0dCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=SSI4EqK8bBPnkZttpTXr9dv2+8F7qVa6lfigKdO7DNE4Q/Th1a3WW7UDMoR/6RCCFLmjG1g8MIwyk8/JmSpW5YyfqImsgi4wWQlkFMMLCc2JuUEYJFYvH7c0Sck2wIKUWxjdd8R3tEEdhy7opVPPd6ZwmOc9sndjaOstbY+GjVTi6TSvKomYn1tBxFOyQGkMQC7ANHQhN8+Vp9NxLUdU/a1YgyhGRcO7T7NNJaxKxiltZ7U6HBUAoB6y6qZbgcj9WwR3wXzxz954EXCq498uXyvDGOl7cLWhn2EJnnmQ8Ryy6Fkszw69QhqRmAVWW0MO2ay04GC3rDFtcU5Q12m6OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RsRfDDcpeV2Z/xX+XoG5Pdd86PpgBSX5S3+YTzH5iK0=; b=iPkpHprLZbQDjWcAbWW5OpTXfCZNIyhzlFzG8XnvmY9ztvHZm3fwz7cUtcO5nNfU/A1YU/iisusEv4A79F6ahNe58cFH+wV3zq3KlJTM62aNm3GHHGosLui8RfIpKSD+OaTKHt+UXugKfBKaQVWXRYiILvEhNtrljEuelqSCA0s= Received: from AM6P194CA0010.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::23) by VI1PR08MB3391.eurprd08.prod.outlook.com (2603:10a6:803:83::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 16:02:56 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::db) by AM6P194CA0010.outlook.office365.com (2603:10a6:209:90::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:02:56 +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 AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:02:56 +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; Tue, 5 Apr 2022 16:02:56 +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, 5 Apr 2022 16:02:49 +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, 5 Apr 2022 16:02:55 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v1 2/2] arm64: vdso: enable orphan handling for VDSO Date: Tue, 5 Apr 2022 17:02:46 +0100 Message-ID: <20220405160246.1991-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220405160246.1991-1-joey.gouly@arm.com> References: <20220405160246.1991-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: da753770-2cfc-425b-eac1-08da171dc58e X-MS-TrafficTypeDiagnostic: VI1PR08MB3391:EE_|AM5EUR03FT016:EE_|PAXPR08MB7043: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: IOJ/ggv/HS3V1dhQoaN86j8sgFgMrEYiR8ZQCTliRAbfDkdcTTIpsX3imBzO5LPC3WuG5rPEPj/q+cpNcw7Ma1XQ6L9kDjRVmfNrGq/vF+jVGBCum8tEanISZfM6pAxdk3IbiSUj6wRzvphWujGr7FjSr57ZNBG74xwAtyL7tCAlTYaGXv8SHvbaZW/qROHCteBvmz9joHXx7nGNKDAhcWQs+ZJkYbVhEzrJoG3UBzCmrHqvt+PHHLprhqJtQlWKu0nWxosxGT6DRGXqg7u4OAiDAyVuxkjFpfXIGZGLG8g/TfAfQVCmdLXE1ZUXWeR7F/qYPSToopUewQL3mDlNZPYPI65wqa3/tVu/WS6B9MIIA5kNr4iNPLMeiigo/UVcITdwWdy1c57mrRNIJKBDGnJa4VTUr0ZDomA84X2ZKJjqmAIVqsXIQi1+pYRb+4o3wL51Bginc45EkfnzzUdzq6NY0XHCh7SJdxRN+sf1wDeBgP7IcdA8kcl/aPWj+tc84L20wiCTjTz5GOvBzNzFcTDj4D/NYsVpeJKLqTMgm3KEmpL/XnDeW7F0ar8QqbaBspjGPq80dWZH2vXJw/xGtLCLWRSlu+aM+Gv8fiIAfeFRVA81l4MK+1FyGOL4LEvTvDd5Vo4fAGj1TZeJ0NdvSjwHVOKDPoD+1gFZT4OwHCCGX5+IU2RLxAgbXsDeB5TnwYKa/fsCrjGzS4Do4AR0pA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(8936002)(356005)(5660300002)(7696005)(2906002)(186003)(81166007)(8676002)(4326008)(44832011)(70206006)(70586007)(26005)(6666004)(508600001)(36756003)(6916009)(86362001)(82310400005)(83380400001)(316002)(40460700003)(2616005)(36860700001)(1076003)(54906003)(336012)(426003)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3391 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c4fc8b90-1c2c-4b2c-1cbc-08da171dbfd7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NboBBQAP3HD4AVgQIsDKA5YaJUhAC0EWcD37gHVFHhKHBFXrzaKCGasxj7xu/JK31S5ugQEz9c4DS3ZpTRv0dhKbYk5NePrWfnXtukk3hIsAEIHX4HKzuEHfCQLNrBfRros3SycYkKq53y9esIb7qPkwegCs1CSgs788vDYhhvqKavytPGGFiKs0JQf+NN9lrLm+pcxTfYXcH9dBPNWxyRQPmhNF+8w0V0F3gf9g50HaZncgiCbSMMlMECcMPVWoENRxvGFjTcX7iV+wVWrG32+lWwDXApe180qy2guwOqnZ+CV9Wmj4ygObSH+xT3tB9eI/PdVgjxJt863A9NMP6eDnDs0JTJAYhrhfn/ygf8c5obMJWFcP9X1C90QC+Gxi7FstbppFFuS13Wri7C9ns+AbQw/51hztUoRYXyl0jrrE663+n1ACg7yR/Pw6Rdz9P3rCrKOlIjwvdC/EAc+oN9tNnSI9lh6eVrKR+XbKJnzD+AE+wcS3wfr4bUdKStWlhemXD80Iw22G9feVFmloKHAb0eOhUG3HtV9TdfvRYxYHbpKr8ybyMM8KH4DRFzkjWhrXHsu+8r1Bi31ARJdfFd9CcPT110ao7MmFhdeDchWWSn+Pp3muudBejHvdjpUHyGoJwGVAqIVecsSwgXloYsdWvuP5J/mbSseU4EAoa3Z+P47jvVC929vDgFA22c2p 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)(83380400001)(36756003)(7696005)(107886003)(47076005)(44832011)(316002)(8676002)(81166007)(54906003)(6916009)(2616005)(2906002)(426003)(336012)(82310400005)(1076003)(5660300002)(26005)(186003)(70586007)(70206006)(36860700001)(8936002)(86362001)(40460700003)(4326008)(6666004)(508600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2022 16:03:06.1845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da753770-2cfc-425b-eac1-08da171dc58e 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: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7043 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220405_090320_021208_71672635 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Like vmlinux, enable orphan-handling for the VDSO. This can catch subtle errors that might arise from unexpected sections being included. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index 172452f79e46..623d9ad2c717 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -24,7 +24,13 @@ btildflags-$(CONFIG_ARM64_BTI_KERNEL) += -z force-bti # routines, as x86 does (see 6f121e548f83 ("x86, vdso: Reimplement vdso.so # preparation in build-time C")). ldflags-y := -shared -soname=linux-vdso.so.1 --hash-style=sysv \ - -Bsymbolic --build-id=sha1 -n $(btildflags-y) -T + -Bsymbolic --build-id=sha1 -n $(btildflags-y) + +ifdef CONFIG_LD_ORPHAN_WARN + ldflags-y += --orphan-handling=warn +endif + +ldflags-y += -T ccflags-y := -fno-common -fno-builtin -fno-stack-protector -ffixed-x18 ccflags-y += -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO