diff options
| author | Jason A. Donenfeld <[email protected]> | 2022-05-04 22:29:20 +0200 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-04 17:49:57 -0700 |
| commit | 3fc1b11e5d7278437bdfff0e01f51e777eefb222 (patch) | |
| tree | d25c3d9d7ead417a3ecdc7fca002aaead4a1bd4f /tools/testing/selftests/wireguard/qemu/init.c | |
| parent | a6b8ea9144340c0aaa66c817a3bbb6bca47f0321 (diff) | |
wireguard: selftests: set panic_on_warn=1 from cmdline
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]>
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) |