Re: [edk2-devel] heap/page guard broken on aarch64

2023-07-12 Thread Oliver Smith-Denny
On 7/12/2023 6:26 AM, Gerd Hoffmann wrote: On Wed, Jul 12, 2023 at 02:03:37PM +0200, Ard Biesheuvel wrote: On Wed, 12 Jul 2023 at 10:41, Gerd Hoffmann wrote: PcdHeapGuardPageType=0x7e PcdHeapGuardPoolType=0x7e This looks like the debug 'poison' value is applied to the fre

Re: [edk2-devel] heap/page guard broken on aarch64

2023-07-12 Thread Gerd Hoffmann
On Wed, Jul 12, 2023 at 02:03:37PM +0200, Ard Biesheuvel wrote: > On Wed, 12 Jul 2023 at 10:41, Gerd Hoffmann wrote: > > > > PcdHeapGuardPageType=0x7e > > PcdHeapGuardPoolType=0x7e > This looks like the debug 'poison' value is applied to the freed guard > page before the EFI_MEMOR

Re: [edk2-devel] heap/page guard broken on aarch64

2023-07-12 Thread Ard Biesheuvel
On Wed, 12 Jul 2023 at 10:41, Gerd Hoffmann wrote: > > Hi, > > Tried to debug a bug which looks like memory corruption, turned on page > and heap guard: > > PcdHeapGuardPageType=0x7e > PcdHeapGuardPoolType=0x7e > PcdHeapGuardPropertyMask=0x03 > > With that the firmware cr

[edk2-devel] heap/page guard broken on aarch64

2023-07-12 Thread Gerd Hoffmann
Hi, Tried to debug a bug which looks like memory corruption, turned on page and heap guard: PcdHeapGuardPageType=0x7e PcdHeapGuardPoolType=0x7e PcdHeapGuardPropertyMask=0x03 With that the firmware crashes due to a page fault. Stack trace (with PCs manually mapped to fu