kernel_optimize_test/net
Eric Dumazet ccecbcc9c5 ipv6: remove extra dev_hold() for fallback tunnels
commit 0d7a7b2014b1a499a0fe24c9f3063d7856b5aaaf upstream.

My previous commits added a dev_hold() in tunnels ndo_init(),
but forgot to remove it from special functions setting up fallback tunnels.

Fallback tunnels do call their respective ndo_init()

This leads to various reports like :

unregister_netdevice: waiting for ip6gre0 to become free. Usage count = 2

Fixes: 48bb5697269a ("ip6_tunnel: sit: proper dev_{hold|put} in ndo_[un]init methods")
Fixes: 6289a98f0817 ("sit: proper dev_{hold|put} in ndo_[un]init methods")
Fixes: 40cb881b5aaa ("ip6_vti: proper dev_{hold|put} in ndo_[un]init methods")
Fixes: 7f700334be9a ("ip6_gre: proper dev_{hold|put} in ndo_[un]init methods")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 11:40:55 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: check for zapped sk before connecting 2021-05-19 10:12:53 +02:00
bpf
bpfilter
bridge bridge: Fix possible races between assigning rx_handler_data and setting IFF_BRIDGE_PORT bit 2021-05-22 11:40:54 +02:00
caif
can
ceph
core mm: fix struct page layout on 32-bit systems 2021-05-19 10:13:17 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
ethtool ethtool: fix missing NLM_F_MULTI flag when dumping 2021-05-19 10:13:08 +02:00
hsr net: hsr: check skb can contain struct hsr_ethhdr in fill_frame_info 2021-05-22 11:40:54 +02:00
ieee802154
ife
ipv4 net: Only allow init netns to set default tcp cong to a restricted algo 2021-05-14 09:50:46 +02:00
ipv6 ipv6: remove extra dev_hold() for fallback tunnels 2021-05-22 11:40:55 +02:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211 mac80211: clear the beacon's CRC after channel switch 2021-05-19 10:12:55 +02:00
mac802154
mpls
mptcp mptcp: fix splat when closing unaccepted socket 2021-05-19 10:13:10 +02:00
ncsi
netfilter netfilter: nftables: avoid overflows in nft_hash_buckets() 2021-05-19 10:13:09 +02:00
netlabel
netlink
netrom
nfc net:nfc:digital: Fix a double free in digital_tg_recv_dep_req 2021-05-14 09:50:44 +02:00
nsh
openvswitch
packet net/packet: remove data races in fanout operations 2021-05-14 09:50:38 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched net: sched: tapr: prevent cycle_time == 0 in parse_taprio_schedule 2021-05-19 10:12:57 +02:00
sctp sctp: fix a SCTP_MIB_CURRESTAB leak in sctp_sf_do_dupcook_b 2021-05-19 10:13:06 +02:00
smc smc: disallow TCP_ULP in smc_setsockopt() 2021-05-19 10:13:08 +02:00
strparser
sunrpc sunrpc: Fix misplaced barrier in call_decode 2021-05-19 10:13:06 +02:00
switchdev
tipc tipc: convert dest node's address to network order 2021-05-19 10:12:52 +02:00
tls
unix
vmw_vsock vsock/virtio: free queued packets when closing socket 2021-05-14 09:50:41 +02:00
wimax
wireless cfg80211: scan: drop entry from hidden_list on overflow 2021-05-14 09:50:00 +02:00
x25
xdp xsk: Fix for xp_aligned_validate_desc() when len == chunk_size 2021-05-19 10:13:06 +02:00
xfrm
compat.c
devres.c
Kconfig
Makefile
socket.c
sysctl_net.c