]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Set HAVE_EFFICIENT_UNALIGNED_ACCESS for x86
authorBenjamin Berg <benjamin.berg@intel.com>
Fri, 13 Sep 2024 13:44:42 +0000 (15:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 10 Oct 2024 10:02:04 +0000 (12:02 +0200)
The x86 port of UM has efficient unaligned access. Set the option as it
is appropriate and will e.g. cause UBSAN to not enable unaligned memory
access checking by default.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240913134442.967599-6-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/x86/um/Kconfig

index 186f13268401bd097246b9e11854c2518f4ea76c..dc56c608ce6976fad147af79b47d61d57666ff7b 100644 (file)
@@ -10,6 +10,7 @@ config UML_X86
        def_bool y
        select ARCH_BINFMT_ELF_EXTRA_PHDRS if X86_32
        select DCACHE_WORD_ACCESS
+       select HAVE_EFFICIENT_UNALIGNED_ACCESS
 
 config 64BIT
        bool "64-bit kernel" if "$(SUBARCH)" = "x86"