@duht I applied the patch posted, as I tested disabling in a normal way with "scripts/config --disable CONFIG_PER_VMA_LOCK", but when compilation starts it's enabled automatically again. That's why I suposed patch was the right way.
I'll wait a bit until the discussion goes a little further and look for a better patch.
Edit: Finally I added the same patch but v4 (I didn't see it last time) https://lore.kernel.org/lkml/20230706011400.2949242-2-surenb@google.com/T/#md6ecb2cb14e14276e2dc03157d1b2bb255cb77e7
Check if this workaround works for you.
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: