From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.70]) by mx.groups.io with SMTP id smtpd.web11.12664.1684400994280887644 for ; Thu, 18 May 2023 02:09:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=utkotAMs; spf=pass (domain: arm.com, ip: 40.107.22.70, mailfrom: sami.mujawar@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=mKLurZNE8sdvZ61z44rBAP/GTB+s/Rz1Mn6PnRYzXcY=; b=utkotAMsZ7S0G0FeYXRMZv4mw3byroViWaELRibPeqhHUw1+/DBdedg62Y/7pqoQ4JSOF6ld2kLqzGApld8+A8fZs8vAP0714Hi8rjSi9OZQHabVwFO5T9rytIU3iLqpkpSJ96xp/4Id23PcsgwPrtRusqQWrR17xoQ6SumPVXA= Received: from DB6PR07CA0165.eurprd07.prod.outlook.com (2603:10a6:6:43::19) by AS8PR08MB9219.eurprd08.prod.outlook.com (2603:10a6:20b:5a2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19; Thu, 18 May 2023 09:09:51 +0000 Received: from DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::d8) by DB6PR07CA0165.outlook.office365.com (2603:10a6:6:43::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.6 via Frontend Transport; Thu, 18 May 2023 09:09:50 +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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT050.mail.protection.outlook.com (100.127.142.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Thu, 18 May 2023 09:09:50 +0000 Received: ("Tessian outbound 3a01b65b5aad:v136"); Thu, 18 May 2023 09:09:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4798730df8e2518a X-CR-MTA-TID: 64aa7808 Received: from f68436d0ad73.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DBFD0252-B46A-49CF-8A69-975404CF0B0F.1; Thu, 18 May 2023 09:09:43 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f68436d0ad73.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 May 2023 09:09:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFrf15soQrJKCEcRDtlbDQtkcqZiS3cDCtVjqCm37WjEvnYzGy3bi03k05kb/Wl6Y+49HMi9oCJKqxYm7Za83rgCfL1nI2NIYdlxNina6DVpg2SKe42T3z9aT6Ny1vNgeEBFa3i+pPqYNr0V1u/pSJKYMpEjRnmxHJRMppFDvzRTlYC1qb07vRRT0eiGgf0mbxxW1OTRhLMVf3XavC+Pp2ixuS7P9UFniguP/NbgMmn2x86rrV8WLPiIb+oZcd+bGKdTYHX07CDVfuYAOMrE4cii0kRNdVP2jH3CitCxGJpF/0ZpJNtcT2LAf6FqqY0Q3fpkbfDY/kw4gpTYshsdAA== 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=mKLurZNE8sdvZ61z44rBAP/GTB+s/Rz1Mn6PnRYzXcY=; b=QLtliezZkY4ZJ56jzozsbjoJvO8xrYzkz/z6ffv4FzowuRsUlWOwOXyk5w/LQtkwlEveV+VfDEB0VuRR411mvWaYmaTR8EseV3tknzm+AUdvEYRutaUVCekwYbKCMf77hEq6OJTJ4nc7udW6PjSc/e2VmMGaiTExbXft8fIbbtanrwMTxnBmZRFcZDWZcA0d58qnVxhI5O1MBF5b5WYLlpR5MlnN4iPqtmu90QEUHngalb9Hpe3NMdAsG0f6wSQgVrwIpk7wv7a1v/DhIlukc3mqnxTMN70VFr/g7MvxsjQYeIuOWwqOa2MciF1WE/MhBal3KeKEzrzPT155BMUcRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io 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=mKLurZNE8sdvZ61z44rBAP/GTB+s/Rz1Mn6PnRYzXcY=; b=utkotAMsZ7S0G0FeYXRMZv4mw3byroViWaELRibPeqhHUw1+/DBdedg62Y/7pqoQ4JSOF6ld2kLqzGApld8+A8fZs8vAP0714Hi8rjSi9OZQHabVwFO5T9rytIU3iLqpkpSJ96xp/4Id23PcsgwPrtRusqQWrR17xoQ6SumPVXA= Received: from DB7PR05CA0048.eurprd05.prod.outlook.com (2603:10a6:10:2e::25) by AM8PR08MB6579.eurprd08.prod.outlook.com (2603:10a6:20b:356::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 09:09:41 +0000 Received: from DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::6) by DB7PR05CA0048.outlook.office365.com (2603:10a6:10:2e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.19 via Frontend Transport; Thu, 18 May 2023 09:09:41 +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; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT018.mail.protection.outlook.com (100.127.142.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.18 via Frontend Transport; Thu, 18 May 2023 09:09:41 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 18 May 2023 09:09:38 +0000 Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Thu, 18 May 2023 09:09:38 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [PATCH v1 5/6] ArmVirtPkg: Kvmtool: Increase primary core stack size Date: Thu, 18 May 2023 10:09:34 +0100 Message-ID: <20230518090935.10984-6-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20230518090935.10984-1-sami.mujawar@arm.com> References: <20230518090935.10984-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT018:EE_|AM8PR08MB6579:EE_|DBAEUR03FT050:EE_|AS8PR08MB9219:EE_ X-MS-Office365-Filtering-Correlation-Id: 8fbfff2a-0895-49fb-2a56-08db577fa2f5 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: +tPnJXzJIEJOJUZdD7X0PA3+iyh69prPBKcsjdL0msU/nUH6akNXKZADxfP/1FPFGkWOCG0uKEgKYlvEM40saJBQV8r++fSlMLDmGxb0e6IbU2ZhChen0yXy3zU6mkEOoz62mo9+b9AO9YOvyeT3BMZlySgDnv4V7+rQVH6Vz0VaCKISl57wRU7JANN1KmyLmPHCZ5iuaPsrlg2n55hR2mF439KYmTVH7DZmVt2FKzyDeez6vS5xtdTROZMxcT3pGpnuxWBYqTNsrUS2gE5YLJuEDQ+7MprfHo1hLaAeHd/H2IbdDBnFjrYF3yf5bB7l7yQNzJCCIGErL6wCpSvkwsgYz0sei6B8lwH1DGnZBXBY6WXDOzltYKLv+FWlw78NCTJ5gmq+E6tHt/tcVC9HQAePkCwxmTpXOLGfK8rkWcxbXMdqp5qSlQOAp5L3UIU42On2YV1bCxlZLmrBvAtEg0Yyvtf6H8tHr4U5ikFGZGZAp8jAigd9kuP+roJi7GB2tvTbJy0r/v1exle3NvBjs4fxq2tDt1xi9MXpwmVWwx72EpThML6uMacQTvokCWu5Ww7jwQbN6HU5uhBSZ2VhBJf8NaEoVzZ+/VA69w0zjew8VWV1ahKMRtly5oF6X91S+METXPv/tQM5VJ5TXMVCxlFk+MumcN5HweWfiWU/+FiqapiNWHhFwtWhslZGjh3aHEwNFBeQiMsYGPHUkcpv9USCy112r7nrQDvwJhdOrRrO5sHD6tjaWEZqtiQHyUEwztsJ/bJLF2EwS+kNGnBTzQ== 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:(13230028)(4636009)(39860400002)(396003)(136003)(376002)(346002)(451199021)(40470700004)(36840700001)(46966006)(82740400003)(81166007)(186003)(1076003)(336012)(356005)(2906002)(40480700001)(426003)(47076005)(2616005)(26005)(83380400001)(44832011)(8676002)(8936002)(5660300002)(6666004)(36756003)(41300700001)(4326008)(478600001)(54906003)(70586007)(7696005)(70206006)(82310400005)(6916009)(36860700001)(86362001)(40460700003)(316002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6579 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 675eb724-fcee-420a-c54c-08db577f9d6a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pRWEijoDkviDiPxjYOeHfMILNXHuNkx8yHddEX3QOqQPEhWSUYR9H7r8dq6G/FHtsATWN868LEkS4Rbk/57VSbgo2zApiICcm753gCSperIYpDa38XlbAIQHTpztBpOPM7spn6iqzh8Pjij+c3LwFNdMeTXpP9Z5E+XOC1YRFvUDri3MXR+Own6meq5GoAE6px+nRe/Try5m+PEYhLuyaK8QW40JlRZ1caT3eLZhYwF+dXlIjoZ3cFWfl0AKZQQ+l1sNuThbWQaTef3pdmqu1H+81RAn1oD7qAv08mFj1pBAz6+NpByp6+4DX32uWHjkdq8mthkDmAU8OPfWyVC0HXvFBSqv0F44WXKDdYnj64YphsJSpuaBjhA3AdryyofFOPJwgWJwYAnT9ZQ9nRJriYmaTtqT+emOHDQNQUf7Wl9pJZxDTMNKlWrPEN+og4dV94YX0B9iJz6QhU3TCA/J8osFY5Y6e0ViI8skyHPw4YzrIumVBQX1EVv44kFYAYd4brE2FXT3Q8kIF0/A3qyHztPIXrhgr3QESZi4eQ3K6rS7Q8jNBs2b2uTaPmo40Sv/qCg3D2gW+ryUoXC3GQ5jtYRrSMD4rWvnlVzjX/yn9LVLfuTIhczxKBvIT0b/BoAuFIv9A8Rrev9YS/DZ/Hk3LCKsjmEvUso61RpakeTnpPDRuQDEnXga21D8KKmzjZuE0ARHTnWdkPQSZ5ls2upHmos9FklLwZU/dEG+LxJJJRwBNj20jaFXrqUGLZIUoNQw 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:(13230028)(4636009)(39860400002)(136003)(396003)(376002)(346002)(451199021)(46966006)(40470700004)(36840700001)(7696005)(2906002)(26005)(1076003)(478600001)(41300700001)(6666004)(186003)(316002)(54906003)(336012)(426003)(2616005)(40460700003)(83380400001)(47076005)(36860700001)(40480700001)(36756003)(81166007)(44832011)(82740400003)(8676002)(82310400005)(70206006)(8936002)(4326008)(86362001)(70586007)(6916009)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 09:09:50.9340 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8fbfff2a-0895-49fb-2a56-08db577fa2f5 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: DBAEUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9219 Content-Type: text/plain The patch "f07a9df9af60 ArmVirtPkg: Enable stack guard" enabled stack overflow detection for ArmVirtPkg. Following this patch, running UEFI shell command 'dmpstore' resulted in a crash indicating a stack overflow. Invoking 'dmpstore' results in recursive calls to CascadeProcessVariables () which apparently consumes the available stack space and overflows. Therefore, increase the primary core stack size. Signed-off-by: Sami Mujawar --- ArmVirtPkg/ArmVirtKvmTool.dsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc index 4541d03d23e0d98915b3d3ada688c48d979b75d2..664a624fd2a30bb466a3df2103482e3e6c1f303a 100644 --- a/ArmVirtPkg/ArmVirtKvmTool.dsc +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc @@ -126,7 +126,7 @@ [PcdsFixedAtBuild.common] gArmTokenSpaceGuid.PcdVFPEnabled|1 !endif - gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000 + gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x8000 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800 -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'