]> git.ipfire.org Git - thirdparty/linux.git/commit
netconsole: selftest: verify userdata entry limit
authorBreno Leitao <leitao@debian.org>
Wed, 8 Jan 2025 11:50:28 +0000 (03:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jan 2025 02:06:36 +0000 (18:06 -0800)
commitdaea6d23cd2f99a0c70e871a27d473f3ad48845b
treef9cf8c62fca2b8d7e644c8eb5a0b0d478ae42ebd
parent7dcb65351b30500a759c857590b73b98c05ac7fd
netconsole: selftest: verify userdata entry limit

Add a new selftest for netconsole that tests the userdata entry limit
functionality. The test performs two key verifications:

1. Create MAX_USERDATA_ITEMS (16) userdata entries successfully
2. Confirm that attempting to create an additional userdata entry fails

The selftest script uses the netcons library and checks the behavior
by attempting to create entries beyond the maximum allowed limit.

Signed-off-by: Breno Leitao <leitao@debian.org>
Tested-by: Simon Horman <horms@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250108-netcons_overflow_test-v3-4-3d85eb091bec@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
MAINTAINERS
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/netcons_overflow.sh [new file with mode: 0755]