linux/net
Chuck Lever 776bd5c7a2 SUNRPC: Don't flag empty RPCB_GETADDR reply as bogus
In 2007, commit e65fe3976f added
additional sanity checking to rpcb_decode_getaddr() to make sure we
were getting a reply that was long enough to be an actual universal
address.  If the uaddr string isn't long enough, the XDR decoder
returns EIO.

However, an empty string is a valid RPCB_GETADDR response if the
requested service isn't registered.  Moreover, "::.n.m" is also a
valid RPCB_GETADDR response for IPv6 addresses that is shorter
than rpcb_decode_getaddr()'s lower limit of 11.  So this sanity
check introduced a regression for rpcbind requests against IPv6
remotes.

So revert the lower bound check added by commit
e65fe3976f, and add an explicit check
for an empty uaddr string, similar to libtirpc's rpcb_getaddr(3).

Pointed-out-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2009-03-28 15:52:08 -04:00
..
9p 9p: fix endian issues [attempt 3] 2009-02-06 22:07:41 -08:00
802 net: fix tokenring license 2009-03-03 23:48:50 -08:00
8021q vlan: Fix vlan-in-vlan crashes. 2009-03-04 23:46:25 -08:00
appletalk
atm
ax25
bluetooth
bridge bridge: Fix LRO crash with tun 2009-02-09 15:07:18 -08:00
can
core vlan: Fix vlan-in-vlan crashes. 2009-03-04 23:46:25 -08:00
dcb
dccp
decnet
dsa
econet
ethernet
ipv4 tcp: Like icmp use register_pernet_subsys 2009-03-03 01:14:21 -08:00
ipv6 IPv6: add "disable" module parameter support to ipv6.ko 2009-03-04 03:19:08 -08:00
ipx
irda
iucv
key
lapb
llc
mac80211 mac80211: restrict to AP in outgoing interface heuristic 2009-02-11 11:27:17 -05:00
netfilter netfilter: xt_recent: fix proc-file addition/removal of IPv4 addresses 2009-02-24 14:53:12 +01:00
netlabel
netlink netlink: invert error code in netlink_set_err() 2009-03-03 23:37:30 -08:00
netrom
packet net: packet socket packet_lookup_frame fix 2009-02-01 01:53:29 -08:00
phonet Phonet: do not compute unused value 2009-02-10 17:14:50 -08:00
rfkill
rose
rxrpc RxRPC: Fix a potential NULL dereference 2009-02-06 21:50:52 -08:00
sched pkt_sched: act_police: Fix a rate estimator test. 2009-03-04 17:38:10 -08:00
sctp SCTP: change sctp_ctl_sock_init() to try IPv4 if IPv6 fails 2009-03-04 03:20:26 -08:00
sunrpc SUNRPC: Don't flag empty RPCB_GETADDR reply as bogus 2009-03-28 15:52:08 -04:00
tipc
unix
wanrouter
wimax wimax: fix oops in wimax_dev_get_by_genl_info() when looking up non-wimax iface 2009-02-12 17:00:20 -08:00
wireless cfg80211: test before subtraction on unsigned 2009-03-06 15:54:32 -05:00
x25
xfrm
compat.c
Kconfig net: Move config NET_NS to from net/Kconfig to init/Kconfig 2009-01-26 12:25:55 -08:00
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE