linux/net/core
Alexander Duyck b2f1756480 net-sysfs: Add rtnl locking for getting Tx queue traffic class
In order to access the suboordinate dev for a device we should be holding
the rtnl_lock when outside of the transmit path. The existing code was not
doing that for the sysfs dump function and as a result we were open to a
possible race.

To resolve that take the rtnl lock prior to accessing the sb_dev field of
the Tx queue and release it after we have retrieved the tc for the queue.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-08 15:07:50 -08:00
..
bpf_sk_storage.c
datagram.c
datagram.h
dev.c net/core: move gro function declarations to separate header 2021-02-04 18:37:57 -08:00
dev_addr_lists.c
dev_ioctl.c
devlink.c mlx5 subfunction support 2021-01-28 16:57:19 -08:00
drop_monitor.c
dst.c
dst_cache.c
failover.c
fib_notifier.c
fib_rules.c
filter.c
flow_dissector.c net/sched: cls_flower add CT_FLAGS_INVALID flag support 2021-01-20 21:09:44 -08:00
flow_offload.c
gen_estimator.c
gen_stats.c
gro_cells.c
hwbm.c
link_watch.c
lwt_bpf.c
lwtunnel.c
Makefile
neighbour.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-02-02 14:21:31 -08:00
net-procfs.c
net-sysfs.c net-sysfs: Add rtnl locking for getting Tx queue traffic class 2021-02-08 15:07:50 -08:00
net-sysfs.h
net-traces.c
net_namespace.c
netclassid_cgroup.c
netevent.c
netpoll.c Revert "net: Have netpoll bring-up DSA management interface" 2021-02-06 14:42:57 -08:00
netprio_cgroup.c
page_pool.c net: page_pool: simplify page recycling condition tests 2021-02-04 18:20:14 -08:00
pktgen.c pktgen: fix misuse of BUG_ON() in pktgen_thread_worker() 2021-01-27 16:46:37 -08:00
ptp_classifier.c
request_sock.c
rtnetlink.c net: bridge: multicast: make tracked EHT hosts limit configurable 2021-01-27 17:40:35 -08:00
scm.c
secure_seq.c
skbuff.c net: Introduce {netdev,napi}_alloc_frag_align() 2021-02-06 11:57:28 -08:00
skmsg.c
sock.c net: indirect call helpers for ipv4/ipv6 dst_check functions 2021-02-03 14:51:40 -08:00
sock_diag.c
sock_map.c
sock_reuseport.c
stream.c
sysctl_net_core.c net: sysctl: remove redundant #ifdef CONFIG_NET 2021-01-27 17:02:43 -08:00
timestamping.c
tso.c
utils.c
xdp.c