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

invalid pool name accepted when setting stripe information

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.6.0
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      14962

      Description

      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
      

        Attachments

          Activity

            People

            • Assignee:
              yujian Jian Yu
              Reporter:
              nedbass Ned Bass
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: