diff options
author | 2022-05-04 22:29:20 +0200 | |
---|---|---|
committer | 2022-07-07 13:26:46 +0200 | |
commit | b33b459a4c28a40e53c812afd8e40caff2e436ed (patch) | |
tree | 22a7948e1e15a7c5b04a7e0d4cbf40d5fdac735b /tools/testing/selftests/wireguard/qemu/init.c | |
parent | wireguard: selftests: bump package deps (diff) | |
download | wireguard-linux-b33b459a4c28a40e53c812afd8e40caff2e436ed.tar.xz wireguard-linux-b33b459a4c28a40e53c812afd8e40caff2e436ed.zip |
wireguard: selftests: set panic_on_warn=1 from cmdline
commit 3fc1b11e5d7278437bdfff0e01f51e777eefb222 upstream.
Rather than setting this once init is running, set panic_on_warn from
the kernel command line, so that it catches splats from WireGuard
initialization code and the various crypto selftests.
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'tools/testing/selftests/wireguard/qemu/init.c')
-rw-r--r-- | tools/testing/selftests/wireguard/qemu/init.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/testing/selftests/wireguard/qemu/init.c b/tools/testing/selftests/wireguard/qemu/init.c index 0b45055d9de0..2a0f48fac925 100644 --- a/tools/testing/selftests/wireguard/qemu/init.c +++ b/tools/testing/selftests/wireguard/qemu/init.c @@ -110,12 +110,6 @@ static void enable_logging(void) panic("write(exception-trace)"); close(fd); } - fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); - if (fd >= 0) { - if (write(fd, "1\n", 2) != 2) - panic("write(panic_on_warn)"); - close(fd); - } } static void kmod_selftests(void) |