~cypressyew/qa-regression-testing:phlin/ulimit_stack_small_regression

Last commit made on 2023-01-16
Get this branch:
git clone -b phlin/ulimit_stack_small_regression https://git.launchpad.net/~cypressyew/qa-regression-testing
Only Po-Hsu Lin can upload to this branch. If you are Po-Hsu Lin please log in for upload directions.

Branch merges

Branch information

Name:
phlin/ulimit_stack_small_regression
Repository:
lp:~cypressyew/qa-regression-testing

Recent commits

d1fea7c... by Po-Hsu Lin

ulimit_stack_small: use different command for testing 64k pages

With commit 72e44713ab ("ulimit_stack_small: test multiple times for
64k pages") we have modified the command to run it multiple times. But
this should be specific to kernel with 64k pages.

Otherwise it will return 0 and fail with return code mismatch on other
kernels.

Bug: https://bugs.launchpad.net/qa-regression-testing/+bug/2002997
Signed-off-by: Po-Hsu Lin <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