]> git.baikalelectronics.ru Git - kernel.git/commit
x86: remove address space overrides using set_fs()
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 14:22:40 +0000 (16:22 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Sep 2020 02:21:36 +0000 (22:21 -0400)
commiteb726fd3165852fdab29de7f4477e5e16c0d6f4d
treeb1399d96916177ef63b8a86bf30daceb35508959
parent5357a2957c2fe16dc1da74b9c904aeec29efdf1c
x86: remove address space overrides using set_fs()

Stop providing the possibility to override the address space using
set_fs() now that there is no need for that any more.  To properly
handle the TASK_SIZE_MAX checking for 4 vs 5-level page tables on
x86 a new alternative is introduced, which just like the one in
entry_64.S has to use the hardcoded virtual address bits to escape
the fact that TASK_SIZE_MAX isn't actually a constant when 5-level
page tables are enabled.

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>
arch/x86/Kconfig
arch/x86/ia32/ia32_aout.c
arch/x86/include/asm/processor.h
arch/x86/include/asm/thread_info.h
arch/x86/include/asm/uaccess.h
arch/x86/kernel/asm-offsets.c
arch/x86/lib/getuser.S
arch/x86/lib/putuser.S