linux/net
Daniel Borkmann b1fcd35cf5 net: filter: let unattached filters use sock_fprog_kern
The sk_unattached_filter_create() API is used by BPF filters that
are not directly attached or related to sockets, and are used in
team, ptp, xt_bpf, cls_bpf, etc. As such all users do their own
internal managment of obtaining filter blocks and thus already
have them in kernel memory and set up before calling into
sk_unattached_filter_create(). As a result, due to __user annotation
in sock_fprog, sparse triggers false positives (incorrect type in
assignment [different address space]) when filters are set up before
passing them to sk_unattached_filter_create(). Therefore, let
sk_unattached_filter_create() API use sock_fprog_kern to overcome
this issue.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-23 16:48:05 -04:00
..
9p
802
8021q vlan: more careful checksum features handling 2014-05-22 15:07:23 -04:00
appletalk net: Split sk_no_check into sk_no_check_{rx,tx} 2014-05-23 16:28:53 -04:00
atm
ax25
batman-adv batman-adv: Start new development cycle 2014-05-18 15:04:00 +02:00
bluetooth Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-05-12 13:19:14 -04:00
bridge bridge: make br_device_notifier static 2014-05-22 15:33:47 -04:00
caif
can can: add hash based access to single EFF frame filters 2014-05-19 09:38:24 +02:00
ceph
core net: filter: let unattached filters use sock_fprog_kern 2014-05-23 16:48:05 -04:00
dcb
dccp net: Eliminate no_check from protosw 2014-05-23 16:28:53 -04:00
decnet net: Split sk_no_check into sk_no_check_{rx,tx} 2014-05-23 16:28:53 -04:00
dns_resolver
dsa net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
ethernet
hsr
ieee802154 ieee802154: missing put_dev() on error 2014-05-22 15:54:45 -04:00
ipv4 net: Make enabling of zero UDP6 csums more restrictive 2014-05-23 16:28:53 -04:00
ipv6 net: Make enabling of zero UDP6 csums more restrictive 2014-05-23 16:28:53 -04:00
ipx net: Split sk_no_check into sk_no_check_{rx,tx} 2014-05-23 16:28:53 -04:00
irda
iucv
key
l2tp l2tp: Add support for zero IPv6 checksums 2014-05-23 16:28:53 -04:00
lapb
llc
mac80211 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-05-12 13:19:14 -04:00
mac802154 mac802154: llsec: correctly lookup implicit-indexed keys 2014-05-22 15:27:32 -04:00
mpls
netfilter net: filter: let unattached filters use sock_fprog_kern 2014-05-23 16:48:05 -04:00
netlabel
netlink Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-05-12 13:19:14 -04:00
netrom
nfc
openvswitch openvswitch: Simplify genetlink code. 2014-05-22 16:27:37 -07:00
packet
phonet
rds net: rds: Use time_after() for time comparison 2014-05-18 21:24:52 -04:00
rfkill
rose
rxrpc
sched net: filter: let unattached filters use sock_fprog_kern 2014-05-23 16:48:05 -04:00
sctp net: Split sk_no_check into sk_no_check_{rx,tx} 2014-05-23 16:28:53 -04:00
sunrpc sunrpc: Remove sk_no_check setting 2014-05-23 16:28:53 -04:00
tipc tipc: merge port message reception into socket reception function 2014-05-14 15:19:48 -04:00
unix net: unix: Align send data_len up to PAGE_SIZE 2014-05-16 16:04:03 -04:00
vmw_vsock
wimax
wireless Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-05-12 13:19:14 -04:00
x25
xfrm Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next 2014-05-22 16:00:00 -04:00
Kconfig
Makefile
compat.c
nonet.c
socket.c
sysctl_net.c