aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests/qemu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* compat: handle backported rng and blake2sJason A. Donenfeld2022-06-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: give up on RHEL8 in CIJason A. Donenfeld2022-05-051-6/+0
| | | | | | | | | They keep breaking their kernel and being difficult when I send patches to fix it, so just give up on trying to support this in the CI. It'll bitrot and people will complain and we'll see what happens at that point. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: set panic_on_warn=1 from cmdlineJason A. Donenfeld2022-05-0514-19/+13
| | | | | | | | 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 <Jason@zx2c4.com>
* qemu: use vports on armJason A. Donenfeld2022-05-055-6/+25
| | | | | | Rather than having to hack up QEMU, just use the virtio serial device. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: enable ACPI for SMPJason A. Donenfeld2022-04-062-0/+2
| | | | | | | | | It turns out that by having CONFIG_ACPI=n, we've been failing to boot additional CPUs, and so these systems were functionally UP. The code bloat is unfortunate for build times, but I don't see an alternative. So this commit sets CONFIG_ACPI=y for x86_64 and i686 configs. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: simplify RNG seedingJason A. Donenfeld2022-03-031-18/+8
| | | | | | | | | We don't actualy need to write anything in the pool. Instead, we just force the total over 128, and we should be good to go for all old kernels. We also only need this on getrandom() kernels, which simplifies things too. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: increase default dmesg log sizeJason A. Donenfeld2021-06-061-0/+1
| | | | | | | | | | The selftests currently parse the kernel log at the end to track potential memory leaks. With these tests now reading off the end of the buffer, due to recent optimizations, some creation messages were lost, making the tests think that there was a free without an alloc. Fix this by increasing the kernel log size. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: add disgusting hacks for RHEL 8Jason A. Donenfeld2021-06-061-1/+7
| | | | | | | | | Red Hat does awful things to their kernel for RHEL 8, such that it doesn't even compile in most configurations. This is utter craziness, and their response to me sending patches to fix this stuff has been to stonewall for months on end and then do nothing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump default kernel versionJason A. Donenfeld2021-02-191-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump default testing versionJason A. Donenfeld2020-11-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: drop build support for rhel 8.2Jason A. Donenfeld2020-11-041-1/+0
| | | | | | This reverts commit feb89cab65c6ab1a6cbeeaaeb11b1a174772cea8. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* netns: check that route_me_harder packets use the right skJason A. Donenfeld2020-10-291-0/+2
| | | | | | | | | | | | If netfilter changes the packet mark, the packet is rerouted. The ip_route_me_harder family of functions fails to use the right sk, opting to instead use skb->sk, resulting in a routing loop when used with tunnels. Fixing this inside of the compat layer with skb_orphan would work but would cause other problems, by disabling TSQ, so instead we warn if the calling kernel hasn't yet backported the fix for this. Reported-by: Chen Minqiang <ptpt52@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: mark per_cpu_load_addr as static for gcc-10Jason A. Donenfeld2020-05-281-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: work around broken centos8 kernelJason A. Donenfeld2020-05-281-0/+1
| | | | | | | RHEL needs to apply https://lore.kernel.org/patchwork/patch/974664/ before we can revert this monstrosity. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: patch in UTS_UBUNTU_RELEASE_ABI for Ubuntu detectionJason A. Donenfeld2020-05-281-0/+1
| | | | | | | | This kind of thing really makes me queezy and upset, but there's little that can be done about such situations when dealing with Canonical's kernel. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: support fetching kernels for arbitrary URLsJason A. Donenfeld2020-05-281-1/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: add extra fill in idt handler for newer binutilsJason A. Donenfeld2020-05-211-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: use cbuild gcc for avx512 exclusionJason A. Donenfeld2020-05-211-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: force 2MB pages for binutils 2.31Jason A. Donenfeld2020-05-211-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: patch kernels that rely on ancient makeJason A. Donenfeld2020-05-211-0/+1
| | | | | | | | Kernels without 9feeb638cde0 ("tools build: fix # escaping in .cmd files for future Make") face problems when building with more recent make, so patch these to avoid issues. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: remove -Werror in order to build ancient kernels betterJason A. Donenfeld2020-05-211-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: always use cbuild gcc rather than system gccJason A. Donenfeld2020-05-211-3/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: add -fcommon for compiling ping with gcc-10Jason A. Donenfeld2020-05-191-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: use newer iproute2 for gcc-10Jason A. Donenfeld2020-05-081-1/+1
| | | | | | | | | | gcc-10 switched to defaulting to -fno-common, which broke iproute2-5.4. This was fixed in iproute-5.6, so switch to that. Because we're after a stable testing surface, we generally don't like to bump these unnecessarily, but in this case, being able to actually build is a basic necessity. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: use normal kernel stack size on ppc64Jason A. Donenfeld2020-05-031-0/+1
| | | | | | | | | | | While at some point it might have made sense to be running these tests on ppc64 with 4k stacks, the kernel hasn't actually used 4k stacks on 64-bit powerpc in a long time, and more interesting things that we test don't really work when we deviate from the default (16k). So, we stop pushing our luck in this commit, and return to the default instead of the minimum. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: loop entropy adding until getrandom doesn't blockJason A. Donenfeld2020-05-031-1/+4
| | | | | | | Before the 256 was just a guess, which was made wrong by qemu 5.0, so instead actually query whether or not we're all set. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump default kernel to 5.5.14Jason A. Donenfeld2020-04-011-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump kernelJason A. Donenfeld2020-01-281-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: only compare archs when deciding whether to use kvmJason A. Donenfeld2020-01-021-14/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: re-add dependency on wireguard sourcesJason A. Donenfeld2020-01-021-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump packages and support m68k properlyJason A. Donenfeld2020-01-014-16/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: remove remaining tools referencesJason A. Donenfeld2019-12-261-10/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump versionJason A. Donenfeld2019-11-271-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: respect PATH when finding CBUILDJason A. Donenfeld2019-11-271-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: work around build bug with powerpc64leJason A. Donenfeld2019-11-271-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* netns: add test for failing 5.3 FIB changesJason A. Donenfeld2019-10-111-0/+3
| | | | | Reference: https://lore.kernel.org/netdev/20190924073615.31704-1-Jason@zx2c4.com/ Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump default versionJason A. Donenfeld2019-10-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: switch to coarse ktimeJason A. Donenfeld2019-06-251-1/+1
| | | | | | | | | | | | | | Coarse ktime is broken until [1] in 5.2 and kernels without the backport, so we use fallback code there. The fallback code has also been improved significantly. It now only uses slower clocks on kernels < 3.17, at the expense of some accuracy we're not overly concerned about. [1] https://lore.kernel.org/lkml/tip-e3ff9c3678b4d80e22d2557b68726174578eaf52@git.kernel.org/ Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: show signal when failingJason A. Donenfeld2019-06-181-3/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: do not check for alignment with ubsanJason A. Donenfeld2019-05-291-0/+1
| | | | | | It insta-crashes on x86. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: build iproute2 with libmnl supportJason A. Donenfeld2019-05-291-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: use newer iproute2 and kernelJason A. Donenfeld2019-05-291-9/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: set framewarn 1280 for 64bit and 1024 for 32bitJason A. Donenfeld2019-03-2514-4/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: enable FP on MIPSJason A. Donenfeld2019-01-234-0/+4
| | | | | | This is a change for Linux 5.0. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: version bump to bash 5.0Jason A. Donenfeld2019-01-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: version bump kernelJason A. Donenfeld2019-01-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyrightJason A. Donenfeld2019-01-072-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* chacha20,poly1305: switch to perlasm originals on mips and armJason A. Donenfeld2018-11-141-1/+1
| | | | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: bump default kernelJason A. Donenfeld2018-10-271-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qemu: kill after 20 minutesJason A. Donenfeld2018-10-081-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>