Project

General

Profile

action #66203

[kernel][ltp] test fails in ioctl_loop05 - LOOP_SET_DIRECT_IO succeeded unexpectedly

Added by pcervinka 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Bugs in existing tests
Target version:
SUSE QA tests - Done - kernel&network
Start date:
2020-04-29
Due date:
% Done:

0%

Estimated time:
Difficulty:
Duration:

Description

Observation

openQA test in scenario sle-15-SP2-Online-aarch64-ltp_syscalls_debug_pagealloc@aarch64-virtio fails in
ioctl_loop05

Test suite description

maintainer: pvorel, rpalethorpe. A large collection of tests for individual system calls. This is generally considered to be the most important test suit within the LTP. The IPC tests have been filtered out from the syscalls runtest file. They are ran as part of the syscalls_ipc test case.
NOTE: for GRUB_BOOT_NONDEFAULT=1 depends on order in GRUB_PARAM in install_ltp job.

Reproducible

Fails since (at least) Build 136.2

Expected result

Last good: 128.1 (or more recent)

Further details

Always latest result in this scenario: latest

ioctl_loop05.c:36: PASS: lo_flags has LO_FLAGS_DIRECT_IO flag
ioctl_loop05.c:40: PASS: /sys/block/loop0/loop/dio = 1
ioctl_loop05.c:38: PASS: lo_flags doesn't have LO_FLAGS_DIRECT_IO flag
ioctl_loop05.c:40: PASS: /sys/block/loop0/loop/dio = 0
ioctl_loop05.c:61: PASS: LOOP_SET_DIRECT_IO succeeded
ioctl_loop05.c:36: PASS: lo_flags has LO_FLAGS_DIRECT_IO flag
ioctl_loop05.c:40: PASS: /sys/block/loop0/loop/dio = 1
ioctl_loop05.c:74: FAIL: LOOP_SET_DIRECT_IO succeeded unexpectedly
Failed.
Test took approximately 0.693848999000693 seconds
Some test output could not be parsed: 7 lines were ignored.

History

#1 Updated by metan 4 months ago

There does not seem to be anything wrong with the test, it works fine on different filesystem but fails on Btrfs for some reason.

Looking at the kernel code it may be that inode->i_sb->s_bdev is not set on Btrfs, but I would have to talk to kernel devs about this.

#2 Updated by metan 4 months ago

Patch to the test send to ML after confirming with jeffm.

http://lists.linux.it/pipermail/ltp/2020-April/016850.html

#3 Updated by pvorel 4 months ago

  • Status changed from New to Feedback

Thanks, metan!

#4 Updated by metan 3 months ago

The fix has been pushed, the test should be fine in the next testrun.

#5 Updated by metan 3 months ago

  • Status changed from Feedback to Resolved

Test is working fine in latest build.

#6 Updated by pcervinka 3 months ago

  • Target version changed from doing board - kernel to Done - kernel&network

#7 Updated by pvorel 2 months ago

NOTE: it was also broken on other archs, not just aarch64

And 4 days ago Jan Stancek pushed fix for ioctl_loop05 on s390 (not relevant to this)
https://github.com/linux-test-project/ltp/commit/5a1897f04b95e2a4c966a6057bdeaff0fd195c0b

Also available in: Atom PDF