drivers/misc/lkdtm/bugs.c: add arithmetic overflow and array bounds checks