Re: [PATCH 6/6] exec: use force_uaccess_begin during exec and exit

2020-07-14 Thread Christoph Hellwig
On Tue, Jul 14, 2020 at 10:33:05PM -0500, Eric W. Biederman wrote: > Christoph Hellwig writes: > > > 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 pr

Re: [PATCH 6/6] exec: use force_uaccess_begin during exec and exit

2020-07-14 Thread Eric W. Biederman
Christoph Hellwig writes: > 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. Acked-by: "Eric W.

[PATCH 6/6] exec: use force_uaccess_begin during exec and exit

2020-07-14 Thread Christoph Hellwig
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 --- fs/exec.c |

[PATCH 6/6] exec: use force_uaccess_begin during exec and exit

2020-07-10 Thread Christoph Hellwig
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 --- fs/exec.c |