From patchwork Mon Jul 29 14:24:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Hildebrand X-Patchwork-Id: 13745019 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 B528AC3DA61 for ; Mon, 29 Jul 2024 14:24:49 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.766791.1177309 (Exim 4.92) (envelope-from ) id 1sYRIm-0002bq-99; Mon, 29 Jul 2024 14:24:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 766791.1177309; Mon, 29 Jul 2024 14:24:40 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sYRIm-0002bj-6R; Mon, 29 Jul 2024 14:24:40 +0000 Received: by outflank-mailman (input) for mailman id 766791; Mon, 29 Jul 2024 14:24:39 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sYRIl-0002bd-Ay for xen-devel@lists.xenproject.org; Mon, 29 Jul 2024 14:24:39 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2060f.outbound.protection.outlook.com [2a01:111:f403:2414::60f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 4712b653-4db6-11ef-bc01-fd08da9f4363; Mon, 29 Jul 2024 16:24:37 +0200 (CEST) Received: from DM6PR06CA0046.namprd06.prod.outlook.com (2603:10b6:5:54::23) by SJ1PR12MB6361.namprd12.prod.outlook.com (2603:10b6:a03:455::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 14:24:30 +0000 Received: from CY4PEPF0000EE3C.namprd03.prod.outlook.com (2603:10b6:5:54:cafe::26) by DM6PR06CA0046.outlook.office365.com (2603:10b6:5:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Mon, 29 Jul 2024 14:24:29 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000EE3C.mail.protection.outlook.com (10.167.242.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Mon, 29 Jul 2024 14:24:29 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 29 Jul 2024 09:24:28 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 29 Jul 2024 09:24:28 -0500 Received: from ubuntu.mshome.net (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 29 Jul 2024 09:24:26 -0500 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 4712b653-4db6-11ef-bc01-fd08da9f4363 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OA/sbVZtZZiK76ej6AVrrEfQre6mXbqj3vYi6rk+xmiORJe3NG9swdMuqMRdw2srZFsortk3DhEiF+8DiBbYt73+RsKjTYOWigxA3WTUvymANPOlifvNCzDc2fWnupNleW7r4ntfA5Bw8yqWAzGHSmm12udQWINqfs2aX3sBpOZtj9E39dQr+ReSsnZISN/s/fxkWR5GVrjIjOFmsUchMwt95xwGo2v5VqCwgiEJPq9CC2y37MwaP/XUVsn6VtRGdS4qmAM4ccto6CBs30S6zNWiQmuuDYfNxWxN5f8j1Lmc0E2ThI18DFO0q+L9D72VZl3BWvZInBh0zLSN5uVZXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=5yeTMOahb9lxcvfHiHivc0gVIAteJro/1tGJf8GjS/g=; b=Fru9bJEPVaLEBNqjZMKYuHBjp2g5Gh9JQa4n0HggAhNrNZMOfEgV0s04T/Dt1O4RdqxEOewjh6nXFXqIxSO774gh8Tec/Oyg5cdEYMVoXoFHTw+DfgvCrGqsvegxvVWJcVTvpLsBZtyahJNl1VYBr4h97tWUM0Hu/k0EV5xnQVLMVWaDRESLCZ/8YYQaNwJxKIkhCxKNeglbuN2GKlkQZzr4ACx7Z1wmEkuXe2JmZkL3KsZTlUP2i4lnF5TVFGEz+fbbobP42LMOXwNLm8DOnAO4n8VVmVmzz4Fx3TZefhHyZq53dac53V+qgFLkjMn1Cb2rlvwo/TWo6djmJ2udIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5yeTMOahb9lxcvfHiHivc0gVIAteJro/1tGJf8GjS/g=; b=vbi1dnaOmlTvf9UQF7xs/3zgTfGXz5cfv/pTjG/uCqcTC24Fnla6MtuClHJhJR0BmbArbq997A8E1VcjX+1m2Q1/Aqz6CQRG/7o/mH4ZqhX6U3Zh+cnJDOJixilw+ixoSIzpFWsNcjfVTBwVcCr4ti9501q8jb4Lb0Wuq36nN9w= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: Stewart Hildebrand To: CC: Stewart Hildebrand , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , "Volodymyr Babchuk" , "Daniel P. Smith" , Dario Faggioli , "Juergen Gross" , George Dunlap Subject: [PATCH 0/3] Stack checking on Arm Date: Mon, 29 Jul 2024 10:24:14 -0400 Message-ID: <20240729142421.137283-1-stewart.hildebrand@amd.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE3C:EE_|SJ1PR12MB6361:EE_ X-MS-Office365-Filtering-Correlation-Id: 64d7997b-1284-42da-e7a7-08dcafda282e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?eLSHwiVPH3vh12tIE6H4JYWtrLVo9gh?= =?utf-8?q?JG6x1lQ55All7Uar54MqCYznJ08U3o54zxE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ieuIKAcYCDDG83g6Hs1Rghw?= =?utf-8?q?cvEpEf+dVdYMi7Bsi3RcDPPvcH4XPxmuNoUaVNhcdEdOuFu20jj3is96GLbAyHjay?= =?utf-8?q?gaS9dhYwB2Wu/KwbS06DGHAOp94OGjQofcQwEe/izn6ZMNUozkJnf4x+Tov8mZ3Nl?= =?utf-8?q?D8PrTrSflpr6UaBquE/QiRyM2sqmjYcUGT11/P0hY7iGL7aKbFiFINz4ELhXYQp6l?= =?utf-8?q?AXJascHT/uuEFXR/iHLwY8Z7gF4QUJE4u02YXhemlIxeqGYZJsLCIsnANCWlOjq+D?= =?utf-8?q?VCg+BU3HgNFhCkIUVl+7lC12CSZ3ITiMIse/sSnYE6qLd0iYyGm74LDj+CwmsJJax?= =?utf-8?q?igwu20Pe+QE2V72ouzTEMoyYuVRnFa5rBiAmgIPWKZoQ/rVzI8RGiNwDYUZ2WyLMX?= =?utf-8?q?SD3t076ikFGD4faiubwHEoOqnxdS0WgTw73fv0ibkRpcogY5nWtfkw56UC1uDiEa7?= =?utf-8?q?en3vuFepqa5?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 14:24:29.0411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64d7997b-1284-42da-e7a7-08dcafda282e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE3C.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6361 This series introduces stack check instrumentation on Arm. This is helpful for safety certification efforts. I'm sending this in an RFC state because I wanted to gather opinions on the approach of using -finstrument-functions. Stewart Hildebrand (3): xen: add no_instrument_function attributes xen: silence maybe-unitialized warning xen/arm: stack check instrumentation xen/arch/arm/arch.mk | 1 + xen/arch/arm/arm64/head.S | 4 +++ xen/arch/arm/domain.c | 3 ++ xen/arch/arm/include/asm/arm64/cmpxchg.h | 4 +++ xen/arch/arm/include/asm/arm64/sve.h | 1 + xen/arch/arm/include/asm/atomic.h | 2 ++ xen/arch/arm/include/asm/guest_atomics.h | 1 + xen/arch/arm/include/asm/page.h | 2 ++ xen/arch/arm/include/asm/traps.h | 8 +++++ xen/arch/arm/setup.c | 4 +++ xen/arch/arm/smpboot.c | 3 ++ xen/arch/arm/traps.c | 45 ++++++++++++++++++++++++ xen/common/sched/cpupool.c | 1 + xen/include/xsm/dummy.h | 1 + 14 files changed, 80 insertions(+) base-commit: b25b28ede1cba43eda1e0b84ad967683b8196847