Comment 0 for bug 2072319

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : fanotify10 in ubuntu_ltp_syscalls failed with #24, #25, #27

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