Re: [PATCH resend v3 2/2] exec: Broadly lock nascent mm until setup_arg_pages()

2020-11-02 Thread Jann Horn
On Tue, Oct 20, 2020 at 9:15 PM Jason Gunthorpe wrote: > On Sat, Oct 17, 2020 at 12:57:13AM +0200, Jann Horn wrote: > > @@ -1545,6 +1532,18 @@ void setup_new_exec(struct linux_binprm * bprm) > > me->mm->task_size = TASK_SIZE; > > mutex_unlock(&me->signal->exec_update_mutex); > >

Re: [PATCH resend v3 2/2] exec: Broadly lock nascent mm until setup_arg_pages()

2020-10-20 Thread Jason Gunthorpe
On Sat, Oct 17, 2020 at 12:57:13AM +0200, Jann Horn wrote: > @@ -374,17 +366,12 @@ static int bprm_mm_init(struct linux_binprm *bprm) > task_unlock(current->group_leader); > > err = __bprm_mm_init(bprm); > - if (err) > - goto err; > - > - return 0; > - > -err: > -