Merge branch 'tcp-annotate-lockless-access-to-sk-sk_err'

Quanye Yang says:

====================
tcp: annotate lockless access to sk->sk_err

do_recvmmsg() and getsockopt(SO_ERROR) call sock_error() without the
socket lock and clear sk_err with xchg().

Patch 1 covers TCP. Peek-only sites use READ_ONCE(). On the no-data
recv and splice paths, call sock_error() once and only stop when it
returns a non-zero error. tcp_bpf_sendmsg() folds two unmarked loads
into one READ_ONCE() and uses that value as the returned errno.

Patch 2 does the same for MPTCP and annotates the remaining subflow
error-report peeks.
====================

Link: https://patch.msgid.link/20260925-mptcp-sk-err-net-v5-0-0cac04d6ea48@proton.me
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Paolo Abeni 2026-10-01 11:06:32 +02:00
commit 8286b7b3a9
6 changed files with 19 additions and 25 deletions