]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commita8bab5f32a16ea266afaae85e0b64427a1adb3f3
tree0229bb58bb7102ee3de67090f5846650bb71c97c
parent05231d677e7c8a88e3887a02bf6566086e16b59a
tipc: check group dests after tipc_wait_for_cond()

BugLink: https://bugs.launchpad.net/bugs/1837257
[ Upstream commit 3c6306d44082ef007a258ae1b86ea58e6974ee3f ]

Similar to commit 143ece654f9f ("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: 75da2163dbb6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/tipc/socket.c