From: Benjamin Berg <benjamin.b...@intel.com>

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.b...@intel.com>
---
 arch/x86/um/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig
index 186f13268401..dc56c608ce69 100644
--- a/arch/x86/um/Kconfig
+++ b/arch/x86/um/Kconfig
@@ -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"
-- 
2.46.0


Reply via email to