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