From patchwork Tue May 10 09:58:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12844755 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 1FF61C433F5 for ; Tue, 10 May 2022 10:01:17 +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: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:In-Reply-To:References: List-Owner; bh=9aLGjd8LFG3rWKS7E/4VMVDSiWtg7Fpnafc8nRRZpBM=; b=XXnkprsNweQjW8 1/Ixj6vCcCk9TipEjHVzSLGBYFZah+pjEivdSrTDLh+Ss2O10gtRvXS4WQ7fWEBQpU321xjI100Ug 8+f9TaD2U3Y7ukrjNzFblCBECeDhTJ03SoynyH4/T2o728CJO3YgguYnD9Xw7E2dW9Udk6GRx+O6x 0ozKhXV5BoSXlI2Znz3dQ3ws74/lDwO5ccOc8SM0CkU71uMcX26GFCc+MQsbAKmOcb+Sf1QAdWcL2 oVhdWVJHyYb6Ul9O3zeoiWjibX/6jTEBwb+hruhcfB2JkpPXiMvQyz4cLzH1cnXaZv0CRZZYT4g5w 9GSSe0fokqOw+HSOWBdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMed-00126q-Vu; Tue, 10 May 2022 09:59:44 +0000 Received: from mail-dbaeur03on2060e.outbound.protection.outlook.com ([2a01:111:f400:fe1a::60e] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noMdr-0011XI-Cv for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 09:59:00 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=On/jo3Ei3WGO7WV3pPBXqwdwzD775WVAXQoZp5VjSnX/izh39QL309cSUSd0NNXvzyUvLjIVnQ8xNrV5pvTT8uZMMcjrNVpqSPEHxRxjrw3l/twQKWpQfFER8eiFwnaOmap83IZ5iBqA2IHbo1/3XUh5QsLPNw8A2PBjoavxsdE1xwBYnsLzlCs0yfieGSOr+EkaOGVor2rWuALAKI3eDLBxnVKrYKciIcjv0JqbI+Ok1H9LUGskRksHFiG7E1l0hDZBxfFoSFeOZHn2vseuHQzHH0I89w/eI93zMZrhG5/NysDMK4s+gTq6x03fQu8HxjMHDubWPo83VA8oz5Varw== ARC-Message-Signature: i=2; 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=B9ILbd2HNEJaDVFODdzMEPODWmPWFhOzkuuD+GBy/6A=; b=NIIa14I8RcKvUMo4Ed0HLWv9zIVIe+Ql8z5ZwoDn40NPt1mxLpT8GAeFzqxgtnpa2Ab/62BePcXUbwm+IpSaB0xwQaBwnrQnBDNFX4P6wQlYRRhZQUoJ5Udfmsc0bG+zcYxRQ8c96y3nn7CPQpy1SzFLxpNae7TtlLmZv2sR96kwbtPMbb2IKoLBtfqV0QcxgQuy3vTD2gAzHk0qLFp+WlMuIUtz3V7mTAItFTus1htuEncn/jWIeH4nQS07ns9iVbQNoG7JEDL5ocGV5vj91feWyfcBhbdzKuI0SiUTZNrqMyRf9g1pGlycTUr36zymiH80WMU/hSDTbdGKd9Oaeg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) 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=B9ILbd2HNEJaDVFODdzMEPODWmPWFhOzkuuD+GBy/6A=; b=FCVJb+kvv90pBNOLZgCBWP5KDpdpK0wwqJJgolTITBMPULb4OhGHojPdYVXKTCNcGzepf4ns/FqQyxeoEJ+d3WiIn/xlKS0jr4cm0UGvUNPoF5FQhYTEAoVICXNxCo2wrE4iMMEDr13KBON0lYhIM1R0e/0zxMLttMSRFOGkSsU= Received: from AS9PR06CA0771.eurprd06.prod.outlook.com (2603:10a6:20b:484::26) by DB9PR08MB6794.eurprd08.prod.outlook.com (2603:10a6:10:2a9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21; Tue, 10 May 2022 09:58:49 +0000 Received: from AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:484:cafe::a5) by AS9PR06CA0771.outlook.office365.com (2603:10a6:20b:484::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21 via Frontend Transport; Tue, 10 May 2022 09:58:49 +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 AM5EUR03FT022.mail.protection.outlook.com (10.152.16.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:49 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Tue, 10 May 2022 09:58:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2051329bc11cb4bf X-CR-MTA-TID: 64aa7808 Received: from f77869f7db49.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 264145C4-841E-4401-BAC4-0C493A5FB4E3.1; Tue, 10 May 2022 09:58:42 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f77869f7db49.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 10 May 2022 09:58:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T5xVVWo365iVh/hNJCBI2vYxPCcZ4dOa8XmESQ5Ot7+CiHfoxUjOtSQnGATqi5qRRJZyiP7qiS3tVH0YTFweQLTzbomF4PXERua/zT87NDsmhPe/FDoiB+0Vli4HVK/0he6Od3AYm62Vo94wFYM7Be26eRldwDxb0vvnZdZGxcI/jqqjUhhDHj9HIAe/Bo0X5Ar7ilRAyT9w/SG6oAYel2O30H3t6yUl7frYpx3z6irfO7Khq97OHIPH/yNODvyvhL4UmAFQIYty5EH6W0NYlF9QdDjG2yn8FD3MOqiEQdhWM4nXPQYtzoC2DDx8wjGaokB/P53jc8PmZDUSYW7Jyw== 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=B9ILbd2HNEJaDVFODdzMEPODWmPWFhOzkuuD+GBy/6A=; b=Di8FEUWhaSB34UrOeQlbSQzjzga2xueuZXW0PZYpVcd0K7ZZr7ToDxR6OTh8RO898gRiED1d1znHk7ZOzqs6PkJVKrQS6fA6Fj9qBMCOKjvVnZ6mD1NlJT4apmGgw7n+UYq4pLzdwxVihghKQcr1fR13dackUcv+GDcV+VMNi0Zedrm0YCJRKlwMFyN4nU1Y3HREr+AXcTuVTbBz8ZdGypu6vofjmku59GL0sA/bJDJ9Yi6DPvsWi9VHh/kGeHn8wjrY2UJPEpN8hPUAT+M+DbRhMwWwbSbKxvbCVC+JTjC+gFYKvUH3tczOrLPUw6jlFCRUUQs1pJAbgPiJLszvrw== 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=B9ILbd2HNEJaDVFODdzMEPODWmPWFhOzkuuD+GBy/6A=; b=FCVJb+kvv90pBNOLZgCBWP5KDpdpK0wwqJJgolTITBMPULb4OhGHojPdYVXKTCNcGzepf4ns/FqQyxeoEJ+d3WiIn/xlKS0jr4cm0UGvUNPoF5FQhYTEAoVICXNxCo2wrE4iMMEDr13KBON0lYhIM1R0e/0zxMLttMSRFOGkSsU= Received: from DB7PR02CA0011.eurprd02.prod.outlook.com (2603:10a6:10:52::24) by PA4PR08MB7642.eurprd08.prod.outlook.com (2603:10a6:102:260::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21; Tue, 10 May 2022 09:58:40 +0000 Received: from DBAEUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:52:cafe::52) by DB7PR02CA0011.outlook.office365.com (2603:10a6:10:52::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Tue, 10 May 2022 09:58:40 +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 DBAEUR03FT039.mail.protection.outlook.com (100.127.142.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Tue, 10 May 2022 09:58:40 +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, 10 May 2022 09:58:45 +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, 10 May 2022 09:58:44 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v5 0/4] Enable orphan-handling=warn for VDSO Date: Tue, 10 May 2022 10:58:30 +0100 Message-ID: <20220510095834.32394-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: dd8072b7-7978-49f7-2dc5-08da326bae4e X-MS-TrafficTypeDiagnostic: PA4PR08MB7642:EE_|AM5EUR03FT022:EE_|DB9PR08MB6794: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: TUjmn6Z5T2HtDUk8CtsguN4WCZSQz2bTSLS67IIejQRKxL+TXVRvIOKf9svNh8q680me3+bZqC/Cf8zpJp9pQTfwwt+UDifQ18LS/B4DDfWupWxtXEgAZaHrFFeCpcIUL+4v3l7kp2bJo4ZE7SO0g41OFPBaKHoXuxvmgnx2jHwItGOTLrj/D4BwpLv3uQ5U/490US4skK4AmOFgEkGlCmC2ZbgL9Zgzo73NoMvX9Cq6wQpbIIQcP0EhrGzfpKQHBxI226M26YNQnegfIDk1uKxX07DtGZErtKBV3YErP5TQhAW84YAo6SiafTnZC5BZwZ1uVhjKlH37ez57QaLY97ruTDwWTNdNK7n+o643hk6e/nxf0qnizP+MmgoFlaMNUA4tsCMooUZGnndalDF4eGmI+0YRTHjK1Esh9efj/9ilyBsYoXA8APCHF6kL1eaiEvFNKehlyqH4m6vRcUZ+QdJLz0B0/R8Erc8Px6zsHRs74DnenUXof9Z1+P1IrOf9xWdVYo8UY9c3D15YJGXodt5HyluwOMHYo8b3gBah/ivXU2Ri9R8zhnwVodNt1T66Nuw8o208C7Z2TcyFMm0KQgySYV4kflfvbvZ7YCiNZsuP0LFwwPAAlw+So/3ewF2Vxt1gDW9sa8sDpbl+7yBWL3rguBZenedU0icKZl8cW5+6CHrmhKcJtEfgyqBs8tSN7206Os9OGT/5hwKwDj25/TUXSLgeFyLszsUVeUFS+vK1fRTiRWEEAP9Z45gIIGGKMdNLg3HjiNG0EHuE//n3dI7jj2bIqB+aiNVFBb3Hz24= 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)(46966006)(40470700004)(4326008)(2906002)(4744005)(54906003)(70206006)(70586007)(6916009)(8676002)(336012)(426003)(47076005)(186003)(82310400005)(2616005)(36860700001)(966005)(81166007)(83380400001)(40460700003)(36756003)(356005)(6666004)(8936002)(7696005)(1076003)(26005)(508600001)(5660300002)(316002)(86362001)(44832011)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7642 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d04b6ab2-3a39-4727-e72b-08da326ba911 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0TkJ+vIHfSHme4vXZSHeaqzUIz7IZ/g+BanhwKMHbji9xFZo5JhSujf6gargHo8dp5dyRN5yi/sEnzL6GS3GO9iXoVqSSeY05fVjaqWHAIrorWbqywhTsjhcBVdvF86i1bVyw3aQ+KCObLo5idVPu6aZc0V0MMsvXgyfqErQHzIT8fiByHUoKp7cWogAq0hxT8nc5XrJk8xt48ARttFcJpPeqB6WCgd8Ae/nMjZUz7Ipr8IHWlqFDxe7DrAUIuNqCUPyZykPohXJlw/RuAvbiLy/NDufmi6e3e48LGe4s4aYNvt70VOjsc6uHt0WXrkCFyR29wyY4i1Fi6wnDtzD4jChwwPW8jh9sB1VdMK1pu2yhavvBLerj0c8cjrqPQrseGkKI4XheHSMZ8hdO7nnGGkcxlTSVCGxhj7o7S/1kp/yqL43aYQZ2rK0o4vgdPi9v5kDw7EcvH1X9+2DBE7Ua6BoUgA7VKOXTlVAhMcSRVEad+tMVXiGTjAFdSf5opPHuh8ve47qHfwR2VR2p0pqRDIev233zQ4/fyPeBF86ExxYo/i+hL0c3jPnicdTVEw3pFIUTn7LOHOzfxoCOSSyU4QA5A3R4T6Yq8tZ0hTwgXTluH4wpLuToM3w47ub/XbidcQY4l9YEHhXp7y3xh0a1MENm3TfnrLXWLQ6NzXfG/u3jd9P0YzRMJYauTNWzbrlMSb+w71qKkfVkstS+cAiJeTsibYjs9zdqLwg21MiY4rgYTOPUtH/D9ZluGdyQmlrlGeTnsfrrZsG21E7zwTMIQ== 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)(2906002)(81166007)(36860700001)(4326008)(5660300002)(8676002)(40460700003)(2616005)(508600001)(6666004)(4744005)(86362001)(7696005)(107886003)(426003)(8936002)(70586007)(70206006)(966005)(336012)(316002)(36756003)(1076003)(82310400005)(186003)(83380400001)(54906003)(6916009)(47076005)(44832011)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2022 09:58:49.3021 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd8072b7-7978-49f7-2dc5-08da326bae4e 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: AM5EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6794 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_025855_481906_4CACEE84 X-CRM114-Status: UNSURE ( 8.94 ) 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 Hi all, This small series enables the orphan-handling linker flag for the VDSO. This could catch subtle errors if features that use special sections are introduced into the VDSO implementation. Tested by running the VDSO self tests. Tested building with LLVM LLD and Binutils LD linkers. Changes from v4 [1]: - Add more sections that showed up when using binutils ld Thanks, Joey [1]: https://lore.kernel.org/linux-arm-kernel/20220414104611.17748-1-joey.gouly@arm.com/ Joey Gouly (4): arm64: vdso: put ELF related sections in the linker script arm64: vdso: enable orphan handling for VDSO arm64: vdso32: put ELF related sections in the linker script arm64: vdso32: enable orphan handling for VDSO arch/arm64/kernel/vdso/Makefile | 8 +++++++- arch/arm64/kernel/vdso/vdso.lds.S | 16 ++++++++++++++++ arch/arm64/kernel/vdso32/Makefile | 1 + arch/arm64/kernel/vdso32/vdso.lds.S | 22 +++++++++++++++++++++- 4 files changed, 45 insertions(+), 2 deletions(-)