Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638862

Re: [PATCH v2] kthread: fix use-after-free if kthread fork fails

From Oleg Nesterov <oleg@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] kthread: fix use-after-free if kthread fork fails
Date 2017-05-10 16:10 +0200
Message-ID <tFAts-1IC-5@gated-at.bofh.it> (permalink)
References <tF849-77W-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/09, Vegard Nossum wrote:
>
> If a kthread forks (e.g. usermodehelper since commit 1da5c46fa965) but
> fails in copy_process() between calling dup_task_struct() and setting
> p->set_child_tid, then the value of p->set_child_tid will be inherited
> from the parent and get prematurely freed by free_kthread_struct().

Thanks,

Acked-by: Oleg Nesterov <oleg@redhat.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] kthread: fix use-after-free if kthread fork fails Vegard Nossum <vegard.nossum@oracle.com> - 2017-05-09 09:50 +0200
  Re: [PATCH v2] kthread: fix use-after-free if kthread fork fails Oleg Nesterov <oleg@redhat.com> - 2017-05-10 16:10 +0200

csiph-web