From: "Marvin Häuser" <mhaeuser@posteo.de>
To: devel@edk2.groups.io, pedro.falcato@gmail.com
Subject: Re: [edk2-devel] Question about UEFI, AddressSanitizer and MMU mappings
Date: Fri, 25 Mar 2022 09:07:43 +0000 [thread overview]
Message-ID: <765AD9BF-54CE-4161-B7D8-BF55A333975F@posteo.de> (raw)
In-Reply-To: <CAKbZUD0McHc7-n5OCM5Z8UgT5fWtBgrJcioqzmwpVRK2My+4YA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
Hey Pedro,
ASan is somewhat listed for „LLVM Optimizations“.
A quick and dirty reference for UEFI UBSan can be found here: https://github.com/acidanthera/OpenCorePkg/tree/master/Library/OcGuardLib
I don’t think you need to strictly adhere to the UEFI spec for debug tooling. I cannot check the code now, but I can imagine things like ConvertPointer() will not be happy about non-identity-mapping OOTB. But the issues I can think of should be fairly easy to resolve.
Best regards,
Marvin
> On 24. Mar 2022, at 23:32, Pedro Falcato <pedro.falcato@gmail.com> wrote:
>
>
> Hi!
>
> I've been thinking about adding sanitizer support (UBSan and KASAN), like coreboot already has, to the wiki's Tasks for the upcoming GSoC, but I'm a bit confused by something.
> Is there anything in the UEFI spec that stops us from doing non-identity memory mappings? I know it specifies the need for the identity mappings (in the architectures where it requires the MMU being enabled), but nowhere do I see anything about the other parts of the address space.
> Of course, UEFI supporting AddressSanitizer would be kind of dependent on fancier memory mappings.
>
> Thanks,
> Pedro
>
[-- Attachment #2: Type: text/html, Size: 1933 bytes --]
next prev parent reply other threads:[~2022-03-25 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-24 22:32 Question about UEFI, AddressSanitizer and MMU mappings Pedro Falcato
2022-03-25 9:07 ` Marvin Häuser [this message]
2022-03-25 18:42 ` [edk2-devel] " Andrew Fish
2022-03-25 20:47 ` Pedro Falcato
2022-03-26 18:30 ` Vitaly Cheptsov
2022-03-28 11:32 ` Steven Shi
2022-03-28 16:30 ` Pedro Falcato
2022-03-29 11:58 ` Steven Shi
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=765AD9BF-54CE-4161-B7D8-BF55A333975F@posteo.de \
--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