Re: [PATCH net v2 0/2] netlink: fix a dump livelock with a notification queued
From: patchwork-bot+netdevbpf
Date: Thu Oct 29 2026 - 12:39:57 EST
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 27 Oct 2026 15:04:00 +0100 you wrote:
> A netlink dump that starts while a notification is still charged to a
> socket with a small receive buffer fails with ENOBUFS, and every retry
> from recvmsg() fails the same way. A reader that peeks before reading,
> as libnl does, never consumes the message at the head of the queue and
> spins forever. I hit this with "iw dev wlan0 scan" on an arm64 board.
>
> Patch 1 goes back to checking sk_rcvbuf before charging the dump skb,
> as before commit ae8f160e7eb2. Patch 2 adds a selftest; it fails
> without patch 1 and is skipped without the privileges to create a
> netns.
>
> [...]
Here is the summary with links:
- [net,v2,1/2] netlink: check sk_rcvbuf before charging the dump skb
https://git.kernel.org/netdev/net/c/b45d37740cfb
- [net,v2,2/2] selftests: net: netlink-dumps: start a dump with a notification queued
https://git.kernel.org/netdev/net/c/e615d0a8b201
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html