[$] Saying goodbye to set_fs()

Post Syndicated from original https://lwn.net/Articles/832121/rss

The set_fs() function dates back to the earliest days of the Linux
kernel; it is a key part of the machinery that keeps user-space and
kernel-space memory separated from each other. It is also easy to misuse
and has been the source of various security problems over the years; kernel
developers have long wanted to be rid of it. They won’t completely get their
wish in the 5.10 kernel but, as the result of work that has been quietly
progressing for several months, the end of set_fs() will be easily
visible at that point.