Xin Long
ca5355771c
ping: fix the sk_bound_dev_if match in ping_lookup
...
commit 2afc3b5a31f9edf3ef0f374f5d70610c79c93a42 upstream.
When 'ping' changes to use PING socket instead of RAW socket by:
# sysctl -w net.ipv4.ping_group_range="0 100"
the selftests 'router_broadcast.sh' will fail, as such command
# ip vrf exec vrf-h1 ping -I veth0 198.51.100.255 -b
can't receive the response skb by the PING socket. It's caused by mismatch
of sk_bound_dev_if and dif in ping_rcv() when looking up the PING socket,
as dif is vrf-h1 if dif's master was set to vrf-h1.
This patch is to fix this regression by also checking the sk_bound_dev_if
against sdif so that the packets can stil be received even if the socket
is not bound to the vrf device but to the real iif.
Fixes: c319b4d76b ("net: ipv4: add IPPROTO_ICMP socket kind")
Reported-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-02-01 17:24:37 +01:00
..
6lowpan
9p
9p/net: fix missing error check in p9_check_errors
2021-11-17 09:48:49 +01:00
802
8021q
net: vlan: fix underflow for the real_dev refcnt
2021-12-01 09:23:34 +01:00
appletalk
atm
ax25
ax25: NPD bug when detaching AX25 device
2021-12-29 12:23:38 +01:00
batman-adv
batman-adv: allow netlink usage in unprivileged containers
2022-01-27 09:19:41 +01:00
bluetooth
Bluetooth: refactor malicious adv data check
2022-02-01 17:24:33 +01:00
bpf
bpfilter
bridge
netfilter: bridge: add support for pppoe filtering
2022-01-27 09:19:31 +01:00
caif
can
can: j1939: j1939_tp_cmd_recv(): check the dst address of TP.CM_BAM
2021-12-08 09:01:08 +01:00
ceph
core
net: fix information leakage in /proc/net/ptype
2022-02-01 17:24:37 +01:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
ife
ipv4
ping: fix the sk_bound_dev_if match in ping_lookup
2022-02-01 17:24:37 +01:00
ipv6
ipv6_tunnel: Rate limit warning messages
2022-02-01 17:24:36 +01:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211
mac80211: allow non-standard VHT MCS-10/11
2022-01-27 09:19:46 +01:00
mac802154
mpls
net: mpls: Fix notifications when deleting a device
2021-12-08 09:01:12 +01:00
ncsi
net/ncsi: check for error return from call to nla_put_u32
2022-01-05 12:37:45 +01:00
netfilter
netfilter: nft_payload: do not update layer 4 checksum when mangling fragments
2022-02-01 17:24:34 +01:00
netlabel
netlink
net: netlink: af_netlink: Prevent empty skb by adding a check on len.
2021-12-17 10:12:23 +01:00
netrom
nfc
nfc: llcp: fix NULL error pointer dereference on sendmsg() after failed bind()
2022-01-27 09:19:26 +01:00
nsh
openvswitch
packet
net: fix information leakage in /proc/net/ptype
2022-02-01 17:24:37 +01:00
phonet
phonet: refcount leak in pep_sock_accep
2022-01-11 15:23:33 +01:00
psample
qrtr
rds
rds: memory leak in __rds_conn_create()
2021-12-22 09:29:37 +01:00
rfkill
rose
rxrpc
rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer()
2021-12-08 09:01:12 +01:00
sched
net_sched: restore "mpu xxx" handling
2022-01-27 09:19:55 +01:00
sctp
sctp: use call_rcu to free endpoint
2022-01-05 12:37:44 +01:00
smc
net/smc: Prevent smc_release() from long blocking
2021-12-22 09:29:38 +01:00
strparser
bpf: sockmap, strparser, and tls are reusing qdisc_skb_cb and colliding
2021-11-17 09:48:48 +01:00
sunrpc
fsnotify: fix fsnotify hooks in pseudo filesystems
2022-02-01 17:24:34 +01:00
switchdev
net: switchdev: do not propagate bridge updates across bridges
2021-10-27 09:54:24 +02:00
tipc
tls
net/tls: Fix authentication failure in CCM mode
2021-12-08 09:01:14 +01:00
unix
af_unix: annote lockless accesses to unix_tot_inflight & gc_in_progress
2022-01-27 09:19:53 +01:00
vmw_vsock
vsock: prevent unnecessary refcnt inc for nonblocking connect
2021-11-17 09:48:48 +01:00
wimax
wireless
cfg80211: call cfg80211_stop_ap when switch from P2P_GO type
2021-11-26 10:47:22 +01:00
x25
xdp
Revert "xsk: Do not sleep in poll() when need_wakeup set"
2021-12-22 09:29:40 +01:00
xfrm
xfrm: Don't accidentally set RTO_ONLINK in decode_session4()
2022-01-27 09:19:54 +01:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c