Re: [PATCH net-next v5 2/2] mptcp: annotate lockless access to sk->sk_err

From: Matthieu Baerts

Date: Thu Oct 01 2026 - 03:33:08 EST


Hi Quanye,

On 25/09/2026 14:47, Quanye Yang via B4 Relay wrote:
> From: Quanye Yang <quanyeyang@xxxxxxxxx>
>
> sock_error() can clear sk_err with xchg() without the socket lock.
>
> On the no-data msk recv and splice paths, call sock_error() once and
> only stop when it returns a non-zero error. Annotate the remaining
> msk send and subflow error-report peeks with READ_ONCE().

Thanks!

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>

Cheers,
Matt
--
Sponsored by the NGI0 Core fund.