linux-uconsole/drivers/net
YiFei Zhu 984fe94f94 bpf: Mutex protect used_maps array and count
To support modifying the used_maps array, we use a mutex to protect
the use of the counter and the array. The mutex is initialized right
after the prog aux is allocated, and destroyed right before prog
aux is freed. This way we guarantee it's initialized for both cBPF
and eBPF.

Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Cc: YiFei Zhu <zhuyifei1999@gmail.com>
Link: https://lore.kernel.org/bpf/20200915234543.3220146-2-sdf@google.com
2020-09-15 18:28:27 -07:00
..
appletalk
arcnet
bonding bonding: fix active-backup failover for current ARP slave 2020-08-18 15:57:47 -07:00
caif
can treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
dsa net: dsa: ocelot: use the Lynx PCS helpers in Felix and Seville 2020-08-31 12:52:33 -07:00
ethernet bpf: Mutex protect used_maps array and count 2020-09-15 18:28:27 -07:00
fddi net: fddi: skfp: cfm: Remove seemingly unused variable 'ID_sccs' 2020-08-14 20:42:25 -07:00
fjes
hamradio
hippi hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path 2020-07-14 14:11:49 -07:00
hyperv hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit() 2020-08-20 16:24:00 -07:00
ieee802154 net: ieee802154: adf7242: Replace HTTP links with HTTPS ones 2020-07-20 08:51:38 +02:00
ipa net: ipa: remove duplicate include 2020-08-26 16:12:31 -07:00
ipvlan ipvlan: advertise link netns via netlink 2020-08-24 15:53:33 -07:00
mdio net: mdio: Move MDIO drivers into a new subdirectory 2020-08-27 06:55:50 -07:00
netdevsim Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2020-08-03 18:27:40 -07:00
pcs net: phy: add Lynx PCS module 2020-08-31 12:52:33 -07:00
phy net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state 2020-08-31 12:52:33 -07:00
plip
ppp mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
slip
team
usb smsc95xx: add phylib support 2020-08-28 06:48:43 -07:00
vmxnet3 vmxnet3: use correct tcp hdr length when packet is encapsulated 2020-08-10 12:09:38 -07:00
wan net/wan/fsl_ucc_hdlc: Add MODULE_DESCRIPTION 2020-08-31 12:41:50 -07:00
wimax
wireguard netlink: consistently use NLA_POLICY_MIN_LEN() 2020-08-18 12:28:45 -07:00
wireless mac80211: rename csa counters to countdown counters 2020-08-27 14:12:15 +02:00
xen-netback
bareudp.c tunnels: PMTU discovery support for directly bridged IP packets 2020-08-04 13:01:45 -07:00
dummy.c
eql.c
geneve.c geneve: Support for PMTU discovery on directly bridged links 2020-08-04 13:01:45 -07:00
gtp.c gtp: relax alloc constraint when adding a pdp 2020-08-31 12:24:34 -07:00
ifb.c
Kconfig net: mdio: Move MDIO drivers into a new subdirectory 2020-08-27 06:55:50 -07:00
LICENSE.SRC
loopback.c
macsec.c netlink: consistently use NLA_POLICY_MIN_LEN() 2020-08-18 12:28:45 -07:00
macvlan.c macvlan: validate setting of multiple remote source MAC addresses 2020-08-18 12:33:43 -07:00
macvtap.c
Makefile net: mdio: Move MDIO drivers into a new subdirectory 2020-08-27 06:55:50 -07:00
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
tun.c net-tun: Eliminate two tun/xdp related function calls from vhost-net 2020-08-19 14:02:49 -07:00
veth.c net-veth: Add type safety to veth_xdp_to_ptr() and veth_ptr_to_xdp() 2020-08-19 14:10:38 -07:00
virtio_net.c virtio: fixes, features 2020-08-11 14:34:17 -07:00
vrf.c vrf: Handle CONFIG_SYSCTL not set 2020-07-23 17:51:04 -07:00
vsockmon.c
vxlan.c Revert "vxlan: fix tos value before xmit" 2020-08-05 12:09:10 -07:00
xen-netfront.c bpf, xdp: Remove XDP_QUERY_PROG and XDP_QUERY_PROG_HW XDP commands 2020-07-25 20:37:02 -07:00