mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
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:
commit
8286b7b3a9
6 changed files with 19 additions and 25 deletions
Loading…
Add table
Add a link
Reference in a new issue