Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-5365

invalid pool name accepted when setting stripe information

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Lustre 2.6.0
    • None
    • 3
    • 14962

      When striping information is set for a file, the kernel will accept the name of an OST pool which does not exist. The lfs utility validates the pool name in user space, but this can be bypassed by using the ioctl() or fsetxattr() interfaces directly. See attached program.

      $  bass6@t222 >
      gcc -I lustre/include -I libcfs/include pool_test.c lustre/utils/liblustreapi.a
      $  bass6@t222 >
      sudo ./a.out /mnt/lustre/`mktemp -u XXXX` /mnt/lustre/`mktemp -u XXXX` asdf
      a.out: poolname 'asdf' accepted via ioctl() for file /mnt/lustre/uchD
      a.out: poolname 'asdf' accepted via fsetxattr() for file /mnt/lustre/Ba5t
      

            yujian Jian Yu
            nedbass Ned Bass (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: