[PATCH v2 18/18] uaccess: drop maining CONFIG_SET_FS users
Sergey Matyukevich
geomatsi at gmail.com
Fri Feb 18 21:18:03 AEDT 2022
Hi Arnd,
> From: Arnd Bergmann <arnd at arndb.de>
>
> There are no remaining callers of set_fs(), so CONFIG_SET_FS
> can be removed globally, along with the thread_info field and
> any references to it.
>
> This turns access_ok() into a cheaper check against TASK_SIZE_MAX.
>
> With CONFIG_SET_FS gone, so drop all remaining references to
> set_fs()/get_fs(), mm_segment_t and uaccess_kernel().
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Tested-by: Sergey Matyukevich <sergey.matyukevich at synopsys.com> # for arc changes
Regards,
Sergey
More information about the Linuxppc-dev
mailing list