summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-05-24 08:33:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-05-24 08:33:44 -0700
commitb0a9ba13ffdb9591d468d84f26ec2cefdd7625b4 (patch)
tree1d07c5f00a65ffdc626079a5dcca9c031cfd8527 /security
parent0eb03c7e8e2a4cc3653eb5eeb2d2001182071215 (diff)
parentae1a863bcdbd6ea2abc93519a82ab5d715d5dcbc (diff)
downloadlinux-b0a9ba13ffdb9591d468d84f26ec2cefdd7625b4.tar.gz
linux-b0a9ba13ffdb9591d468d84f26ec2cefdd7625b4.tar.bz2
linux-b0a9ba13ffdb9591d468d84f26ec2cefdd7625b4.zip
Merge tag 'hardening-v6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull hardening fixes from Kees Cook: - loadpin: Prevent SECURITY_LOADPIN_ENFORCE=y without module decompression (Stephen Boyd) - ubsan: Restore dependency on ARCH_HAS_UBSAN - kunit/fortify: Fix memcmp() test to be amplitude agnostic * tag 'hardening-v6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: kunit/fortify: Fix memcmp() test to be amplitude agnostic ubsan: Restore dependency on ARCH_HAS_UBSAN loadpin: Prevent SECURITY_LOADPIN_ENFORCE=y without module decompression
Diffstat (limited to 'security')
-rw-r--r--security/loadpin/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/loadpin/Kconfig b/security/loadpin/Kconfig
index 6724eaba3d36..848f8b4a6019 100644
--- a/security/loadpin/Kconfig
+++ b/security/loadpin/Kconfig
@@ -14,6 +14,9 @@ config SECURITY_LOADPIN
config SECURITY_LOADPIN_ENFORCE
bool "Enforce LoadPin at boot"
depends on SECURITY_LOADPIN
+ # Module compression breaks LoadPin unless modules are decompressed in
+ # the kernel.
+ depends on !MODULES || (MODULE_COMPRESS_NONE || MODULE_DECOMPRESS)
help
If selected, LoadPin will enforce pinning at boot. If not
selected, it can be enabled at boot with the kernel parameter