Commit 5e6e9852 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

uaccess: add infrastructure for kernel builds with set_fs()



Add a CONFIG_SET_FS option that is selected by architecturess that
implement set_fs, which is all of them initially.  If the option is not
set stubs for routines related to overriding the address space are
provided so that architectures can start to opt out of providing set_fs.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 36e2c742
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ config KEXEC_ELF
config HAVE_IMA_KEXEC
	bool

config SET_FS
	bool

config HOTPLUG_SMT
	bool

+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ config ALPHA
	select OLD_SIGSUSPEND
	select CPU_NO_EFFICIENT_FFS if !ALPHA_EV67
	select MMU_GATHER_NO_RANGE
	select SET_FS
	help
	  The Alpha is a 64-bit general-purpose processor designed and
	  marketed by the Digital Equipment Corporation of blessed memory,
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ config ARC
	select PCI_SYSCALL if PCI
	select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING
	select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32
	select SET_FS

config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ config ARM
	select PCI_SYSCALL if PCI
	select PERF_USE_VMALLOC
	select RTC_LIB
	select SET_FS
	select SYS_SUPPORTS_APM_EMULATION
	# Above selects are sorted alphabetically; please add new ones
	# according to that.  Thanks.
+1 −0
Original line number Diff line number Diff line
@@ -192,6 +192,7 @@ config ARM64
	select PCI_SYSCALL if PCI
	select POWER_RESET
	select POWER_SUPPLY
	select SET_FS
	select SPARSE_IRQ
	select SWIOTLB
	select SYSCTL_EXCEPTION_TRACE
Loading