kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()
authorIurii Zaikin <yzaikin@google.com>
Mon, 23 Sep 2019 09:02:47 +0000 (02:02 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2019 23:35:01 +0000 (17:35 -0600)
commit2cb80dbbbaba4f2f86f686c34cb79ea5cbfb0edb
tree695be55b30c2462e5f990f5d923fe9e6a8047047
parent804ec79a00451363c5e2836917431424bf0216f6
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>
kernel/Makefile
kernel/sysctl-test.c [new file with mode: 0644]
lib/Kconfig.debug