linux-stable/net/tipc
Hoang Le cf76aa1aab tipc: fix sleeping in tipc accept routine
[ Upstream commit d237a7f117 ]

The release_sock() is blocking function, it would change the state
after sleeping. In order to evaluate the stated condition outside
the socket lock context, switch to use wait_woken() instead.

Fixes: 6398e23cdb ("tipc: standardize accept routine")
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-04 12:22:16 +02:00
..
addr.c
addr.h
bcast.c tipc: correct initialization of skb list 2017-10-08 21:13:23 -07:00
bcast.h
bearer.c tipc: error path leak fixes in tipc_enable_bearer() 2018-03-03 10:24:30 +01:00
bearer.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-09-01 17:42:05 -07:00
core.c tipc: fix use-after-free in tipc_bcast_get_mode 2020-11-10 10:29:02 +01:00
core.h
discover.c
discover.h
eth_media.c
ib_media.c
Kconfig
link.c tipc: fix NULL deref in tipc_link_xmit() 2021-01-23 15:48:47 +01:00
link.h
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
monitor.c tipc: fix infinite loop when dumping link monitor summary 2018-06-21 04:02:43 +09:00
monitor.h
msg.c tipc: skb_linearize the head skb when reassembling msgs 2021-06-03 08:36:19 +02:00
msg.h
name_distr.c tipc: add NULL pointer check before calling kfree_rcu 2019-09-19 09:08:02 +02:00
name_distr.h
name_table.c
name_table.h
net.c
net.h
netlink.c tipc: add policy for TIPC_NLA_NET_ADDR 2018-04-29 11:33:12 +02:00
netlink.h
netlink_compat.c tipc: convert dest node's address to network order 2021-05-22 10:57:35 +02:00
node.c tipc: tipc clang warning 2020-01-27 14:46:27 +01:00
node.h
server.c tipc: fix memory leak in tipc_accept_from_sock() 2017-12-17 15:07:56 +01:00
server.h
socket.c tipc: fix sleeping in tipc accept routine 2021-08-04 12:22:16 +02:00
socket.h
subscr.c tipc: fix modprobe tipc failed after switch order of device registration 2019-06-09 09:18:12 +02:00
subscr.h tipc: fix modprobe tipc failed after switch order of device registration 2019-06-09 09:18:12 +02:00
sysctl.c tipc: set sysctl_tipc_rmem and named_timeout right range 2020-01-27 14:46:29 +01:00
udp_media.c net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup 2020-05-20 08:17:02 +02:00
udp_media.h