Message ID | 20220405160246.1991-3-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 <linux-arm-kernel@archiver.kernel.org>; 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 <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <catalin.marinas@arm.com>, <joey.gouly@arm.com>, <keescook@chromium.org>, <masahiroy@kernel.org>, <vincenzo.frascino@arm.com>, <will@kernel.org> 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: <PAXPR08MB70435C6D5502D55609851AB594E49@PAXPR08MB7043.eurprd08.prod.outlook.com> 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Enable orphan-handling=warn for VDSO
|
expand
|
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
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 <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Cc: Kees Cook <keescook@chromium.org> --- arch/arm64/kernel/vdso/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)