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

mdd_rename's error handling can break namespace

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.16.0
    • Lustre 2.14.0, Lustre 2.16.0
    • None
    • 3
    • 9223372036854775807

    Description

      			rc2 = __mdd_index_insert(env, mdd_tpobj, tpobj_fid,
      						 mdd_object_type(mdd_tobj),
      						 tname, handle);
      

      i.e. mdd_rename() can insert tname pointing to own FID.

      Attachments

        Issue Links

          Activity

            [LU-17602] mdd_rename's error handling can break namespace
            pjones Peter Jones added a comment -

            Landed for 2.16

            pjones Peter Jones added a comment - Landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/54260/
            Subject: LU-17602 mdd: use correct fid in mdd_rename
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 941c0205d127082fc98d3827037cd9a21e1e29a9

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/54260/ Subject: LU-17602 mdd: use correct fid in mdd_rename Project: fs/lustre-release Branch: master Current Patch Set: Commit: 941c0205d127082fc98d3827037cd9a21e1e29a9

            Alex, thanks for finding this. Looks like it was my mistake with these variable names that are very similar.

            adilger Andreas Dilger added a comment - Alex, thanks for finding this. Looks like it was my mistake with these variable names that are very similar.

            "Alex Zhuravlev <bzzz@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/54260
            Subject: LU-17602 mdd: use correct fid in mdd_rename
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 5f11651115e5a5ff88195894ee4d7202829e3dd0

            gerrit Gerrit Updater added a comment - "Alex Zhuravlev <bzzz@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/54260 Subject: LU-17602 mdd: use correct fid in mdd_rename Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5f11651115e5a5ff88195894ee4d7202829e3dd0

            People

              bzzz Alex Zhuravlev
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: