From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (EUR03-DBA-obe.outbound.protection.outlook.com [40.107.104.46]) by mx.groups.io with SMTP id smtpd.web11.12668.1684401002222824621 for ; Thu, 18 May 2023 02:10:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=XoBEANgQ; spf=pass (domain: arm.com, ip: 40.107.104.46, 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=z+94fjb0SM4RkDl7SdpvPvRqHG99IS4sTcmolxya118=; b=XoBEANgQxfcpCkqSe1bBn4lx/RDeDSaiQirjI54Ouox24ei++f89x9oKIlYsJ/OdTItJyLx559tTFn9BIxKMc08tRcP5yTLqEOAHpedaPAXRwMukU7IrcK6NxX+rSbYopZEYnssG2Gl4KRYt+ZgR7Qf7MVaaHxq0B0yySUH3uak= Received: from AS9PR06CA0329.eurprd06.prod.outlook.com (2603:10a6:20b:45b::35) by GV2PR08MB9926.eurprd08.prod.outlook.com (2603:10a6:150:c1::13) 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:53 +0000 Received: from AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45b:cafe::bf) by AS9PR06CA0329.outlook.office365.com (2603:10a6:20b:45b::35) 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:53 +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 AM7EUR03FT063.mail.protection.outlook.com (100.127.140.221) 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:53 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Thu, 18 May 2023 09:09:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 61b26035920badb3 X-CR-MTA-TID: 64aa7808 Received: from a02e394bc4a8.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 888CA4DD-65B9-468C-91AA-44726420EEDC.1; Thu, 18 May 2023 09:09:46 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a02e394bc4a8.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 May 2023 09:09:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GL856hgiel8pAU1vBqveuMhI6Ka5r8M9kGzNNOMFCNlyWoAWAFbCgd0XiBHsg6wfUp1TM4xieeauJ40eSupBvN4XLcKQHNmWeDnX+Gos8TjyhgLBsIvUhj2HLoRwVL2sxNSnzFHm0JlK3kXpiychhPZKBAZtRnTZBxtXzoL3VLTDsgYHGi5/4HubPMz8AikTzqyKXqdsT5zg9DgUTAvXBowXi4z9V0uuctO+fg2pG18hXPqG99X9cd7mtKO8JpkjcusGnCRJ5We7kzcVx1Qi+yVLm4FAuGZMn6wFCqsBe4hjLGDJGLaD1iYPUCqcgDFAABTvQxsWwAKP3iMDAeT3qA== 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=z+94fjb0SM4RkDl7SdpvPvRqHG99IS4sTcmolxya118=; b=i1PFohRw+cQlK5d0W34zmvKMS7ogkbyTUOAw2HhHBT7k2+Ibm4ZZ37HzVht5bPz7AvurI4ZORkt4HdEHO0mqLvRIOyGKpi62iUiPlp9PWfCgJ/6ypwOSUd/Bu7pVIIOcOTE1Z4qiDBrBcre/KYNIc6n0m9qmpM8d9DEFe1d43LtA/ESXJuTmHx5Gbq3GsQmX6LvDcZJw4I77bM9Ss38DC+gpi+/NsH9FvRxlYseq8S1nE+TvyEqnu/XzFsgqRY70VIeaWm/mG9GCZcPAidH0RSb8cYsEKEM0TG7PRfivWLW8n5x69OAXNNLx3eeIpp2oK403Ify4Z5BiFsk5o2nCXw== 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=z+94fjb0SM4RkDl7SdpvPvRqHG99IS4sTcmolxya118=; b=XoBEANgQxfcpCkqSe1bBn4lx/RDeDSaiQirjI54Ouox24ei++f89x9oKIlYsJ/OdTItJyLx559tTFn9BIxKMc08tRcP5yTLqEOAHpedaPAXRwMukU7IrcK6NxX+rSbYopZEYnssG2Gl4KRYt+ZgR7Qf7MVaaHxq0B0yySUH3uak= Received: from DB7PR05CA0049.eurprd05.prod.outlook.com (2603:10a6:10:2e::26) by PAWPR08MB9711.eurprd08.prod.outlook.com (2603:10a6:102:2ee::19) 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:43 +0000 Received: from DBAEUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::bd) by DB7PR05CA0049.outlook.office365.com (2603:10a6:10:2e::26) 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:42 +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:42 +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:39 +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 6/6] ArmVirtPkg: ArmVirtQemuKernel: Increase primary core stack size Date: Thu, 18 May 2023 10:09:35 +0100 Message-ID: <20230518090935.10984-7-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_|PAWPR08MB9711:EE_|AM7EUR03FT063:EE_|GV2PR08MB9926:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e2606ab-bcac-455f-6967-08db577fa459 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: oGKtv8hSb/5/uO4kJLLOjLTahXhctweeOAmA8ismwXnEgiUXTlAjc4lS4L1/SLp1iDaKawetFIMfoVgu4uLcgL57IPy6Q6fgPBGNaxRVHJa/A9j1r/7NQtD2CE8sWbR7eRlfA7FMRRArkWNy3wyYmL+UPJMhBBucZzwgTT9LNkY3dAZyfrRwO+3gIY1B5h15NBSod9zc6J1eFdNkceB/jK3OTR/N1ekozXEEL5CIWyi42dHYGIjCJhnpIxENgyUoJTibA7et7uhZ412bFppkHadIkUL1p/Y58MuJVdoj182Lve4W6noHLcgwlFR6GTkJTFc39aKicQB894sidUsaYPRAEJeVkqYnEN8KOLAKJfDPmB/SYFjC5E69nXTL3SbjKlHDzhnoAMwDsTHyYotoUBN0ED+/7taNEvwOoU8S2UCVyb1Lm/cA3S/G322+8p6phGqtmdHhV86h7P/eBTZhxyQsU/5nZMC4kIsYC7rzPLFaInJcOtwnovE5rjEtFdyNmmJAryFZ1rzT5rtpiyCBXjI4BFxnaOtlgFcCsT1GWkgD/1JusHcO8b64EFNtoLI8Q4LSvmpQBZrzMWOHB4YDwKM/D9bmKZEvFx1z+BNN7U3J0FhtIdVFcOfFLNloSvzaUm++wy+j+J+AxVV6eAqTZwwH4smySkuPexLEv2qViOaITRZcTXy9FGhS+5mjyPK6EIj62zGCjyAd+MI7PT0mvaq+298YuMtBfiM3gYMv1o/hJUxe1jKs9HW/ZWRjTNlmV8YFBJ+qbmUjgNxrvQXPVw== 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)(396003)(136003)(39860400002)(346002)(376002)(451199021)(36840700001)(46966006)(40470700004)(2906002)(478600001)(41300700001)(8676002)(8936002)(316002)(54906003)(44832011)(7696005)(6666004)(4326008)(6916009)(70586007)(70206006)(5660300002)(1076003)(40460700003)(26005)(82740400003)(356005)(186003)(83380400001)(336012)(426003)(40480700001)(47076005)(36860700001)(36756003)(81166007)(86362001)(82310400005)(2616005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9711 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2d7976b4-2c75-41d7-81e7-08db577f9deb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qG9pwVsE5QY+dFHU24mEPqKMmv6/UmmKbmhfds/Na7V1vC9dFDXg1pOxNPSIt2KhpH6rLyxpHY9he8h1OlPqwgHH6NKrM3+5Vpt9cqQrFS8sA5hCzYYiQ9uj/vGAG8IqV6zP27kz1MwvKc91YIOpRtubTiHK7WPQ6+d9ykCq+RP36QSFDl+rOeUh2TWFwYgNffw0q+6peO6TLTFRUy7O0m97hZz7jI1+fKp8qnWmSQeT3w7abRWerQXzD5PnFWFGP2edSFj/ZxCsxcTPtDD7Bc1qzx0it6DnF/4gDVWxiVtdXWXZl+9Vb/Mk1ww8lQgAZx/roAiyD/SYWZa6I49qqd5zOLkVLdlmjmyDs67tdonXEfyar2y3GzDxokj/NJpa0qTFM3/kiKMtjXL5asHc+ieoFxkxieikE5LTYLzIahimQ9BMtH4+6jWGdai3FOf2uT3Wzk2fMlfO5VcKah29niA63hl4ga6HdJPM2Z6CIO2FfSPHXbJDedSEnMaoVr5QExXvwr/QaU04zcAHEHkATgUn2IxTryz9iPnE9T3+rF17FioU3M1tmBn/+Vw0wdAfwQy5JyPcSIfi6H6/Lm7VmvcN8SD7nbYuwRyaXdiqdhZK8NDGz1wL97OvZvIaZkXWvvOkhSwUdcNcvp03qwpK7WBWiXBA/u9FMBpUc1QXlkN0C9oq+mFM1/0NBBFfTMmIC/u+nwvvYfOSAxNgSTt7ZsZkHQ4saRqa95s6NAvNVXjU1naKktafx52X6ktoKCR7 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)(376002)(136003)(396003)(346002)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(7696005)(83380400001)(36860700001)(426003)(47076005)(336012)(2616005)(478600001)(54906003)(6666004)(1076003)(186003)(44832011)(26005)(8936002)(36756003)(5660300002)(8676002)(41300700001)(40460700003)(82740400003)(6916009)(40480700001)(81166007)(82310400005)(70206006)(70586007)(4326008)(2906002)(316002)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 09:09:53.2374 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e2606ab-bcac-455f-6967-08db577fa459 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: AM7EUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9926 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/ArmVirtQemuKernel.dsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmVirtPkg/ArmVirtQemuKernel.dsc b/ArmVirtPkg/ArmVirtQemuKernel.dsc index 3cb9120e4e10551a2dc283f29b7d75fa8926a273..23b0296d8c7bc01b86a592e561b62c306d2fe018 100644 --- a/ArmVirtPkg/ArmVirtQemuKernel.dsc +++ b/ArmVirtPkg/ArmVirtQemuKernel.dsc @@ -119,7 +119,7 @@ [PcdsFixedAtBuild.common] gArmTokenSpaceGuid.PcdVFPEnabled|1 !endif - gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000 + gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x8000 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800 !if $(NETWORK_TLS_ENABLE) == TRUE -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'