Re: [Patch net] tipc: check tsk->group in tipc_wait_for_cond()

2018-12-14 Thread David Miller
From: Cong Wang Date: Tue, 11 Dec 2018 21:43:51 -0800 > tipc_wait_for_cond() drops socket lock before going to sleep, > but tsk->group could be freed right after that release_sock(). > So we have to re-check and reload tsk->group after it wakes up. > > After this patch, tipc_wait_for_cond() retu

Re: [Patch net] tipc: check tsk->group in tipc_wait_for_cond()

2018-12-12 Thread Ying Xue
On 12/12/18 1:43 PM, Cong Wang wrote: > tipc_wait_for_cond() drops socket lock before going to sleep, > but tsk->group could be freed right after that release_sock(). > So we have to re-check and reload tsk->group after it wakes up. > > After this patch, tipc_wait_for_cond() returns -ERESTARTSYS w

[Patch net] tipc: check tsk->group in tipc_wait_for_cond()

2018-12-11 Thread Cong Wang
tipc_wait_for_cond() drops socket lock before going to sleep, but tsk->group could be freed right after that release_sock(). So we have to re-check and reload tsk->group after it wakes up. After this patch, tipc_wait_for_cond() returns -ERESTARTSYS when tsk->group is NULL, instead of continuing wi