]> git.hungrycats.org Git - linux/commit
selftests: net: netlink-dumps: start a dump with a notification queued
authorJhonata Poma-Hansen <jhonata.poma@gmail.com>
Tue, 27 Oct 2026 14:04:02 +0000 (15:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Oct 2026 16:15:16 +0000 (09:15 -0700)
commite615d0a8b20161fd470ca2748001105bcd3c44b1
tree917c3f1132d4d0b288c6cbbed359a3a4cdf9c099
parentb45d37740cfb4bdfccef3fbd9fd970fd3224438f
selftests: net: netlink-dumps: start a dump with a notification queued

Add a test which starts a link dump on a socket with SO_RCVBUF 2048
while a link notification is still queued, after a large read made the
kernel attempt large dump skbs. It reads like libnl does, peeking
before each read, and expects the dump to complete with a zero status
and at least one link. The notifications come from bringing lo up and
down, so the test runs in its own netns and is skipped without the
privileges to create one.

The test fails without the previous patch.

Signed-off-by: Jhonata Poma-Hansen <jhonata.poma@gmail.com>
Link: https://patch.msgid.link/20261027-netlink-dump-livelock-v2-2-c4bb05352a33@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/netlink-dumps.c