Message ID | 20220413101832.4594-5-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 08857C433EF for <linux-arm-kernel@archiver.kernel.org>; Wed, 13 Apr 2022 10:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+AxfhCs6dRAR64mPjK8gfpZtuZ868BRJ9UvSs+yc1no=; b=bCjj3I2xvwQc2F kyrp8fsZXsNkL2Quz/VI2Nvlujo1bvBDXdrgiAgG+WREm2w1P8FHvgUBHnwy4uDvvuq3gh/mNB9l3 uP8814c8keQT1/Ug+nYBlF3WHkNznzNf448j2FyD8Ff4ggbn930tIOUXF28OzxKBqAlGTEx3rlu+E rWwItva+1PN7xQurZ9pe0B40y9Vf9OTAJgv/FnYSj32yNcvMV0Qfo0hZA0YiLpfi+z30uKdFjTVKH AxKGOuDgIhtHOws1AwMisKu+44xrxMVYf3KIHY9LLwNRUAFpbyb8BlxRyCjwrRrScXseHFHec0D+y yk+XGQ/Xqz8j6N5uR9tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5v-000VGT-4V; Wed, 13 Apr 2022 10:19:27 +0000 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5Z-000VDb-S4 for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=v6qNM43gc0kUQM5UBXAHBXoQ1gvo3KzuiWHHqHHenh3eoncAlKSTTJh4EVP4dokjUjQfhbw6rYEPtwDPvvPsETikgfJBNZ9Rog+fx9z1GhcLX7/f7mgrT0c7O7qDyiQatrTlkNzpdLAnoDOmUHoYrlfjeZ79qF28gnd6Ve0ydOA= Received: from DB6PR0802CA0032.eurprd08.prod.outlook.com (2603:10a6:4:a3::18) by DB9PR08MB7769.eurprd08.prod.outlook.com (2603:10a6:10:395::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.23; Wed, 13 Apr 2022 10:18:59 +0000 Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a3:cafe::99) by DB6PR0802CA0032.outlook.office365.com (2603:10a6:4:a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14 via Frontend Transport; Wed, 13 Apr 2022 10:18:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT038.mail.protection.outlook.com (10.152.21.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:59 +0000 Received: ("Tessian outbound ac9bb5dd84f6:v118"); Wed, 13 Apr 2022 10:18:59 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 64e59714727dcd12 X-CR-MTA-TID: 64aa7808 Received: from 29eea49197e2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 61A9DDF8-64C0-4B70-A14E-1D3827631880.1; Wed, 13 Apr 2022 10:18:52 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 29eea49197e2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VsBXs2NH3VT1M2H06fDwJYawmn8g/RBJU4LonIq2LTPbRmrd5v+UwKuOk3euU1/rejWEHGUdmYuW00DKAK4ObU/hIbklrIQ01QAkruGPmv37soTjvRkJxtp5HvJbzmXNhSf/zDbaE9GkiuVS6pS4oMP/s94NVybkCkdyEs+/aPQAZsR8yHL3nqkJ4ydDFSUv7Lh0H4WhX4fuGZbJtkP53XHbfIFskTBcboi1PRn7KrPgOQd6O41O7LLE5iXeZXH/B7uw5EdBUk2uYYW9aA5CrkVwdOg1F256eeAL5azRR4Iq2R5C+s1m+4Lbjh3Dg6HtZoak++3YuKy690JCVGbIzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=lOtdNxGX7c0NjmHYCf+mIrf5RtowJc6DnWPUi+CxCgLadBlpH8FU8Jp79TvcI3uCE2wYUeMfo5EcmrCo/iYyJVdkW/QrT1GAsxmo8aM7yD7wxUT5w0ceCvaEWISMtDad4feApQY+WAlaWbnjAgTomjC1wRPGY/OCI86m/niwqCl5En3hrUbwh3+2ov8h2gYxXAXtm4fBftYDRGIP9NfilvAm5/lmJzcQbOd3zcnAIpUHHvrm6GNyPYvo5XhNKVxSjpEYqa5ijvx0IIJqAJZdR3Z5Xt+Ghy0e0RBltCZhpS5XcUD8BkjpmUatzEJs6MitBfpAOM27WocipvWbwNeNdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hl8i5kv2ycpCj8V2bQU/lsTJYbU/axuYCEj/K2E8/Wc=; b=v6qNM43gc0kUQM5UBXAHBXoQ1gvo3KzuiWHHqHHenh3eoncAlKSTTJh4EVP4dokjUjQfhbw6rYEPtwDPvvPsETikgfJBNZ9Rog+fx9z1GhcLX7/f7mgrT0c7O7qDyiQatrTlkNzpdLAnoDOmUHoYrlfjeZ79qF28gnd6Ve0ydOA= Received: from AM7PR02CA0008.eurprd02.prod.outlook.com (2603:10a6:20b:100::18) by AM4PR0802MB2258.eurprd08.prod.outlook.com (2603:10a6:200:62::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 10:18:50 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::44) by AM7PR02CA0008.outlook.office365.com (2603:10a6:20b:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29 via Frontend Transport; Wed, 13 Apr 2022 10:18:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:50 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Wed, 13 Apr 2022 10:18:44 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Wed, 13 Apr 2022 10:18:36 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Wed, 13 Apr 2022 10:18:44 +0000 From: Joey Gouly <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 v3 4/4] arm64: vdso32: enable orphan handling for VDSO Date: Wed, 13 Apr 2022 11:18:32 +0100 Message-ID: <20220413101832.4594-5-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: c4fca150-4b6f-4daa-b7fa-08da1d370662 X-MS-TrafficTypeDiagnostic: AM4PR0802MB2258:EE_|DB5EUR03FT038:EE_|DB9PR08MB7769:EE_ X-Microsoft-Antispam-PRVS: <DB9PR08MB7769364232C45241CE87E64694EC9@DB9PR08MB7769.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: it2Cn8SyEXi5mh/2zsTHKoUzdi1NwvV8UE6FDCmt/Uep50bXsz9k2QkWIgCHVUUpDbJKXjnr4kAaGBKcqP/tDhqjx5zMsRfiJ82zQABIuwv4iCDrFZ2OiybXVl/JK/QsVvwiegJaRr4xSDmZSOkoVX4NUdBfXvPTvwTYn/Dr6r7aysYyycktTUW+0Mc2SXNxrK228tNeohxESdMdXs9YTOC9iIyn/dQfXs/A94ezl11TY5GBKaWugLiu+NquK+kC0/6ZUgCxp03g9hvoO0tSF3JrWpMCrwTjH9ZYNHdeeJMTyl6m+cv1CBL9pCMGrZDU6j5ALETYKFvdP4V7XgdZhHGF0sDCn3w327nPHMIm9sm4iHMQmE6BYUTUdBzu7vc9GSP2+xHiG63h/p0FG4rDhJNwVTIXZiBFrcpKhf+Ir0sp0FT46W9B3URTzCAaVbisrevfBSeVV9cwQbF6VZbGTjcB7fUAq6Zi8oOcia1dmZGIv4q0dYNjYCyOrLjAT1Tf1bf6xgPdNUW+CB1g+L3+TFYSGRnroAxVlsggDudumW2cVUSC0hHPNc4ase5M8stQMJi+4ClYWM4HEWAenjaW5fs54ZpSm/GW2cfKuEoX6pBIot8FWLs9pbEJTLIzlkucUkP7wy3hk32YR5T/66k2p9Oa5oJw07P5idlL0oquFp8HsW6EPzy1lUAtxtCBzPgHLvjDJxtkMvJniu+rjgGE3A== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(356005)(26005)(86362001)(498600001)(186003)(36860700001)(6916009)(54906003)(81166007)(44832011)(4326008)(8676002)(70586007)(5660300002)(70206006)(8936002)(426003)(336012)(1076003)(2616005)(47076005)(40460700003)(6666004)(2906002)(7696005)(36756003)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2258 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9ad83a14-7118-4ef7-efd3-08da1d370137 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W7JzWnDzSzcrCHYrlolDf3mbskcgMZAPUl0Ch2yNcaYr4Cn/8CGa7ZhOfChP+WojErmEGqQRwwGKLJ9jYmvtj8o32+ZHQETI6DdOCiHqtOORIbuPogqy3HViifSyGcZMaJmaXzTS3XXUZRoQLkv6G1kKO1gJ7VNaVxvUjbho7VUB+00DhgEDKXAVX5RymnCut4oiqmpEnPOrlNpesHPytSfhNGasclMF75BXAuOB9ZTHREj/sdF7b36obn9CkFsKvUSBghkp6lzBoLi0RdgDCI0celTyEOAhhByefnLPhnc/7gnOL8Xa+xrDZS3Wrmh5uzU/zORJu9X+XNYqOEql+doR3PybJEB5BKC1rlvuBSx0+DVs6fGH+j0JNBgFJjJTdhISbnkRtoM+MAbNw1w1RKUdeeXbIWssV2P4alap1oz3lPIYQHjcchBV8NQ0qBF7MXU6db/n0RzN3VC8rw+zGssLxAMM56kByqAhtwLNCSe8ysvO9Yqf6ffO99e75hm/gnpx7VNeKN8CQ1jjIOwGDtTsNJFWM7/WOuhKIY3eWaz/22vuv+CF+/2EbrYSP9Hg7Brys8IlKzH6Gzc5QQPc+OHCUupxVNsSsZau/I08KejGTs/CNXDmIK/Y5YbwKX9GNu4Y0osQTNrIUF8PeRXQM7Nn7lVTQ2eyr0dJANrdNb8VAbdoElzvti5MW8aFSGyZ X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(70586007)(82310400005)(86362001)(54906003)(26005)(8676002)(70206006)(426003)(1076003)(6666004)(36860700001)(36756003)(4326008)(44832011)(2906002)(316002)(5660300002)(47076005)(2616005)(81166007)(336012)(186003)(8936002)(508600001)(7696005)(6916009)(107886003)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:59.3886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4fca150-4b6f-4daa-b7fa-08da1d370662 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7769 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031905_950658_9EF085C6 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <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/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
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 <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/vdso32/Makefile | 1 + 1 file changed, 1 insertion(+)