fanotify10 in ubuntu_ltp_syscalls failed with #24, #25, #27 on F-oracle-5.15 BM.Standard2.52

Bug #2072319 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found on Oracle BM.Standard2.52 with F-oracle-5.15.0-1063.69~20.04.1 during SRU 2024.06.10 (passed with J-oracle)

Test failed with sub-test #24, #25 and #27:

 fanotify10.c:769: TINFO: Test #24: don't ignore mount events created on file with evicted ignore mark
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:839: TPASS: group 0 (8) got 16 events: mask 20 pid=30897
 fanotify10.c:839: TPASS: group 1 (8) got 16 events: mask 20 pid=30897
 fanotify10.c:839: TPASS: group 2 (8) got 16 events: mask 20 pid=30897
 fanotify10.c:834: TFAIL: group 0 (4) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (4) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (4) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (0) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (0) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (0) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (e00) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (e00) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (e00) with FAN_MARK_MOUNT got unexpected number of events (0 != 16)
 fanotify10.c:672: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint
 fanotify10.c:673: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt
 fanotify10.c:674: TINFO: Mounting /dev/loop5 to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt fstyp=ext2 flags=0
 fanotify10.c:675: TINFO: Mounting fs_mnt to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint fstyp=none flags=1000

 fanotify10.c:769: TINFO: Test #25: don't ignore fs events created on a file with evicted ignore mark
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:839: TPASS: group 0 (8) got 16 events: mask 20 pid=30902
 fanotify10.c:839: TPASS: group 1 (8) got 16 events: mask 20 pid=30902
 fanotify10.c:839: TPASS: group 2 (8) got 16 events: mask 20 pid=30902
 fanotify10.c:834: TFAIL: group 0 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:672: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint
 fanotify10.c:673: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt
 fanotify10.c:674: TINFO: Mounting /dev/loop5 to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt fstyp=ext2 flags=0
 fanotify10.c:675: TINFO: Mounting fs_mnt to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint fstyp=none flags=1000

 fanotify10.c:769: TINFO: Test #27: don't ignore fs events created inside a parent with evicted ignore mark
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:510: TPASS: Found 0 ignore marks which is in expected range 0-0
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:507: TFAIL: Found 16 ignore marks but at most 8 expected
 fanotify10.c:839: TPASS: group 0 (8) got 16 events: mask 20 pid=30909
 fanotify10.c:839: TPASS: group 1 (8) got 16 events: mask 20 pid=30909
 fanotify10.c:839: TPASS: group 2 (8) got 16 events: mask 20 pid=30909
 fanotify10.c:834: TFAIL: group 0 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (4) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (0) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 0 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 1 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:834: TFAIL: group 2 (e00) with FAN_MARK_FILESYSTEM got unexpected number of events (0 != 16)
 fanotify10.c:672: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint
 fanotify10.c:673: TINFO: Umounting /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt
 fanotify10.c:674: TINFO: Mounting /dev/loop5 to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/fs_mnt fstyp=ext2 flags=0
 fanotify10.c:675: TINFO: Mounting fs_mnt to /tmp/ltp-QTLCo7xXcu/LTP_fanrbZCmn/mntpoint fstyp=none flags=1000
...
 HINT: You _MAY_ be missing kernel fixes:

 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9bdda4e9cf2d
 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2f02fd3fa13e

 Summary:
 passed 993
 failed 54
 broken 0
 skipped 3
 warnings 0
 INFO: ltp-pan reported some tests FAIL

GuoqingJiang has confirmed that the commits mentioned by the test case had already in the repo.

gjiang@laptop:~/canonical/kernel/ubuntu/focal/linux-oracle-5.15/linux-main$ git tag --contain 9bdda4e9cf2d|grep 1063|grep 5.15
Ubuntu-oracle-5.15-5.15.0-1063.69_20.04.1
gjiang@laptop:~/canonical/kernel/ubuntu/focal/linux-oracle-5.15/linux-main$ git tag --contain 2f02fd3fa13e|grep 1063|grep 5.15
Ubuntu-oracle-5.15-5.15.0-1063.69_20.04.1

Compared to the result in previous 2024.04.29 cycle (5.15.0-1061.67~20.04.1), sub-test #24 - #30 were skipped due to:
 Test #24: don't ignore mount events created on file with evicted ignore mark
 TCONF: FAN_MARK_EVICTABLE not supported in kernel?
 TINFO: Test #25: don't ignore fs events created on a file with evicted ignore mark
 TCONF: FAN_MARK_EVICTABLE not supported in kernel?
 TINFO: Test #26: don't ignore mount events created inside a parent with evicted ignore mark
 TCONF: FAN_MARK_EVICTABLE not supported in kernel?
 TINFO: Test #27: don't ignore fs events created inside a parent with evicted ignore mark
 TCONF: FAN_MARK_EVICTABLE not supported in kernel?
 TINFO: Test #28: ignore events on subdir inside a parent watching subdirs
 TCONF: flags FAN_EVENT_ON_CHILD and FAN_ONDIR do not take effect with legacy FAN_MARK_IGNORED_MASK
 TINFO: Test #29: don't ignore events on subdir inside a parent not watching children
 TCONF: flags FAN_EVENT_ON_CHILD and FAN_ONDIR do not take effect with legacy FAN_MARK_IGNORED_MASK
 TINFO: Test #30: don't ignore events on subdir inside a parent watching non-dir children
 TCONF: flags FAN_EVENT_ON_CHILD and FAN_ONDIR do not take effect with legacy FAN_MARK_IGNORED_MASK

Also note that there was a similar issue for J-OEM-6.1, but the error message is a bit different. See bug 2008189.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Please find attachment for the complete test log on F-oracle-5.15.0-1063.69~20.04.1

description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

And the test log on F-oracle-5.15.0-1061.67~20.04.1 for reference.

summary: - fanotify10 in ubuntu_ltp_syscalls failed with #24, #25, #27
+ fanotify10 in ubuntu_ltp_syscalls failed with #24, #25, #27 on
+ F-oracle-5.15 BM.Standard2.52
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This FAN_MARK_EVICTABLE was coming from a recent stable-update commit on Jammy

commit fb87f80ddc55baf145e99f28c377cb7cec438fae
Author: Amir Goldstein <email address hidden>
Date: Fri Apr 22 15:03:25 2022 +0300

    fanotify: implement "evictable" inode marks

    BugLink: https://bugs.launchpad.net/bugs/2065435

    [ Upstream commit 7d5e005d982527e4029b0139823d179986e34cdc ]

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Re-test on Oracle BM.Standard2.52 with F-oracle-5.15.0-1063.69~20.04.1 and it's good, flakiness recorded in the hint database.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.