[PATCH net-next v2 0/5] net: annotate data-races around sysctl knobs

Jiayuan Chen posted 5 patches 5 days, 15 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/multipath-tcp/mptcp_net-next tags/patchew/20261118045137.174026-1-jiayuan.chen@linux.dev
include/net/ipv6.h       |  2 +-
net/ipv4/inet_fragment.c |  2 +-
net/ipv4/ip_fragment.c   |  6 +++---
net/ipv6/icmp.c          | 10 +++++-----
net/mptcp/ctrl.c         | 18 +++++++++---------
net/rds/recv.c           |  2 +-
net/rds/send.c           |  8 ++++----
net/rds/threads.c        |  4 ++--
net/smc/af_smc.c         |  8 ++++----
net/smc/smc_clc.c        |  8 ++++----
net/smc/smc_core.c       |  2 +-
net/smc/smc_tx.c         |  2 +-
12 files changed, 36 insertions(+), 36 deletions(-)
[PATCH net-next v2 0/5] net: annotate data-races around sysctl knobs
Posted by Jiayuan Chen 5 days, 15 hours ago
This series annotates data races around a few sysctl knobs under net/.
They are read without any lock while their handlers update them with
WRITE_ONCE(), so add READ_ONCE() to the readers, and WRITE_ONCE() to the
handlers and netlink paths that store to the same fields with plain
writes.

There are no Fixes tags. Done one knob per patch this would be well over
a hundred commits, so I grouped them by subsystem and feature instead to
keep the review manageable. If maintainers prefer, I can split it up
further with a Fixes tag on each one, as several smaller series.

No functional change.

v2:
 - only resend the patches that got a Reviewed-by or Acked-by, with the
   tags picked up; they are unchanged
 - netfilter patches are moved to a separate series for nf-next (Simon)
 - calipso is sent separately as a fix
 - the other patches had no review yet and are left out for now
v1: https://lore.kernel.org/netdev/20261109025425.328445-1-jiayuan.chen@linux.dev/

Jiayuan Chen (5):
  inet: frags: annotate data-races around fqdir->timeout and
    fqdir->max_dist
  ipv6: annotate data-races around icmpv6 reply sysctls
  mptcp: annotate data-races around pernet sysctls
  rds: annotate data-races around core rds sysctls
  net/smc: annotate data-races around smc sysctls

 include/net/ipv6.h       |  2 +-
 net/ipv4/inet_fragment.c |  2 +-
 net/ipv4/ip_fragment.c   |  6 +++---
 net/ipv6/icmp.c          | 10 +++++-----
 net/mptcp/ctrl.c         | 18 +++++++++---------
 net/rds/recv.c           |  2 +-
 net/rds/send.c           |  8 ++++----
 net/rds/threads.c        |  4 ++--
 net/smc/af_smc.c         |  8 ++++----
 net/smc/smc_clc.c        |  8 ++++----
 net/smc/smc_core.c       |  2 +-
 net/smc/smc_tx.c         |  2 +-
 12 files changed, 36 insertions(+), 36 deletions(-)

-- 
2.43.0
Re: [PATCH net-next v2 0/5] net: annotate data-races around sysctl knobs
Posted by MPTCP CI 5 days, 13 hours ago
Hi Jiayuan,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal (except selftest_mptcp_join): Success! ✅
- KVM Validation: normal (only selftest_mptcp_join): Success! ✅
- KVM Validation: debug (except selftest_mptcp_join): Success! ✅
- KVM Validation: debug (only selftest_mptcp_join): Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Perf: Unstable: 2 failed test(s): error:sched-mem-pressure validation:sched-weak-secondary ⚠️ 
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/44242779577

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/c03ca5be7367
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=1214545


If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-normal

For more details:

    https://github.com/multipath-tcp/mptcp-upstream-virtme-docker


Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)
Re: [PATCH net-next v2 0/5] net: annotate data-races around sysctl knobs
Posted by patchwork-bot+netdevbpf@kernel.org 3 days, 17 hours ago
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 18 Nov 2026 12:51:15 +0800 you wrote:
> This series annotates data races around a few sysctl knobs under net/.
> They are read without any lock while their handlers update them with
> WRITE_ONCE(), so add READ_ONCE() to the readers, and WRITE_ONCE() to the
> handlers and netlink paths that store to the same fields with plain
> writes.
> 
> There are no Fixes tags. Done one knob per patch this would be well over
> a hundred commits, so I grouped them by subsystem and feature instead to
> keep the review manageable. If maintainers prefer, I can split it up
> further with a Fixes tag on each one, as several smaller series.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/5] inet: frags: annotate data-races around fqdir->timeout and fqdir->max_dist
    https://git.kernel.org/netdev/net-next/c/871c4d55bcc2
  - [net-next,v2,2/5] ipv6: annotate data-races around icmpv6 reply sysctls
    https://git.kernel.org/netdev/net-next/c/74a8695588fd
  - [net-next,v2,3/5] mptcp: annotate data-races around pernet sysctls
    https://git.kernel.org/netdev/net-next/c/9b01b1ed4b27
  - [net-next,v2,4/5] rds: annotate data-races around core rds sysctls
    https://git.kernel.org/netdev/net-next/c/89452de7ed3d
  - [net-next,v2,5/5] net/smc: annotate data-races around smc sysctls
    https://git.kernel.org/netdev/net-next/c/88c1e8ba3024

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html