linux/drivers/net
Hannes Frederic Sowa 8ced425ee6 tun: use socket locks for sk_{attach,detatch}_filter
This reverts commit 5a5abb1fa3 ("tun, bpf: fix suspicious RCU usage
in tun_{attach, detach}_filter") and replaces it to use lock_sock around
sk_{attach,detach}_filter. The checks inside filter.c are updated with
lockdep_sock_is_held to check for proper socket locks.

It keeps the code cleaner by ensuring that only one lock governs the
socket filter instead of two independent locks.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-07 16:44:14 -04:00
..
appletalk
arcnet
bonding
caif
can
cris
dsa net: dsa: mv88e6131: enable hardware bridging 2016-04-04 21:31:35 -04:00
ethernet Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 2016-04-07 11:50:30 -04:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
irda irda: sh_irda: remove driver 2016-04-04 16:24:13 -04:00
phy
plip
ppp
slip
team team: team should sync the port's uc/mc addrs when add a port 2016-03-30 17:06:58 -04:00
usb net: usb: cdc_ncm: adding Telit LE910 V2 mobile broadband card 2016-03-31 17:15:35 -04:00
vmxnet3
wan
wimax
wireless
xen-netback
dummy.c
eql.c
geneve.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: use socket locks for sk_{attach,detatch}_filter 2016-04-07 16:44:14 -04:00
veth.c
virtio_net.c
vrf.c
vxlan.c vxlan: implement GPE 2016-04-06 16:50:32 -04:00
xen-netfront.c