Disabling SMAP/SMEP on every startup

I just installed Haiku beta5 on physical hardware (9900k + GTX 1050 Ti), and I have been getting an error about SMAP protection every time I get to the desktop. If I disable SMAP/SMEP protection from the bootloader everything works perfectly fine, but having to disable it every boot is quite a pain. There isn’t an entry in the kernel config or other places, so I’m not entirely sure how to disable it.

In short:

How could I persistently disable SMAP/SMEP every boot?

/boot/home/config/settings/kernel/drivers/kernel

I have looked in there but there isn’t an option to disable it

I would test with a nightly to check if that problem has been fixed.

1 Like

I was thinking about that but I might have to reinstall (although it only takes like 3 minutes). If it’s like Alpine Linux where you can upgrade from a non-nightly install that would be nice

You can just switch from beta5 to nightly, see the following guide.

1 Like

Or you can test it live by creating an USB key or burning an optical media.

1 Like

UNTESTED

Despite not being there, try adding disable_smep_smap true. (Notice it says smep_smap, not the other way around)

3 Likes

Now it works without me having to press space a ton of times every boot to get into the menu, thank you so much (I should report the SMAP error to the bug tracker though)