Thread (7 messages) 7 messages, 3 authors, 2026-03-23

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

From: Matthieu Baerts <matttbe@kernel.org>
Date: 2026-03-03 11:11:09
Also in: lkml, mptcp

Hi Li,

On 02/03/2026 06:26, 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 the patch! I will check why sk_wait_data() was not used
with the last SKB before.

By chance, do you have a reproducer that you could eventually share please?

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