summaryrefslogtreecommitdiff
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-03 17:22:35 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-09-09 05:21:32 +0300
commit5e6e9852d6f76e01b2e6803c74258afa5b432bc5 (patch)
tree3b5f33348ea6302f3d6878f1c96e1631c4df9b0f /arch/riscv/Kconfig
parent36e2c7421f02a22f71c9283e55fdb672a9eb58e7 (diff)
downloadlinux-5e6e9852d6f76e01b2e6803c74258afa5b432bc5.tar.xz
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 7b5905529146..07d53044013e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -86,6 +86,7 @@ config RISCV
select SPARSE_IRQ
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
+ select SET_FS
config ARCH_MMAP_RND_BITS_MIN
default 18 if 64BIT