Re: [PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-30 Thread Tejun Heo
On Sat, Oct 28, 2017 at 11:07:28AM +0800, Li Bin wrote: > When queue_work() is used in irq (not in task context), there is > a potential case that trigger NULL pointer dereference. > > worker_thread() > |-spin_lock_irq() >

Re: [PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-30 Thread Tejun Heo
On Sat, Oct 28, 2017 at 11:07:28AM +0800, Li Bin wrote: > When queue_work() is used in irq (not in task context), there is > a potential case that trigger NULL pointer dereference. > > worker_thread() > |-spin_lock_irq() >

Re: [PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-29 Thread Lai Jiangshan
On Sat, Oct 28, 2017 at 11:07 AM, Li Bin wrote: > When queue_work() is used in irq (not in task context), there is > a potential case that trigger NULL pointer dereference. > > worker_thread() >

Re: [PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-29 Thread Lai Jiangshan
On Sat, Oct 28, 2017 at 11:07 AM, Li Bin wrote: > When queue_work() is used in irq (not in task context), there is > a potential case that trigger NULL pointer dereference. > > worker_thread() > |-spin_lock_irq() >

[PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-27 Thread Li Bin
When queue_work() is used in irq (not in task context), there is a potential case that trigger NULL pointer dereference. worker_thread() |-spin_lock_irq() |-process_one_work() |-worker->current_pwq = pwq

[PATCH v2] workqueue: Fix NULL pointer dereference

2017-10-27 Thread Li Bin
When queue_work() is used in irq (not in task context), there is a potential case that trigger NULL pointer dereference. worker_thread() |-spin_lock_irq() |-process_one_work() |-worker->current_pwq = pwq