architectures that still need to remove set_fs()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Richard Henderson <rth@xxxxxxxxxxx>, Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx>, Matt Turner <mattst88@xxxxxxxxx>, Vineet Gupta <vgupta@xxxxxxxxxx>, Guo Ren <guoren@xxxxxxxxxx>, Brian Cain <bcain@xxxxxxxxxxxxxx>, Michal Simek <monstr@xxxxxxxxx>, Nick Hu <nickhu@xxxxxxxxxxxxx>, Greentime Hu <green.hu@xxxxxxxxx>, Vincent Chen <deanbo422@xxxxxxxxx>, Dinh Nguyen <dinguyen@xxxxxxxxxx>, Jonas Bonn <jonas@xxxxxxxxxxxx>, Stefan Kristiansson <stefan.kristiansson@xxxxxxxxxxxxx>, Stafford Horne <shorne@xxxxxxxxx>, Yoshinori Sato <ysato@xxxxxxxxxxxxx>, Rich Felker <dalias@xxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Chris Zankel <chris@xxxxxxxxxx>, Max Filippov <jcmvbkbc@xxxxxxxxx>
- Subject: architectures that still need to remove set_fs()
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Tue, 18 Jan 2022 08:48:36 +0100
- Cc: linux-alpha@xxxxxxxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, linux-csky@xxxxxxxxxxxxxxx, linux-hexagon@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, openrisc@xxxxxxxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxxx
- User-agent: Mutt/1.5.17 (2007-11-01)
Hi all,
you are in this list because your architecture still implements and
uses address space overrides using set_fs(), which are deprecated and
have been removed from all mainstream architecture ports. To help
cleanup the core kernel it would be great to make progress on removing
set_fs entirely.
The following steps are required:
(1) implement the __get_kernel_nofault and __put_kernel_nofault
helper to access kernel memory without page faults, replacing
the get/put_user under set_fs(KERNEL_DS) abuse. Mips has a good
example for a trivial implementation for architectures that use
a common address space in commit 04324f44cb69
(2) remove any architecture specific use of such constructs. This
only affects ia64 and sh.
(3) stop selecting the SET_FS and remove all the set_fs-related
infrastructure. The above mips commit is a good guide once again.
Thanks!
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]