]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: selftests: use maximum cpu features and allow rng seeding
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 10 Jun 2022 14:32:02 +0000 (16:32 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 11 Jun 2022 13:38:08 +0000 (15:38 +0200)
commit6d3eed4b14ffd1c43b608489bbb2110e46305fb4
tree6dca5a504925f5ce84fe4e6d3ea170e3595a0356
parentc0236083065a302636a1f2bad9e5a77c857717ab
wireguard: selftests: use maximum cpu features and allow rng seeding

By forcing the maximum CPU that QEMU has available, we expose additional
capabilities, such as the RNDR instruction, which increases test
coverage. This then allows the CI to skip the fake seeding step in some
cases. Also enable STRICT_KERNEL_RWX to catch issues related to early
jump labels when the RNG is initialized at boot.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tools/testing/selftests/wireguard/qemu/Makefile
tools/testing/selftests/wireguard/qemu/init.c
tools/testing/selftests/wireguard/qemu/kernel.config