> > > > So when I cherry-pick 67a9108 "x86/efi: Build our own page table > > structures", the built kernel stops booting. > > Yeah, figures. At least that's less surprising that the linker script > change causing your machine to stop booting. Ok > > > > > Attached the dmesg of a good kernel boot as requested by Matt. > > Can you confirm that CONFIG_DEBUG_WX isn't enabled in the .config you I have run with both CONFIG_DEBUG_WX=y and #CONFIG_DEBUG_WX is not set. But with both, "x86/efi: Build our own page table structures", the kernel stops booting. > used to test tip? Because the dmesg you attached shows that it is > enabled, but it wasn't enabled in the .config you attached in the > beginning of this thread. > > Was it disabled when you tested commit 67a9108? > > Could you try the following patch on top of commit c9f2a9a ("x86/efi: > Hoist page table switching code into efi_call_virt()")? Be sure to > enable CONFIG_EFI_PGT_DUMP and send me the output of dmesg. Unfortunately even with your below patch on top of c9f2a9a ("x86/efi: Hoist page table switching code into efi_call_virt()" also fails to boot with and without CONFIG_DEBUG_WX=y. I have added CONFIG_EFI_PGT_DUMP. Here is the dmesg with CONFIG_DEBUG_WX=y. and CONFIG_EFI_PGT_DUMP=y on top of c9f2a9a ("x86/efi: Hoist page table switching code into efi_call_virt()" (just in case if it helps) -- Thanks and Regards Srikar Dronamraju