Skip to content
Commit de77c3a5 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

exit: Move force_uaccess back into do_exit



With kernel threads on architectures that still have set_fs/get_fs
running as KERNEL_DS moving force_uaccess_begin does not appear safe.
Calling force_uaccess_begin is a noop on anything people care about.

Update the comment to explain why this code while looking like an
obvious candidate for moving to make_task_dead probably needs to
remain in do_exit until set_fs/get_fs are entirely removed from the
kernel.

Fixes: 05ea0424 ("exit: Move oops specific logic from do_exit into make_task_dead")
Suggested-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Link: https://lkml.kernel.org/r/YdUxGKRcSiDy8jGg@zeniv-ca.linux.org.uk


Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 912616f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment