lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230315205746.3801038-1-edumazet@google.com>
Date:   Wed, 15 Mar 2023 20:57:40 +0000
From:   Eric Dumazet <edumazet@...gle.com>
To:     "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>
Cc:     netdev@...r.kernel.org, eric.dumazet@...il.com,
        Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next 0/6] net: annotate lockless accesses to sk_err[_soft]

This patch series is inspired by yet another syzbot report.

Most poll() handlers are lockless and read sk->sk_err
while other cpus can change it.

Add READ_ONCE/WRITE_ONCE() to major/usual offenders.

More to come later.

Eric Dumazet (6):
  tcp: annotate lockless accesses to sk->sk_err_soft
  dccp: annotate lockless accesses to sk->sk_err_soft
  net: annotate lockless accesses to sk->sk_err_soft
  tcp: annotate lockless access to sk->sk_err
  mptcp: annotate lockless accesses to sk->sk_err
  af_unix: annotate lockless accesses to sk->sk_err

 fs/dlm/lowcomms.c                |  7 ++++---
 net/atm/signaling.c              |  2 +-
 net/dccp/ipv4.c                  | 12 +++++++-----
 net/dccp/ipv6.c                  | 11 ++++++-----
 net/dccp/timer.c                 |  2 +-
 net/ipv4/af_inet.c               |  2 +-
 net/ipv4/tcp.c                   | 11 ++++++-----
 net/ipv4/tcp_input.c             |  8 ++++----
 net/ipv4/tcp_ipv4.c              | 10 +++++-----
 net/ipv4/tcp_output.c            |  2 +-
 net/ipv4/tcp_timer.c             |  6 +++---
 net/ipv6/af_inet6.c              |  2 +-
 net/ipv6/inet6_connection_sock.c |  2 +-
 net/ipv6/tcp_ipv6.c              | 15 ++++++++-------
 net/mptcp/pm_netlink.c           |  2 +-
 net/mptcp/protocol.c             |  8 ++++----
 net/mptcp/subflow.c              |  4 ++--
 net/sctp/input.c                 |  2 +-
 net/sctp/ipv6.c                  |  2 +-
 net/unix/af_unix.c               |  9 +++++----
 20 files changed, 63 insertions(+), 56 deletions(-)

-- 
2.40.0.rc2.332.ga46443480c-goog

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ