exec-use-force_uaccess_begin-during-exec-and-exit.patch removed from -mm tree
The patch titled
Subject: exec: use force_uaccess_begin during exec and exit
has been removed from the -mm tree. Its filename was
exec-use-force_uaccess_begin-during-exec-and-exit.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: exec: use force_uaccess_begin during exec and exit
Both exec and exit want to ensure that the uaccess routines actually do access user pointers. Use the newly added force_uaccess_begin helper instead of an open coded set_fs for that to prepare for kernel builds where set_fs() does not exist.
Signed-off-by Christoph Hellwig <[email protected]>
Acked-by Linus Torvalds <[email protected]>
Cc Nick Hu <[email protected]>
Cc Greentime Hu <[email protected]>
Cc Vincent Chen <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/exec.c | 7 ++++++- kernel/exit.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-)
fs/exec.c renamed from fs/exec.c~exec-use-force_uaccess_begin-during-exec-and-exit +6 -1
@@ -1402,7 +1402,12 @@ int begin_new_exec(struct linux_binprm *if (retval) goto out_unlock; -set_fs (USER_DS ); +/* +* Ensure that the uaccess routines can actually operate on userspace +* pointers: +*/ +force_uaccess_begin (); + me->flags &= ~(PF_RANDOMIZE |PF_FORKNOEXEC |PF_KTHREAD |PF_NOFREEZE |PF_NO_SETAFFINITY );flush_thread ();
kernel/exit.c renamed from kernel/exit.c~exec-use-force_uaccess_begin-during-exec-and-exit +1 -1
@@ -732,7 +732,7 @@ void __noreturn do_exit(long code)* mm_release()->clear_child_tid() from writing to a user-controlled * kernel address. */ -set_fs (USER_DS ); +force_uaccess_begin ();if (unlikely (in_atomic ())) { pr_info("note: %s[%d] exited with preempt_count %d\n",
_
Patches currently in -mm which might be from [email protected] are