Messages in this thread | | | From | Kuniyuki Iwashima <> | Subject | [PATCH v1 net 00/15] sysctl: Fix data-races around net.core.XXX (Round 1) | Date | Mon, 15 Aug 2022 22:23:32 -0700 |
| |
This series fixes data-races around 22 knobs in net_core_table. These knobs are skipped:
- netdev_rss_key: Written only once by net_get_random_once() and read-only knob - rps_sock_flow_entries: Protected with sock_flow_mutex - flow_limit_cpu_bitmap: Protected with flow_limit_update_mutex - flow_limit_table_len: Protected with flow_limit_update_mutex - default_qdisc: Protected with qdisc_mod_lock - warnings: Unused
Note 9th patch fixes net.core.message_cost and net.core.message_burst, and lib/ratelimit.c does not have an explicit maintainer.
The next round is the final round for net.core.XXX and starts from netdev_budget_usecs.
Kuniyuki Iwashima (15): net: Fix data-races around sysctl_[rw]mem_(max|default). net: Fix data-races around weight_p and dev_weight_[rt]x_bias. net: Fix data-races around netdev_max_backlog. bpf: Fix data-races around bpf_jit_enable. bpf: Fix data-races around bpf_jit_harden. bpf: Fix data-races around bpf_jit_kallsyms. bpf: Fix a data-race around bpf_jit_limit. net: Fix data-races around netdev_tstamp_prequeue. ratelimit: Fix data-races in ___ratelimit(). net: Fix data-races around sysctl_optmem_max. net: Fix a data-race around sysctl_tstamp_allow_data. net: Fix a data-race around sysctl_net_busy_poll. net: Fix a data-race around sysctl_net_busy_read. net: Fix a data-race around netdev_budget. net: Fix data-races around sysctl_max_skb_frags.
Documentation/admin-guide/sysctl/net.rst | 2 +- arch/arm/net/bpf_jit_32.c | 2 +- arch/arm64/net/bpf_jit_comp.c | 2 +- arch/mips/net/bpf_jit_comp.c | 2 +- arch/powerpc/net/bpf_jit_comp.c | 5 +++-- arch/riscv/net/bpf_jit_core.c | 2 +- arch/s390/net/bpf_jit_comp.c | 2 +- arch/sparc/net/bpf_jit_comp_32.c | 5 +++-- arch/sparc/net/bpf_jit_comp_64.c | 5 +++-- arch/x86/net/bpf_jit_comp.c | 2 +- arch/x86/net/bpf_jit_comp32.c | 2 +- include/linux/filter.h | 16 ++++++++++------ include/net/busy_poll.h | 2 +- kernel/bpf/core.c | 2 +- lib/ratelimit.c | 8 +++++--- net/core/bpf_sk_storage.c | 5 +++-- net/core/dev.c | 16 ++++++++-------- net/core/filter.c | 13 +++++++------ net/core/gro_cells.c | 2 +- net/core/skbuff.c | 2 +- net/core/sock.c | 18 ++++++++++-------- net/core/sysctl_net_core.c | 10 ++++++---- net/ipv4/ip_output.c | 2 +- net/ipv4/ip_sockglue.c | 6 +++--- net/ipv4/tcp.c | 4 ++-- net/ipv4/tcp_output.c | 2 +- net/ipv6/ipv6_sockglue.c | 4 ++-- net/mptcp/protocol.c | 2 +- net/netfilter/ipvs/ip_vs_sync.c | 4 ++-- net/sched/sch_generic.c | 2 +- net/xfrm/espintcp.c | 2 +- net/xfrm/xfrm_input.c | 2 +- 32 files changed, 85 insertions(+), 70 deletions(-)
-- 2.30.2
| |