mmap04 from ubuntu_ltp_syscalls failed with T-lts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
This issue pops up after updating to the latest tip of LTP test suite (commit 776b57984 "rwtest: Remove df symlink check")
I think the failure is because of the API and test case change in https:/
It's only failing with T-lts (4.4.0-
Test log:
INFO: Test start time: Wed Dec 6 08:32:32 UTC 2023
COMMAND: /opt/ltp/
LOG File: /dev/null
FAILED COMMAND File: /dev/null
TCONF COMMAND File: /dev/null
Running tests.......
tst_test.c:1690: TINFO: LTP version: 20230929
tst_test.c:1576: TINFO: Timeout per run is 0h 00m 30s
mmap04.c:58: TPASS: mapping permissions in /proc matched: ---p
mmap04.c:58: TPASS: mapping permissions in /proc matched: ---s
mmap04.c:58: TPASS: mapping permissions in /proc matched: r--p
mmap04.c:58: TPASS: mapping permissions in /proc matched: r--s
mmap04.c:58: TPASS: mapping permissions in /proc matched: -w-p
mmap04.c:58: TPASS: mapping permissions in /proc matched: -w-s
mmap04.c:55: TBROK: Expected 1 conversions got 0 FILE '/proc/self/maps'
Summary:
passed 6
failed 0
broken 1
skipped 0
warnings 0
INFO: ltp-pan reported some tests FAIL
LTP Version: 20230929
INFO: Test end time: Wed Dec 6 08:32:32 UTC 2023
This issue can be fixed by this commit upstream: 503bc2d8ba91a75 14fdae995e
commit 6c4bf3a75f4ba17
Author: Avinesh Kumar <email address hidden>
Date: Wed Jan 24 14:26:02 2024 +0100
mmap04.c: Avoid vma merging
We hit a scenario where new mapping was merged with existing mapping of
same permission and the return address from the mmap was hidden in the
merged mapping in /proc/self/maps, causing the test to fail.
To avoid this, we first create a 2-page mapping with the different
permissions, and then remap the 2nd page with the perms being tested.
Link: https://<email address hidden>/
Reported-by: Martin Doucha <email address hidden>
Reviewed-by: Martin Doucha <email address hidden>
Reviewed-by: Petr Vorel <email address hidden>
Signed-off-by: Avinesh Kumar <email address hidden>