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

2020-09-04 Thread Jon Maloy
On 9/4/20 4:25 AM, 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 work item but

[tipc-discussion] [net-next v3] 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 above work item but either any scheduled work. This has turned out to be overkill