]> git.ipfire.org Git - thirdparty/linux.git/commit
sysctl: Add 0012 to test the u8 range check
authorJoel Granados <joel.granados@kernel.org>
Fri, 21 Mar 2025 08:44:39 +0000 (09:44 +0100)
committerJoel Granados <joel.granados@kernel.org>
Mon, 14 Apr 2025 12:13:41 +0000 (14:13 +0200)
commit8e4acabdc8691529c163c18a45bcdd332bd75145
tree27eab4003eb325d4854cea1665d072f432aa90a5
parent138303ec6ccbe38611931eeb955a722c6f78ec25
sysctl: Add 0012 to test the u8 range check

Add a sysctl test that uses the new u8 test ctl files in a created by
the sysctl test module. Check that the u8 proc file that is valid is
created and that there are two messages in dmesg for the files that were
out of range.

Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
tools/testing/selftests/sysctl/sysctl.sh