]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: check group dests after tipc_wait_for_cond()
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 17 Dec 2018 07:25:12 +0000 (23:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 23:44:23 +0000 (15:44 -0800)
commit7f705617a3b152ac33824156bb7a35aa524b00ea
tree817d7e2f340a57554677de33e228adfe5cc7cdad
parent6055c41625b30ef24e7bdf1e022d03d1319980df
tipc: check group dests after tipc_wait_for_cond()

Similar to commit 240baf1c42b8 ("tipc: check tsk->group in tipc_wait_for_cond()")
we have to reload grp->dests too after we re-take the sock lock.
This means we need to move the dsts check after tipc_wait_for_cond()
too.

Fixes: 8aadd12a697e ("tipc: introduce communication groups")
Reported-and-tested-by: syzbot+99f20222fc5018d2b97a@syzkaller.appspotmail.com
Cc: Ying Xue <ying.xue@windriver.com>
Cc: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c