From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp03.apple.com (ma1-aaemail-dr-lapp03.apple.com [17.171.2.72]) by mx.groups.io with SMTP id smtpd.web10.8489.1598488424543816736 for ; Wed, 26 Aug 2020 17:33:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=TB/a+9QE; spf=pass (domain: apple.com, ip: 17.171.2.72, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp03.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp03.apple.com (8.16.0.42/8.16.0.42) with SMTP id 07R0XYo1006434 for ; Wed, 26 Aug 2020 17:33:42 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : content-type : content-transfer-encoding : mime-version : subject : message-id : date : to; s=20180706; bh=a5ntj0xugqwFtJGIZ3QCqGH54jex2m7CHulLQejTUjg=; b=TB/a+9QEVXrEwwpu3AQ1kUHvfxhZiyvOOamJHplRoO00KWDNYIyJ1YIdguGqbbgpIdNi dAnOEu7fp0Io/Pjjf67e9fzFxEc0x/6/G9xGw+YXDhw1hHeIZG+tJKLNPCPXfeses1fN lMAMS+QDgH7AIt1F7QPBiB+LymwzCTGWgFEs2qJMUUGJOwy9egoZGLVw8A/EQDrcrpGT NKFKMkS+FhQSK2Iy4ZZf4jSVjlA2Tz8FDsL1S9SdSq6g5zOCeYl4fKY+kf7glaM2tO+4 OQH5sNpv47mGwfKAT6Melvsk4hbJ+slvNRvQ2B3l0cZwtTm3EbAexIwpHyWRhMtshqbG vw== Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by ma1-aaemail-dr-lapp03.apple.com with ESMTP id 3332bux3ck-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 26 Aug 2020 17:33:42 -0700 Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPS id <0QFP0013A5K5VL00@rn-mailsvcp-mta-lapp02.rno.apple.com> for devel@edk2.groups.io; Wed, 26 Aug 2020 17:33:41 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) id <0QFP0100059I3N00@rn-mailsvcp-mmp-lapp02.rno.apple.com> for devel@edk2.groups.io; Wed, 26 Aug 2020 17:33:41 -0700 (PDT) X-Va-A: X-Va-T-CD: 5975dd1eaec8696b379f33739df9e0a8 X-Va-E-CD: ceb3a73bbede90a0793f8d1764e0950b X-Va-R-CD: 9b7a5d5b90db129df8a41b77cfdfa8ea X-Va-CD: 0 X-Va-ID: c6b0ac68-cec8-48e6-8c5d-605ed5a9d4f1 X-V-A: X-V-T-CD: 5975dd1eaec8696b379f33739df9e0a8 X-V-E-CD: ceb3a73bbede90a0793f8d1764e0950b X-V-R-CD: 9b7a5d5b90db129df8a41b77cfdfa8ea X-V-CD: 0 X-V-ID: b5764418-4325-4a67-a931-6000fa6b2048 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-26_14:2020-08-26,2020-08-26 signatures=0 Received: from [17.235.7.129] (unknown [17.235.7.129]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPSA id <0QFP00H055K50700@rn-mailsvcp-mmp-lapp02.rno.apple.com> for devel@edk2.groups.io; Wed, 26 Aug 2020 17:33:41 -0700 (PDT) From: "Andrew Fish" MIME-version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask and ExitBootServices Message-id: <2030C8D7-3DF6-4374-8BDF-BEC2B11344C8@apple.com> Date: Wed, 26 Aug 2020 17:33:40 -0700 To: edk2-devel-groups-io X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-26_14:2020-08-26,2020-08-26 signatures=0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable I think I might have found a case when grub calls ExitBootServices, = PcdNullPointerDetectionPropertyMask is TRUE, and grub decided to = allocate memory in the guard area=E2=80=A6. Is there any code to turn off PcdNullPointerDetectionPropertyMask at = ExitBootServices time? Seems like MemoryProtectionExitBootServicesCallback() should also turn = off PcdNullPointerDetectionPropertyMask? Thanks, Andrew Fish=