]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
lib/Kconfig.debug: Default STRICT_DEVMEM to "y" on s390
authorDavid Hildenbrand <david@redhat.com>
Fri, 25 Oct 2024 14:14:50 +0000 (16:14 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 09:26:24 +0000 (10:26 +0100)
virtio-mem currently depends on !DEVMEM | STRICT_DEVMEM. Let's default
STRICT_DEVMEM to "y" just like we do for arm64 and x86.

There could be ways in the future to filter access to virtio-mem device
memory even without STRICT_DEVMEM, but for now let's just keep it
simple.

Tested-by: Mario Casquero <mcasquer@redhat.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Tested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20241025141453.1210600-6-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
lib/Kconfig.debug

index 7315f643817ae1021f1e4b3dd27b424f49e3f761..e7a917540e2a41ccff903e263882b701b3e87f40 100644 (file)
@@ -1905,7 +1905,7 @@ config STRICT_DEVMEM
        bool "Filter access to /dev/mem"
        depends on MMU && DEVMEM
        depends on ARCH_HAS_DEVMEM_IS_ALLOWED || GENERIC_LIB_DEVMEM_IS_ALLOWED
-       default y if PPC || X86 || ARM64
+       default y if PPC || X86 || ARM64 || S390
        help
          If this option is disabled, you allow userspace (root) access to all
          of memory, including kernel and userspace memory. Accidental