Thread (3 messages) 3 messages, 3 authors, 2026-04-01

Re: [PATCH net v4] mptcp: fix soft lockup in mptcp_recvmsg()

From: Matthieu Baerts <matttbe@kernel.org>
Date: 2026-03-30 13:54:21
Also in: lkml, mptcp

Hi Li,

On 30/03/2026 14:03, Li Xiasong wrote:
syzbot reported a soft lockup in mptcp_recvmsg() [0].

When receiving data with MSG_PEEK | MSG_WAITALL flags, the skb is not
removed from the sk_receive_queue. This causes sk_wait_data() to always
find available data and never perform actual waiting, leading to a soft
lockup.

Fix this by adding a 'last' parameter to track the last peeked skb.
This allows sk_wait_data() to make informed waiting decisions and prevent
infinite loops when MSG_PEEK is used.
Thank you for this new version:

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

@netdev maintainers: this patch can be applied in 'net' directly, thank you!

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help