]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: Limit the max number of queues in procfs_downup_hammer
authorDimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Tue, 11 Nov 2025 22:53:19 +0000 (14:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Nov 2025 02:04:18 +0000 (18:04 -0800)
commitf766f8cdde018967e9436f7f34d09907881fa7fa
treeeb5897ab5ddaf51ef977127cf6788b5df20a87c4
parente949824730daf381bd0fe37e1a77458e0c26e8df
selftests: drv-net: Limit the max number of queues in procfs_downup_hammer

For NICs with a large (1024+) number of queues, this test can cause
excessive memory fragmentation. This results in OOM errors, and in the
worst case driver/kernel crashes. We don't need to test with the max number
of queues, just enough to create a high likelihood of races between
reconfiguration and stats getting read.

Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Link: https://patch.msgid.link/20251111225319.3019542-1-dimitri.daskalakis1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/stats.py