From: "Oliver Smith-Denny" <osde@linux.microsoft.com>
To: devel@edk2.groups.io, rebecca@os.amperecomputing.com
Cc: Leif Lindholm <quic_llindhol@quicinc.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Jian J Wang <jian.j.wang@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Dandan Bi <dandan.bi@intel.com>
Subject: Re: [edk2-devel] AArch64 with HeapGuard: page allocations wrongly aligned
Date: Mon, 5 Feb 2024 09:51:11 -0800 [thread overview]
Message-ID: <6fdac41e-87b9-4f88-a62c-43f222a933ae@linux.microsoft.com> (raw)
In-Reply-To: <0a32e2fa-aae5-490f-9018-18f8b5133c33@os.amperecomputing.com>
On 2/5/2024 9:22 AM, Rebecca Cran via groups.io wrote:
> On 2/2/2024 5:59 PM, Oliver Smith-Denny wrote:
>
>> Ok, got sidetracked, but got back to this. Rebecca, can you create a
>> bugzilla for this and try this patch:
>>
>> https://github.com/tianocore/edk2/pull/5339.
>>
>> I want to get some feedback on it and your testing before I send out a
>> patch for it. However, it did fix my repro case where I was failing to
>> free runtime memory with page guard enabled, so I believe it should fix
>> your case.
>>
>> I need to fix some minor things like patch check, etc. I also did my
>> testing on a slightly old version of master, so may need a minor touch
>> up.
>
> I've created https://bugzilla.tianocore.org/show_bug.cgi?id=4674 .
>
> I cherry-picked your commit into my tree but unfortunately I now get a
> crash earlier:
>
> Loading driver at 0x000F3AA0000 EntryPoint=0x000F3AB1514
> StatusCodeHandlerRuntimeDxe.efi
> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF F3BFEFD0
> ProtectUefiImageCommon - 0xF3CA0E98
> - 0x00000000F3AA0000 - 0x0000000000030000
> ConvertPages: range F3ADF000 - F3AF0FFF covers multiple entries
> ConvertPages: range F3ADF000 - F3AEFFFF covers multiple entries
> ConvertPages: range F3ADF000 - F3AEFFFF covers multiple entries
>
>
> Synchronous Exception at 0x00000000FB8928E4
> PC 0x0000FB8928E4 (0x0000FB886000+0x0000C8E4) [ 0] DxeCore.dll
> PC 0x0000FB8A4798 (0x0000FB886000+0x0001E798) [ 0] DxeCore.dll
> PC 0x0000FB898798 (0x0000FB886000+0x00012798) [ 0] DxeCore.dll
> PC 0x0000F3AB1944 (0x0000F3AA0000+0x00011944) [ 1]
> StatusCodeHandlerRuntimeDxe.dll
> PC 0x0000FB88D8F0 (0x0000FB886000+0x000078F0) [ 2] DxeCore.dll
> PC 0x0000FB899EEC (0x0000FB886000+0x00013EEC) [ 2] DxeCore.dll
> PC 0x0000FB89123C (0x0000FB886000+0x0000B23C) [ 2] DxeCore.dll
>
Well that's a bummer :). I moved to top of tree edk2 and added
StatusCodeHandlerRuntimeDxe to the ArmVirtQemu build and I am
not seeing your crash. Do you have any PCDs set for this driver?
I am running with the HeapGuard PCDs you sent before:
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask|0x0F
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPageType|0xC00000000000FFFF
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPoolType|0xC00000000000FFFF
However, I am seeing a crash when the shell launches now, so I will
debug this. Something changed in the upstream, probably exposing a bug
in my code. Let's see if it is the same thing as you are seeing.
Thanks,
Oliver
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115124): https://edk2.groups.io/g/devel/message/115124
Mute This Topic: https://groups.io/mt/103810212/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-02-05 17:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 15:27 [edk2-devel] AArch64 with HeapGuard: page allocations wrongly aligned Rebecca Cran via groups.io
2024-01-18 16:48 ` Oliver Smith-Denny
2024-01-18 17:42 ` Rebecca Cran via groups.io
2024-01-18 18:38 ` Oliver Smith-Denny
2024-01-18 18:45 ` Rebecca Cran via groups.io
2024-01-18 19:04 ` Oliver Smith-Denny
2024-01-18 19:26 ` Rebecca Cran via groups.io
[not found] ` <17AB84FD31479E00.28523@groups.io>
2024-01-18 19:26 ` Oliver Smith-Denny
2024-01-19 16:34 ` Rebecca Cran via groups.io
2024-01-19 20:03 ` Oliver Smith-Denny
2024-01-22 22:06 ` Rebecca Cran via groups.io
2024-01-23 1:53 ` Oliver Smith-Denny
2024-01-23 2:14 ` Rebecca Cran via groups.io
2024-01-24 18:29 ` Oliver Smith-Denny
[not found] ` <17ACD713D9397BBF.18300@groups.io>
2024-02-03 0:59 ` Oliver Smith-Denny
2024-02-05 17:22 ` Rebecca Cran via groups.io
2024-02-05 17:51 ` Oliver Smith-Denny [this message]
2024-02-05 17:58 ` Rebecca Cran via groups.io
2024-02-05 20:36 ` Oliver Smith-Denny
[not found] ` <17B111E492D567BB.26550@groups.io>
2024-02-06 4:20 ` Oliver Smith-Denny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6fdac41e-87b9-4f88-a62c-43f222a933ae@linux.microsoft.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox