History

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.

Iurii Zaikin committed 7 years ago

Commit 2cb80db1 parent 804ec793 files · +405 −0Browse files

Showing the changes to kernel/Makefile (1 of 3 files). Show all

Unified · Split

kernel/Makefile+2−0
@@ -115,6 +115,8 @@ obj-$(CONFIG_TORTURE_TEST) += torture.o · 114 unmodified lines
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