fanotify09 test case 0 in LTP syscall test failed with T kernel

Bug #1775153 reported by Po-Hsu Lin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Triaged
Medium
Unassigned
Trusty
Triaged
Medium
Unassigned
Artful
Won't Fix
Medium
Unassigned
Bionic
Invalid
Undecided
Unassigned

Bug Description

The "fanotify09" from the LTP syscall tests has failed on a testing node with A/T kernel installed.

Steps (with root):
  1. sudo apt-get install git xfsprogs -y
  2. git clone --depth=1 https://github.com/linux-test-project/ltp.git
  3. cd ltp
  4. make autotools
  5. ./configure
  6. make; make install
  7. cd /opt/ltp
  8. echo "fanotify09" > /tmp/jobs
  9. ./runltp -f /tmp/jobs

<<<test_start>>>
tag=fanotify09 stime=1528192114
cmdline="fanotify09"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_test.c:1015: INFO: Timeout per run is 0h 05m 00s
fanotify09.c:134: PASS: group 0 get event: mask 2 pid=43803 fd=9
fanotify09.c:182: FAIL: group 1 got event
fanotify09.c:182: FAIL: group 2 got event

Summary:
passed 1
failed 2
skipped 0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-43-generic 4.13.0-43.48
ProcVersionSignature: User Name 4.13.0-43.48-generic 4.13.16
Uname: Linux 4.13.0-43-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jun 5 08:30 seq
 crw-rw---- 1 root audio 116, 33 Jun 5 08:30 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3.9
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Tue Jun 5 09:14:07 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
MachineType: Cavium ThunderX CRB
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB:
 0 EFI VGA
 1 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-43-generic root=UUID=ddcb8b36-6267-4392-a1f9-74d9203b742e ro
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-43-generic N/A
 linux-backports-modules-4.13.0-43-generic N/A
 linux-firmware 1.169.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/12/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 5.11
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 0
dmi.chassis.vendor: Cavium
dmi.chassis.version: To be filled by O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd12/12/2012:svnCavium:pnThunderXCRB:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:cvnCavium:ct0:cvrTobefilledbyO.E.M.:
dmi.product.family: Default string
dmi.product.name: ThunderX CRB
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Cavium

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
tags: added: amd64
tags: added: trusty
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu Trusty):
status: New → Triaged
Changed in linux (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Changed in linux (Ubuntu Trusty):
importance: Undecided → Medium
Changed in linux (Ubuntu Artful):
status: New → Triaged
importance: Undecided → Medium
Po-Hsu Lin (cypressyew)
description: updated
Po-Hsu Lin (cypressyew)
summary: - fanotify09 in LTP syscall test failed with A/T kernel
+ fanotify09 in LTP syscall test failed with T/A/B kernel
tags: added: bionic
Po-Hsu Lin (cypressyew)
summary: - fanotify09 in LTP syscall test failed with T/A/B kernel
+ fanotify09 in LTP syscall test failed with T/X/A/B kernel
tags: added: xenial
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: fanotify09 in LTP syscall test failed with T/X/A/B kernel

On Xenial, this test will time out as well, but with slightly different error message:

  <<<test_start>>>
  tag=fanotify09 stime=1529071345
  cmdline="fanotify09"
  contacts=""
  analysis=exit
  <<<test_output>>>
  tst_test.c:1015: INFO: Timeout per run is 0h 05m 00s
  fanotify09.c:134: PASS: group 0 get event: mask 2 pid=9636 fd=23
  fanotify09.c:197: PASS: group 1 got no event
  fanotify09.c:197: PASS: group 2 got no event
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Test timeouted, sending SIGKILL!
  Cannot kill test processes!
  Congratulation, likely test hit a kernel bug.
  Exitting uncleanly...
  <<<execution_status>>>
  initiation_status="ok"
  duration=350 termination_type=exited termination_id=1 corefile=no
  cutime=0 cstime=0
  <<<test_end>>>

Po-Hsu Lin (cypressyew)
summary: - fanotify09 in LTP syscall test failed with T/X/A/B kernel
+ fanotify09 in LTP syscall test failed with T/X/A kernel
Revision history for this message
Andy Whitcroft (apw) wrote : Closing unsupported series nomination.

This bug was nominated against a series that is no longer supported, ie artful. The bug task representing the artful nomination is being closed as Won't Fix.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu Artful):
status: Triaged → Won't Fix
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: fanotify09 in LTP syscall test failed with T/X/A kernel

For the fanotify09 test with Bionic kernel, it's now failing with another new test case landed 2 days ago: bug 1804594

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

Looks like this issue does not exist in T-AWS as well

Po-Hsu Lin (cypressyew)
no longer affects: linux (Ubuntu Xenial)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The timeout in X was caused by some other failures in previous tests.

If you run this test on X after a clean reboot, it will be:
<<<test_output>>>
tst_test.c:1100: INFO: Timeout per run is 0h 05m 00s
incrementing stop
fanotify09.c:161: INFO: Test #0: Events on children with both inode and mount marks
fanotify09.c:150: PASS: group 0 got event: mask 2 pid=2590 fd=9 path=/tmp/ltp-N2EML7bHjo/2rOQpx/mntpoint/tfile_2590
fanotify09.c:234: PASS: group 1 got no event
fanotify09.c:234: PASS: group 2 got no event
fanotify09.c:161: INFO: Test #1: Events on children and subdirs with both inode and mount marks
fanotify09.c:150: PASS: group 0 got event: mask 2 pid=2590 fd=9 path=/tmp/ltp-N2EML7bHjo/2rOQpx/mntpoint/tfile_2590
fanotify09.c:150: PASS: group 0 got event: mask 10 pid=2590 fd=10 path=/tmp/ltp-N2EML7bHjo/2rOQpx/mntpoint/testdir
fanotify09.c:202: FAIL: first group got more than 2 events (72 > 48)
fanotify09.c:234: PASS: group 1 got no event
fanotify09.c:234: PASS: group 2 got no event

Summary:
passed 7
failed 1
skipped 0
warnings 0
<<<execution_status>>>

So it's the second test that's failing, which was report in bug 1804594

Therefore I will invalid the xenial related task here.

tags: removed: xenial
summary: - fanotify09 in LTP syscall test failed with T/X/A kernel
+ fanotify09 test case 0 in LTP syscall test failed with T kernel
Brad Figg (brad-figg)
tags: added: ubuntu-certified
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-ltp-syscalls
Alex Hung (alexhung)
Changed in linux (Ubuntu Bionic):
status: New → Invalid
Revision history for this message
Alex Hung (alexhung) wrote :

The attached is a backported patch for fanotify09 for trusty kernel. The test result was improved (as below) but it doesn't eliminate all failures.

$ sudo ./fanotify09
tst_test.c:1118: INFO: Timeout per run is 0h 05m 00s
fanotify09.c:161: INFO: Test #0: Events on children with both inode and mount marks
fanotify09.c:150: PASS: group 0 got event: mask 2 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/tfile_7950
fanotify09.c:202: FAIL: first group got more than 1 events (48 > 24)
fanotify09.c:218: FAIL: group 1 got event
fanotify09.c:150: PASS: group 1 got event: mask 10 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/testdir
fanotify09.c:218: FAIL: group 2 got event
fanotify09.c:150: PASS: group 2 got event: mask 10 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/testdir
fanotify09.c:161: INFO: Test #1: Events on children and subdirs with both inode and mount marks
fanotify09.c:150: PASS: group 0 got event: mask 2 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/tfile_7950
fanotify09.c:150: PASS: group 0 got event: mask 10 pid=7950 fd=7 path=/tmp/4gc48T/mntpoint/testdir
fanotify09.c:218: FAIL: group 1 got event
fanotify09.c:150: PASS: group 1 got event: mask 10 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/testdir
fanotify09.c:218: FAIL: group 2 got event
fanotify09.c:150: PASS: group 2 got event: mask 10 pid=7950 fd=6 path=/tmp/4gc48T/mntpoint/testdir

tags: added: patch
tags: added: aws-hwe sru-20210412 xenial
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.