Skip to content

Commit ad81642

Browse files
committed
cleanup: added options for aarch64 alignment trap and DRM force wc
1 parent 93138d9 commit ad81642

7 files changed

Lines changed: 1019 additions & 989 deletions

File tree

arch/arm64/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,14 @@ config ARM64_TAGGED_ADDR_ABI
16941694
to system calls as pointer arguments. For details, see
16951695
Documentation/arch/arm64/tagged-address-abi.rst.
16961696

1697+
config ARM64_ALIGNMENT_FIXUPS
1698+
bool "Fix up misaligned loads and stores from userspace for 64bit code"
1699+
default n
1700+
help
1701+
Userspace may incorrectly assume that certain memory does not need
1702+
any special alignment considerations, which may result in Bus Erros.
1703+
Enable to handle these faults in the kernel.
1704+
16971705
menuconfig COMPAT
16981706
bool "Kernel support for 32-bit EL0"
16991707
depends on ARM64_4K_PAGES || EXPERT

arch/arm64/kernel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ obj-$(CONFIG_COMPAT) += sys32.o signal32.o \
3939
sys_compat.o
4040
obj-$(CONFIG_COMPAT) += sigreturn32.o
4141
obj-$(CONFIG_COMPAT_ALIGNMENT_FIXUPS) += compat_alignment.o
42+
obj-$(CONFIG_ARM64_ALIGNMENT_FIXUPS) += compat_alignment_64.o
4243
obj-$(CONFIG_KUSER_HELPERS) += kuser32.o
4344
obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o entry-ftrace.o
4445
obj-$(CONFIG_MODULES) += module.o module-plts.o

0 commit comments

Comments
 (0)