Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7352

[virtiofs][xfstest-nfs] generic/020 failed with 'Argument list too long' with --xattr

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Low
    • rhel-virt-storage
    • ssg_virtualization
    • 8
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • Automated
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      Running xfstest generic/020 on guest (virtiofs + nfs), I hit the below error.

      ```
      2023-04-22 03:01:55: 10.73.75.61generic/020
      2023-04-22 03:03:38: 10.73.75.61- output mismatch (see /home/xfstests-dev/results//generic/020.out.bad)
      2023-04-22 03:03:38: 10.73.75.61 — tests/generic/020.out 2023-04-22 15:00:05.064139777 +0800
      2023-04-22 03:03:38: 10.73.75.61 +++ /home/xfstests-dev/results//generic/020.out.bad 2023-04-22 15:03:38.020004735 +0800
      2023-04-22 03:03:38: 10.73.75.61 @@ -40,7 +40,8 @@
      2023-04-22 03:03:38: 10.73.75.61
      2023-04-22 03:03:38: 10.73.75.61 *** add lots of attributes
      2023-04-22 03:03:38: 10.73.75.61 *** check
      2023-04-22 03:03:38: 10.73.75.61 - *** MAX_ATTRS attribute(s)
      2023-04-22 03:03:38: 10.73.75.61 +getfattr: /mnt/myfs1/attribute_45109: Argument list too long
      2023-04-22 03:03:38: 10.73.75.61 + *** -1 attribute(s)
      2023-04-22 03:03:38: 10.73.75.61 *** remove lots of attributes

      ```

      Version-Release number of selected component (if applicable):
      qemu-kvm-8.0.0-1.el9.x86_64
      virtiofsd-1.5.0-1.el9.x86_64
      edk2-ovmf-20230301gitf80f052277c8-2.el9.noarch
      kernel-5.14.0-300.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1. start a local nfs
      ```
      127.0.0.1:/mnt/virtio_fs1_test_nfs on /tmp/virtio_fs1_test type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=127.0.0.1,local_lock=none,addr=127.0.0.1)
      127.0.0.1:/mnt/virtio_fs2_test_nfs on /tmp/virtio_fs2_test type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=127.0.0.1,local_lock=none,addr=127.0.0.1)

      ```
      2. start a vm with virtiofs

      1. /usr/libexec/virtiofsd --socket-path=/var/tmp/avocado_lug62v1b/avocado-vt-vm1-fs1-virtiofsd.sock -o source=/tmp/virtio_fs1_test --xattr --modcaps=+sys_admin

      3. login guest and install xfstests
      setup local.config like this
      ```
      export TEST_DEV=myfs1 && export TEST_DIR=/mnt/myfs1 && export SCRATCH_DEV=myfs2 && export SCRATCH_MNT=/mnt/myfs2 && export FSTYP=virtiofs && export FSX_AVOID="-E"

      ```

      4. run generic/020 test in guest.
      ./check -virtiofs generic/020

      Actual results:
      Failed and the output is in above.

      Expected results:
      PASS

      Additional info:
      Run it on nfs, the result is PASS.
      [root@dell-per730-38 xfstests-dev]# ./check -nfs generic/020
      FSTYP – nfs
      PLATFORM – Linux/x86_64 dell-per730-38 5.14.0-300.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Apr 17 04:33:53 EDT 2023
      MKFS_OPTIONS – 127.0.0.1:/mnt/virtio_fs2_test_nfs
      MOUNT_OPTIONS – -o rw,relatime,vers=4.2 127.0.0.1:/mnt/virtio_fs2_test_nfs /home/test/test2

      generic/020 3s ... 3s
      Ran: generic/020
      Passed all 1 tests

      And this issue isn't a regression, RHEL8.8 also has the same issue. see https://bugzilla.redhat.com/show_bug.cgi?id=2158092#c6

              gmaglion German Maglione
              rhn-support-xiagao Xiaoling Gao
              German Maglione German Maglione
              Tingting Mao Tingting Mao
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: