Project

General

Profile

Actions

Bug #58760

closed

kclient: xfstests-dev generic/317 failed

Added by Xiubo Li about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

http://qa-proxy.ceph.com/teuthology/xiubli-2023-02-16_01:24:45-fs:fscrypt-wip-fscrypt-20230215-0834-distro-default-smithi/7175778/teuthology.log

2023-02-16T02:47:46.428 INFO:teuthology.orchestra.run.smithi149.stdout:generic/317       - output mismatch (see /tmp/tmp.WJWgscIHu0xfstests-dev/results//generic/317.out.bad)
2023-02-16T02:47:46.438 INFO:teuthology.orchestra.run.smithi149.stdout:    --- tests/generic/317.out    2023-02-16 01:53:04.378954349 +0000
2023-02-16T02:47:46.438 INFO:teuthology.orchestra.run.smithi149.stdout:    +++ /tmp/tmp.WJWgscIHu0xfstests-dev/results//generic/317.out.bad    2023-02-16 02:47:46.424478624 +0000
2023-02-16T02:47:46.438 INFO:teuthology.orchestra.run.smithi149.stdout:    @@ -4,9 +4,7 @@
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:       Size: 0            Filetype: Regular File
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:       Mode: (0644/-rw-r--r--)         Uid: (qa_user)  Gid: (qa_user)
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:     From user_ns
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:    -  File: "$SCRATCH_MNT/file1" 
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:    -  Size: 0            Filetype: Regular File
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:    -  Mode: (0644/-rw-r--r--)         Uid: (0)  Gid: (0)
2023-02-16T02:47:46.439 INFO:teuthology.orchestra.run.smithi149.stdout:    +execvp: Permission denied
2023-02-16T02:47:46.440 INFO:teuthology.orchestra.run.smithi149.stdout:    ...
2023-02-16T02:47:46.440 INFO:teuthology.orchestra.run.smithi149.stdout:    (Run 'diff -u /tmp/tmp.WJWgscIHu0xfstests-dev/tests/generic/317.out /tmp/tmp.WJWgscIHu0xfstests-dev/results//generic/317.out.bad'  to see the entire diff)
2023-02-16T02:47:47.651 INFO:teuthology.orchestra.run.smithi149.stdout:generic/318        1s
2023-02-16T02:47:48.589 INFO:teuthology.orchestra.run.smithi149.stdout:generic/319        1s
Actions #1

Updated by Xiubo Li about 1 year ago

I reproduced it by:

$ chmod g-rwx,o-rwx xfstests-dev/
$ cd xfstests-dev/
$ ./check generic/317
FSTYP         -- ceph
PLATFORM      -- Linux/x86_64 lxbceph1 6.2.0-rc7-00074-gd9ba97321a89 #211 SMP PREEMPT_DYNAMIC Wed Feb 22 14:28:15 CST 2023
MKFS_OPTIONS  -- 10.72.47.117:40602:/testB
MOUNT_OPTIONS -- -o test_dummy_encryption,name=admin,nowsync,copyfrom,rasize=4096,context=system_u:object_r:root_t:s0 -o context=system_u:object_r:root_t:s0 10.72.47.117:40602:/testB /mnt/kcephfs.B

generic/317 3s ... - output mismatch (see /data/xfstests-dev/results//generic/317.out.bad)
    --- tests/generic/317.out    2022-04-07 21:42:10.266031987 +0800
    +++ /data/xfstests-dev/results//generic/317.out.bad    2023-02-23 10:22:01.252640859 +0800
    @@ -4,9 +4,7 @@
       Size: 0            Filetype: Regular File
       Mode: (0644/-rw-r--r--)         Uid: (qa_user)  Gid: (qa_user)
     From user_ns
    -  File: "$SCRATCH_MNT/file1" 
    -  Size: 0            Filetype: Regular File
    -  Mode: (0644/-rw-r--r--)         Uid: (0)  Gid: (0)
    +execvp: Permission denied

     *** Remounting ***

    @@ -15,6 +13,4 @@
       Size: 0            Filetype: Regular File
       Mode: (0644/-rw-r--r--)         Uid: (qa_user)  Gid: (qa_user)
     From user_ns
    -  File: "$SCRATCH_MNT/file1" 
    -  Size: 0            Filetype: Regular File
    -  Mode: (0644/-rw-r--r--)         Uid: (0)  Gid: (0)
    +execvp: Permission denied
Ran: generic/317
Failures: generic/317
Failed 1 of 1 tests

And also when clone the xfstests-dev.git repo for the qa test it will make one temporary directory, which the mode is drwx------, so the the user namespace as the other user it couldn't access the temporary dirctory:

drwx------. 18 ubuntu ubuntu      4096 Feb 22 14:49 tmp.Xg4r1SWWuNxfstests-dev
Actions #3

Updated by Xiubo Li about 1 year ago

  • Project changed from Linux kernel client to CephFS
  • Pull request ID set to 50217
Actions #4

Updated by Xiubo Li about 1 year ago

  • Status changed from New to Resolved
Actions #5

Updated by Venky Shankar about 1 year ago

Xiubo, does this need backporting? (and other xfstests-dev related changes)

Actions

Also available in: Atom PDF