William Dauchy
4b823bf7c2
net, ip_tunnel: fix interface lookup with no key
...
commit 25629fdaff2ff509dd0b3f5ff93d70a75e79e0a1 upstream.
when creating a new ipip interface with no local/remote configuration,
the lookup is done with TUNNEL_NO_KEY flag, making it impossible to
match the new interface (only possible match being fallback or metada
case interface); e.g: `ip link add tunl1 type ipip dev eth0`
To fix this case, adding a flag check before the key comparison so we
permit to match an interface with no local/remote config; it also avoids
breaking possible userland tools relying on TUNNEL_NO_KEY flag and
uninitialised key.
context being on my side, I'm creating an extra ipip interface attached
to the physical one, and moving it to a dedicated namespace.
Fixes: c544193214 ("GRE: Refactor GRE tunneling code.")
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:32:55 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
batman-adv: Don't schedule OGM for disabled interface
2020-03-18 07:17:54 +01:00
bluetooth
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl
2020-04-13 10:48:13 +02:00
bpf
bpfilter
net/bpfilter: remove superfluous testing message
2020-04-21 09:04:53 +02:00
bridge
caif
can
ceph
libceph: fix alloc_msg_with_page_vector() memory leaks
2020-04-02 15:11:02 +02:00
core
net: revert default NAPI poll timeout to 2 jiffies
2020-04-21 09:04:47 +02:00
dcb
dccp
decnet
dns_resolver
KEYS: Don't write out to userspace while holding key semaphore
2020-04-23 10:36:45 +02:00
dsa
net: dsa: tag_8021q: replace dsa_8021q_remove_header with __skb_vlan_pop
2020-04-01 11:01:34 +02:00
ethernet
hsr
hsr: check protocol version in hsr_newlink()
2020-04-21 09:04:44 +02:00
ieee802154
nl802154: add missing attribute validation for dev_type
2020-03-18 07:17:44 +01:00
ife
ipv4
net, ip_tunnel: fix interface lookup with no key
2020-04-29 16:32:55 +02:00
ipv6
ipv6: don't auto-add link-local address to lag ports
2020-04-13 10:48:02 +02:00
iucv
kcm
key
l2tp
l2tp: Allow management of tunnels and session in user namespace
2020-04-21 09:04:44 +02:00
l3mdev
lapb
llc
mac80211
mac80211: fix race in ieee80211_register_hw()
2020-04-21 09:05:00 +02:00
mac802154
mpls
ncsi
netfilter
netfilter: nf_tables: report EOPNOTSUPP on unsupported flags/object type
2020-04-23 10:36:19 +02:00
netlabel
netlink
netlink: Use netlink header as base to calculate bad attribute offset
2020-03-18 07:17:40 +01:00
netrom
nfc
nfc: add missing attribute validation for vendor subcommand
2020-03-18 07:17:46 +01:00
nsh
openvswitch
net: openvswitch: don't unlock mutex when changing the user_features fails
2020-01-26 10:01:05 +01:00
packet
net/packet: tpacket_rcv: avoid a producer race condition
2020-04-01 11:01:35 +02:00
phonet
psample
qrtr
net: qrtr: send msgs from local of same id as broadcast
2020-04-21 09:04:47 +02:00
rds
rfkill
rose
rxrpc
KEYS: Don't write out to userspace while holding key semaphore
2020-04-23 10:36:45 +02:00
sched
net_sched: fix a missing refcnt in tcindex_init()
2020-04-13 10:48:04 +02:00
sctp
inet_diag: return classid for all socket types
2020-03-18 07:17:38 +01:00
smc
net/smc: cancel event worker during device removal
2020-03-18 07:17:59 +01:00
strparser
sunrpc
sunrpc: Fix gss_unwrap_resp_integ() again
2020-04-23 10:36:41 +02:00
switchdev
tipc
tipc: add missing attribute validation for MTU property
2020-03-18 07:17:45 +01:00
tls
net/tls: Fix to avoid gettig invalid tls record
2020-03-05 16:43:32 +01:00
unix
vmw_vsock
hv_sock: Remove the accept port restriction
2020-02-14 16:34:07 -05:00
wimax
wireless
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy
2020-04-21 09:04:59 +02:00
x25
net/x25: fix nonblocking connect
2020-01-29 16:45:33 +01:00
xdp
xsk: Add missing check on user supplied headroom size
2020-04-23 10:36:21 +02:00
xfrm
xfrm: policy: Fix doulbe free in xfrm_policy_timer
2020-04-01 11:02:07 +02:00
compat.c
Kconfig
net: Fix CONFIG_NET_CLS_ACT=n and CONFIG_NFT_FWD_NETDEV={y, m} build
2020-04-01 11:02:18 +02:00
Makefile
socket.c
sysctl_net.c