linux-stable/net
Trond Myklebust b0feb1270b Revert "SUNRPC: Fail faster on bad verifier"
commit e86fcf0820 upstream.

This reverts commit 0701214cd6.

The premise of this commit was incorrect. There are exactly 2 cases
where rpcauth_checkverf() will return an error:

1) If there was an XDR decode problem (i.e. garbage data).
2) If gss_validate() had a problem verifying the RPCSEC_GSS MIC.

In the second case, there are again 2 subcases:

a) The GSS context expires, in which case gss_validate() will force a
   new context negotiation on retry by invalidating the cred.
b) The sequence number check failed because an RPC call timed out, and
   the client retransmitted the request using a new sequence number,
   as required by RFC2203.

In neither subcase is this a fatal error.

Reported-by: Russell Cattelan <cattelan@thebarn.com>
Fixes: 0701214cd6 ("SUNRPC: Fail faster on bad verifier")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-23 11:14:33 +02:00
..
6lowpan
9p 9p: remove dead stores (variable set again without being read) 2023-07-20 19:14:50 +00:00
802
8021q Revert "vlan: Fix VLAN 0 memory leak" 2023-08-14 08:14:00 +01:00
appletalk
atm
ax25
batman-adv batman-adv: Hold rtnl lock during MTU update via netlink 2023-08-22 17:25:10 -07:00
bluetooth Bluetooth: Fix hci_suspend_sync crash 2023-09-23 11:14:21 +02:00
bpf
bpfilter
bridge netfilter: ebtables: fix fortify warnings in size_entry_mwt() 2023-09-23 11:14:22 +02:00
caif
can net: annotate data-races around sk->sk_tsflags 2023-09-19 12:30:17 +02:00
ceph libceph: fix potential hang in ceph_osdc_notify() 2023-08-02 09:07:34 +02:00
core net: Use sockaddr_storage for getsockopt(SO_PEERNAME). 2023-09-23 11:14:20 +02:00
dcb net: dcb: choose correct policy to parse DCB_ATTR_BCN 2023-08-01 21:07:46 -07:00
dccp dccp: Fix out of bounds access in DCCP error handler 2023-09-13 09:53:54 +02:00
devlink devlink: remove reload failed checks in params get/set callbacks 2023-09-23 11:14:19 +02:00
dns_resolver
dsa net: dsa: fix older DSA drivers using phylink 2023-07-27 17:19:46 -07:00
ethernet
ethtool
handshake net/handshake: fix null-ptr-deref in handshake_nl_done_doit() 2023-09-19 12:30:17 +02:00
hsr hsr: Fix uninit-value access in fill_frame_info() 2023-09-19 12:30:28 +02:00
ieee802154
ife
ipv4 net/ipv4: return the real errno instead of -EINVAL 2023-09-23 11:14:20 +02:00
ipv6 net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr 2023-09-19 12:30:18 +02:00
iucv
kcm kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg(). 2023-09-19 12:30:30 +02:00
key
l2tp ipv6: remove hard coded limitation on ipv6_pinfo 2023-09-02 09:13:30 +02:00
l3mdev
lapb
llc llc: Don't drop packet from non-root netns. 2023-07-20 10:46:28 +02:00
mac80211 wifi: mac80211: check for station first in client probe 2023-09-23 11:14:22 +02:00
mac802154
mctp
mpls
mptcp mptcp: annotate data-races around msk->rmem_fwd_alloc 2023-09-19 12:30:17 +02:00
ncsi
netfilter netfilter: nf_tables: Unbreak audit log reset 2023-09-19 12:30:20 +02:00
netlabel
netlink netlink: convert nlk->flags to atomic flags 2023-09-23 11:14:21 +02:00
netrom netrom: Deny concurrent connect(). 2023-09-13 09:53:12 +02:00
nfc
nsh
openvswitch net: openvswitch: reject negative ifindex 2023-08-15 19:07:52 -07:00
packet net/packet: annotate data-races around tp->status 2023-08-04 18:03:16 -07:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched net: sched: sch_qfq: Fix UAF in qfq_dequeue() 2023-09-19 12:30:18 +02:00
sctp sctp: annotate data-races around sk->sk_wmem_queued 2023-09-19 12:30:16 +02:00
smc net/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add 2023-09-19 12:30:27 +02:00
strparser
sunrpc Revert "SUNRPC: Fail faster on bad verifier" 2023-09-23 11:14:33 +02:00
switchdev
tipc tipc: stop tipc crypto on failure in tipc_node_create 2023-07-27 11:45:05 +02:00
tls net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict() 2023-09-19 12:30:29 +02:00
unix af_unix: Fix data-race around unix_tot_inflight. 2023-09-19 12:30:18 +02:00
vmw_vsock
wireless wifi: cfg80211: ocb: don't leave if not joined 2023-09-23 11:14:22 +02:00
x25
xdp xsk: Fix xsk_diag use-after-free error during socket cleanup 2023-09-19 12:30:16 +02:00
xfrm ipsec-2023-08-15 2023-08-16 08:57:41 +01:00
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c net: annotate data-races around sk->sk_bind_phc 2023-09-19 12:30:17 +02:00
sysctl_net.c