Kernel watchdog related patches and test code