RE: [net-next] tipc: fix a deadlock when flushing scheduled work

2020-09-07 Thread Hoang Huu Le
; Subject: Re: [net-next] tipc: fix a deadlock when flushing scheduled work > > On Sat, 5 Sep 2020 11:45:18 +0700 Hoang Huu Le wrote: > > In the commit fdeba99b1e58 > > ("tipc: fix use-after-free in tipc_bcast_get_mode"), we're trying > > to make sure the ti

Re: [net-next] tipc: fix a deadlock when flushing scheduled work

2020-09-06 Thread Jakub Kicinski
On Sat, 5 Sep 2020 11:45:18 +0700 Hoang Huu Le wrote: > In the commit fdeba99b1e58 > ("tipc: fix use-after-free in tipc_bcast_get_mode"), we're trying > to make sure the tipc_net_finalize_work work item finished if it > enqueued. But calling flush_scheduled_work() is not just affecting > above wor

[net-next] tipc: fix a deadlock when flushing scheduled work

2020-09-04 Thread Hoang Huu Le
In the commit fdeba99b1e58 ("tipc: fix use-after-free in tipc_bcast_get_mode"), we're trying to make sure the tipc_net_finalize_work work item finished if it enqueued. But calling flush_scheduled_work() is not just affecting above work item but either any scheduled work. This has turned out to be o