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


Groups > linux.kernel > #1505478

Re: [PATCH 2/2] sched: do not call workqueue sleep hook if task is already dead

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] sched: do not call workqueue sleep hook if task is already dead
Date 2016-10-21 07:50 +0200
Message-ID <suASm-1k5-11@gated-at.bofh.it> (permalink)
References <sjS6e-2q3-7@gated-at.bofh.it> <sjS6e-2q3-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Sep 21, 2016 at 05:43:50PM +0200, Roman Pen wrote:
> If panic_on_oops is not set and oops happens inside workqueue kthread,
> kernel kills this kthread.  Current patch fixes recursive GPF which
> happens in that case with the following stack:


> The root cause is that zeroed task->vfork_done member is accessed from
> wq_worker_sleeping() hook. 

This is the kthread_data() -> to_kthread() thing? Could've done with
spelling out, now you had me searching all over :/


Urgh what a mess..

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 2/2] sched: do not call workqueue sleep hook if task is  already dead Peter Zijlstra <peterz@infradead.org> - 2016-10-21 07:50 +0200

csiph-web