linux-xiaomi-chiron/net
Qing Wang db5b6a46f4 net: bpf: Switch over to memdup_user()
This patch fixes the following Coccinelle warning:

net/bpf/test_run.c:361:8-15: WARNING opportunity for memdup_user
net/bpf/test_run.c:1055:8-15: WARNING opportunity for memdup_user

Use memdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives

Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/1634556651-38702-1-git-send-email-wangqing@vivo.com
2021-10-20 18:43:15 -07:00
..
6lowpan
9p
802
8021q net: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
appletalk
atm
ax25
batman-adv
bluetooth bluetooth-next pull request for net-next: 2021-10-05 07:41:16 -07:00
bpf net: bpf: Switch over to memdup_user() 2021-10-20 18:43:15 -07:00
bpfilter
bridge net: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
caif
can
ceph
core
dcb
dccp
decnet
dns_resolver
dsa net: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
ethernet ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
ethtool
hsr net: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
ieee802154
ife
ipv4 bpf: Enable TCP congestion control kfunc from modules 2021-10-05 17:07:41 -07:00
ipv6 net: ipv6: fix use after free of struct seg6_pernet_data 2021-10-04 13:40:19 +01:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211
mac802154
mctp mctp: Add input reassembly tests 2021-10-03 14:35:41 +01:00
mpls
mptcp
ncsi
netfilter
netlabel
netlink netlink: remove netlink_broadcast_filtered 2021-10-05 13:07:03 +01:00
netrom
nfc
nsh
openvswitch
packet
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wireless
x25
xdp
xfrm
compat.c
devres.c
Kconfig
Makefile
socket.c
sysctl_net.c