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 <>
Signed-off-by: Brendan Higgins <>
Reviewed-by: Greg Kroah-Hartman <>
Reviewed-by: Logan Gunthorpe <>
Acked-by: Luis Chamberlain <>
Reviewed-by: Stephen Boyd <>
3 files changed