I write a shell script to do unit test with Linux commands (ex: ifconfig, insmod/rmmod),
but in some test case will cause kernel panic,
and the panic will cause the config file which uses to read/write for saving test state change to
"^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@".
Does anyone know how to avoid kernel modify the file when crash?
Thanks!