Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OvmfPkg/X64: add opt/org.tianocore/UninstallMemAttrProtocol support #10667

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kraxel
Copy link
Member

@kraxel kraxel commented Jan 24, 2025

Add support for opt/org.tianocore/UninstallMemAttrProtocol, to allow
turning off EFI_MEMORY_ATTRIBUTE_PROTOCOL, simliar to ArmVirtPkg.

Signed-off-by: Gerd Hoffmann [email protected]

rant

I hate to do this, but things are breaking left and right. This time
it is not shim, 15.8 works fine and almost everyone has rolled out
updates meanwhile. But now grub gets the NX stuff wrong, and following
that the linux kernel efi stub pagefaults.

Apparently it happens due something in the huge pile of distro
downstream patches doing some stupid legacy x86 linux things.

Vanilla 2.12 grub is doing fine.
aarch64 is doing fine too.
Even chainloader $vmlinuz works.
Only linux $vmlinux on x64 distro builds explodes ...

Add support for opt/org.tianocore/UninstallMemAttrProtocol, to allow
turning off EFI_MEMORY_ATTRIBUTE_PROTOCOL, simliar to ArmVirtPkg.

Signed-off-by: Gerd Hoffmann <[email protected]>
@kraxel kraxel marked this pull request as ready for review January 24, 2025 12:14
@ardbiesheuvel
Copy link
Member

Is there a bug report about this for GRUB?

@kraxel
Copy link
Member Author

kraxel commented Jan 24, 2025

Is there a bug report about this for GRUB?

https://issues.redhat.com/browse/RHEL-74341

Note it's not limited to redhat, I've seen suse and debian builds fail too on a quick test. Probably because the distros copy broken patches from each other due to grub upstreaming being slow.

@ardbiesheuvel
Copy link
Member

I'll consider this once this is fully diagnosed and fixed on the distro side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants