Skip to content

Commit 2cb80db

Browse files
yzaikin-at-googleshuahkh
authored andcommitted
kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()
KUnit tests for initialized data behavior of proc_dointvec that is explicitly checked in the code. Includes basic parsing tests including int min/max overflow. Signed-off-by: Iurii Zaikin <yzaikin@google.com> Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Acked-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 804ec79 commit 2cb80db

3 files changed

Lines changed: 405 additions & 0 deletions

File tree

‎kernel/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ obj-$(CONFIG_TORTURE_TEST) += torture.o
115115
obj-$(CONFIG_HAS_IOMEM) += iomem.o
116116
obj-$(CONFIG_RSEQ) += rseq.o
117117

118+
obj-$(CONFIG_SYSCTL_KUNIT_TEST) += sysctl-test.o
119+
118120
obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o
119121
KASAN_SANITIZE_stackleak.o := n
120122
KCOV_INSTRUMENT_stackleak.o := n

0 commit comments

Comments
 (0)