msgctl04 in ubuntu_ltp_syscalls failed with X

Bug #1782093 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Bionic by Po-Hsu Lin
Nominated for Xenial by Po-Hsu Lin

Bug Description

Steps as root:
  1. git clone --depth=1 https://github.com/linux-test-project/ltp.git
  2. cd ltp; make autotools
  3. ./configure
  4. make
  5. make install

$ sudo /opt/ltp/runltp -s msgctl02

Test output:
<<<test_start>>>
tag=msgctl04 stime=1531753902
cmdline="msgctl04"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1015: INFO: Timeout per run is 0h 05m 00s
tst_safe_sysv_ipc.c:51: BROK: msgctl04.c:93: msgget(1627521048, 600) failed: EEXIST

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

This failure can be reproduced with the kernel in -release 4.4.0-130-generic, therefore it should not be considered as a regression.

If you run only this test after a reboot, it will pass:
    incrementing stop
    tst_test.c:1015: INFO: Timeout per run is 0h 05m 00s
    msgctl04.c:72: PASS: msgctl(458754, 2, 0x55d59a243980): EACCES
    msgctl04.c:72: PASS: msgctl(491523, 2, 0xffffffffffffffff): EFAULT
    msgctl04.c:72: PASS: msgctl(491523, 1, 0xffffffffffffffff): EFAULT
    msgctl04.c:72: PASS: msgctl(491523, -1, 0x55d59a243980): EINVAL
    msgctl04.c:72: PASS: msgctl(-1, 2, 0x55d59a243980): EINVAL
    msgctl04.c:72: PASS: msgctl(-1, 1, 0x55d59a243980): EINVAL
    msgctl04.c:72: PASS: msgctl(425985, 0, (nil)): EPERM
(Also the msgctl02 test can pass multiple times after this)

There is a recent change for msgctl in the ltp repo. This test can pass with with commit revert back to 1a11467414

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-130-generic 4.4.0-130.156
ProcVersionSignature: User Name 4.4.0-130.156-generic 4.4.134
Uname: Linux 4.4.0-130-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jul 17 07:55 seq
 crw-rw---- 1 root audio 116, 33 Jul 17 07:55 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Tue Jul 17 08:25:57 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: HP ProLiant DL360 Gen9
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-130-generic.efi.signed root=UUID=051b34ce-dfed-4e36-aa78-851c5a284ee4 ro
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-130-generic N/A
 linux-backports-modules-4.4.0-130-generic N/A
 linux-firmware 1.157.20
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/27/2015
dmi.bios.vendor: HP
dmi.bios.version: P89
dmi.board.name: ProLiant DL360 Gen9
dmi.board.vendor: HP
dmi.chassis.type: 23
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrP89:bd12/27/2015:svnHP:pnProLiantDL360Gen9:pvr:rvnHP:rnProLiantDL360Gen9:rvr:cvnHP:ct23:cvr:
dmi.product.name: ProLiant DL360 Gen9
dmi.sys.vendor: HP

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
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
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Bug can be found on Bionic.

Verified with 4.18.0-041800rc5-generic, the bug still exists.

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

Issue reported upstream and fixed.
https://github.com/linux-test-project/ltp/issues/369

Changed in ubuntu-kernel-tests:
status: New → Fix Released
Changed in linux (Ubuntu):
status: Confirmed → Invalid
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.