linux-stable/net
Ilya Dryomov 7d4b6fd658 libceph: fix potential hang in ceph_osdc_notify()
commit e6e2843230 upstream.

If the cluster becomes unavailable, ceph_osdc_notify() may hang even
with osd_request_timeout option set because linger_notify_finish_wait()
waits for MWatchNotify NOTIFY_COMPLETE message with no associated OSD
request in flight -- it's completely asynchronous.

Introduce an additional timeout, derived from the specified notify
timeout.  While at it, switch both waits to killable which is more
correct.

Cc: stable@vger.kernel.org
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 12:14:19 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: SCO: fix sco_conn related locking and validity issues 2023-07-27 08:57:03 +02:00
bpf
bpfilter
bridge bridge: Add extack warning when enabling STP in netns. 2023-07-27 08:56:55 +02:00
caif
can net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
ceph libceph: fix potential hang in ceph_osdc_notify() 2023-08-11 12:14:19 +02:00
core bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire 2023-08-11 12:14:15 +02:00
dcb net: dcb: choose correct policy to parse DCB_ATTR_BCN 2023-08-11 12:14:16 +02:00
dccp net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
devlink devlink: report devlink_port_type_warn source device 2023-07-27 08:56:51 +02:00
dns_resolver
dsa net: dsa: sja1105: always enable the send_meta options 2023-07-19 16:36:48 +02:00
ethernet
ethtool
handshake
hsr
ieee802154
ife
ipv4 tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen 2023-08-11 12:14:18 +02:00
ipv6 ip6mr: Fix skb_under_panic in ip6mr_cache_report() 2023-08-11 12:14:17 +02:00
iucv
kcm
key
l2tp net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
l3mdev
lapb
llc llc: Don't drop packet from non-root netns. 2023-07-27 08:57:01 +02:00
mac80211 net: move gso declarations and functions to their own files 2023-08-11 12:14:12 +02:00
mac802154
mctp
mpls net: move gso declarations and functions to their own files 2023-08-11 12:14:12 +02:00
mptcp net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
ncsi net/ncsi: change from ndo_set_mac_address to dev_set_mac_address 2023-07-23 13:54:17 +02:00
netfilter net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
netlabel
netlink netlink: Add __sock_i_ino() for __netlink_diag_dump(). 2023-07-19 16:35:38 +02:00
netrom
nfc net: nfc: Fix use-after-free caused by nfc_llcp_find_local 2023-07-19 16:35:36 +02:00
nsh net: move gso declarations and functions to their own files 2023-08-11 12:14:12 +02:00
openvswitch net: move gso declarations and functions to their own files 2023-08-11 12:14:12 +02:00
packet net: annotate data-races around sk->sk_priority 2023-08-11 12:14:13 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free 2023-08-11 12:14:15 +02:00
sctp net: move gso declarations and functions to their own files 2023-08-11 12:14:12 +02:00
smc net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
strparser
sunrpc SUNRPC: Fix UAF in svc_tcp_listen_data_ready() 2023-07-19 16:36:22 +02:00
switchdev
tipc tipc: stop tipc crypto on failure in tipc_node_create 2023-08-03 10:25:54 +02:00
tls
unix net: add missing data-race annotations around sk->sk_peek_off 2023-08-11 12:14:13 +02:00
vmw_vsock
wireless wifi: cfg80211: Fix return value in scan logic 2023-08-11 12:14:08 +02:00
x25
xdp bpf: Centralize permissions checks for all BPF map types 2023-08-11 12:14:15 +02:00
xfrm net: annotate data-races around sk->sk_mark 2023-08-11 12:14:13 +02:00
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c
sysctl_net.c