~cascardo/qa-regression-testing:master

Last commit made on 2023-01-16
Get this branch:
git clone -b master https://git.launchpad.net/~cascardo/qa-regression-testing
Only Thadeu Lima de Souza Cascardo can upload to this branch. If you are Thadeu Lima de Souza Cascardo please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~cascardo/qa-regression-testing

Recent commits

f0be299... by Thadeu Lima de Souza Cascardo

Revert "ulimit_stack_small: test multiple times for 64k pages"

This reverts commit 72e44713abe3872468b82199882e9d4c19536106.

seq will segfault in some cases, leading to an unexpected exit code. Shell
arithmetic could be used instead to avoid that, but this test needs to be
revisited entirely, as Steve Beattied pointed out.

In the meantime, revert this such that we don't regress on old cases where
this was succeeding.

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

72e4471... by Thadeu Lima de Souza Cascardo

ulimit_stack_small: test multiple times for 64k pages

On systems with 64k pages, setting the stack limit to a really small value
may still succeed. If run multiple times, it will eventually fail. Run it
up to 10 times and exit as soon as it fails to identify such situations.

This has been tested on an ARM64 system with 64k pages. While at it, stop
skipping the test on ppc64el, where the page size is also 64k.

Bug: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1949645
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Signed-off-by: Steve Beattie <email address hidden>

a838d6f... by Thadeu Lima de Souza Cascardo

mmap_min_addr: align testsize to pagesize

On 64k ARM, mmap_min_addr is 32768 by default, which is smaller than page
size. When running the low-mmap test, it won't even try to mmap unless the
testsize is at least page size.

It should, in fact, be aligned to pagesize so that the last page in the low
range is tested.

Bug: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2002503
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Signed-off-by: Steve Beattie <email address hidden>

7910466... by Steve Beattie

test-kernel-security.py: drop 9.04/ec2 kernel specific check in mmap_min_addr test

That specific kernel and release are long long out of support, so make
the function slightly less complex.

Signed-off-by: Steve Beattie <email address hidden>

7e4af64... by Thadeu Lima de Souza Cascardo

test-kernel-security: mmap-min-addr misreported on arm 64k page kernels

The kernel is built with a default mmap_min_addr of 32768 (for legacy
reasons, arm userspace have been broken in the past with the 64k value,
though one could argue whether that should be the default for 64K pages
configured kernels).

However, QRT commit d56f3347a1f69c06be638ca6b6917083143ce5a4 tried to deal
with that trying to expect the value to be reported as 65536 and the test
pass as such.

Instead, the sysctl value should still be expected to be 32768, while the
test should run with 65536.

Bug: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1931393
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

6fe4789... by Steve Beattie

test-apparmor.py: workaround to fix posix_ipc tests for non-x86 archs

MR: https://code.launchpad.net/~georgiag/qa-regression-testing/+git/qa-regression-testing/+merge/435084
Acked-by: Steve Beattie <email address hidden>

04786cf... by Steve Beattie

test-squid.py: note that it needs root privileges

Signed-off-by: Steve Beattie <email address hidden>

614200e... by Georgia Garcia

test-apparmor.py: add patch that fixes posix_ipc tests for non-x86 archs.

On non-x86 systems the posix_ipc tests fail with "Unrecognized option", so
the upstream patch that fixes the test is being added.
Closes LP: #2000359

Signed-off-by: Georgia Garcia <email address hidden>

79a8a10... by Alex Murray

Merge remote-tracking branch 'pkopylov/testlib_apt_source_escape'

Signed-off-by: Alex Murray <email address hidden>

2fbf48f... by Pavel Kopylov

scripts/testlib.py: escape symbols for grepping in /etc/apt/source.list