From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.243]) by mx.groups.io with SMTP id smtpd.web10.9537.1598492334326292499 for ; Wed, 26 Aug 2020 18:38:54 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.243, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 27 Aug 2020 09:38:45 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , References: <2030C8D7-3DF6-4374-8BDF-BEC2B11344C8@apple.com> In-Reply-To: <2030C8D7-3DF6-4374-8BDF-BEC2B11344C8@apple.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gZ0VmaU1kZU1vZHVsZVBrZ1Rva2VuU3BhY2VHdWlkLlBjZE51bGxQb2ludGVyRGV0ZWN0aW9uUHJvcGVydHlNYXNrIGFuZCBFeGl0Qm9vdFNlcnZpY2Vz?= Date: Thu, 27 Aug 2020 09:38:47 +0800 Message-ID: <003001d67c12$cf25b9e0$6d712da0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFmgfj6FR58qV/yOfpH9/AqGCV47KorIHnA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Fish: If PcdNullPointerDetectionPropertyMask BIT7 is set, it will be disabled = on EndOfDxe. Do you mean to always turn off it on ExitBootServices? But, af= ter ExitBootSerivces, there should be no memory allocation.=20 Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+64665+4905953+8761045@groups.i= o > =E4=BB=A3=E8=A1=A8 Andrew= Fish > via groups.io > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B48=E6=9C=8827=E6=97=A5= 8:34 > =E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io > =E4=B8=BB=E9=A2=98: [edk2-devel] > gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask > and ExitBootServices >=20 > I think I might have found a case when grub calls ExitBootServices, > PcdNullPointerDetectionPropertyMask is TRUE, and grub decided to allocat= e > memory in the guard area=E2=80=A6. >=20 > Is there any code to turn off PcdNullPointerDetectionPropertyMask at > ExitBootServices time? >=20 > Seems like MemoryProtectionExitBootServicesCallback() should also turn o= ff > PcdNullPointerDetectionPropertyMask? >=20 > Thanks, >=20 > Andrew Fish >=20