linux-stable/net/tipc
Hoang Le adc7f7c532 tipc: increase timeout in tipc_sk_enqueue()
commit f4bb62e64c upstream.

In tipc_sk_enqueue() we use hardcoded 2 jiffies to extract
socket buffer from generic queue to particular socket.
The 2 jiffies is too short in case there are other high priority
tasks get CPU cycles for multiple jiffies update. As result, no
buffer could be enqueued to particular socket.

To solve this, we switch to use constant timeout 20msecs.
Then, the function will be expired between 2 jiffies (CONFIG_100HZ)
and 20 jiffies (CONFIG_1000HZ).

Fixes: c637c10355 ("tipc: resolve race problem at unicast message reception")
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 11:45:33 +02:00
..
addr.c
addr.h
bcast.c
bcast.h
bearer.c
bearer.h
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
monitor.c
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
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
server.h
socket.c tipc: increase timeout in tipc_sk_enqueue() 2021-09-22 11:45:33 +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