Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I tested this patch on the nigeria-sp7 in the Kitchener office, and it resolves an exception that originally took place during the loader stage.
| stand/efi/loader/arch/amd64/elf64_freebsd.c | ||
|---|---|---|
| 114 | The trampoline stack is located at the same page as code. So for EfiLoaderCode, could it be that some fw would deny the write? | |
| stand/efi/loader/arch/amd64/elf64_freebsd.c | ||
|---|---|---|
| 114 | I am not certain, but believe that we will get only RWX or RW from AllocatePages for code or data. It may happen for PE image sections but not for allocations, I think. If this is a concern we'd need to split into two allocations I suppose. Or EFI_MEMORY_ATTRIBUTE_PROTOCOL | |
So you can't allocate pages for code read only... you've got to write to them sometime and there's no interface to change the mapping.
Oh! That's shiny. I'll have to try that out... While sharing the stack and trampoline code is super-old-school, I know that some uses of that cause security problems... So far none here, but we'll keep this in mind if something pops up or I get a bunch of time to test it, etc, which I might have later in the year.