Details

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

    Description

      ptlrpc: Use after free of 'conn' in rhashtable retry

      Use after free of 'conn' in the uncommon case of
      rhashtable_lookup_get_insert_fast failing with -EBUSY or -ENOMEM

      Move OBD_FREE_PTR(conn) below the retry and set conn2 to NULL
      on error, propagating to conn and returning to the caller.

      Fixes: 37b29a8f70 ("LU-8130 ptlrpc: convert conn_hash to rhashtable");

      Attachments

        Activity

          [LU-15634] Use after free in ptlrpc
          pjones Peter Jones added a comment -

          Landed for 2.15

          pjones Peter Jones added a comment - Landed for 2.15

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46763/
          Subject: LU-15634 ptlrpc: Use after free of 'conn' in rhashtable retry
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 9dcbf8b3d44f9bb2b1d9c3ac6036345bad827797

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46763/ Subject: LU-15634 ptlrpc: Use after free of 'conn' in rhashtable retry Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9dcbf8b3d44f9bb2b1d9c3ac6036345bad827797

          "Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46763
          Subject: LU-15634 ptlrpc: Use after free of 'conn' in rhashtable retry
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: ba185ad950b678dfbada531e6425fbbdaa1e18e3

          gerrit Gerrit Updater added a comment - "Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46763 Subject: LU-15634 ptlrpc: Use after free of 'conn' in rhashtable retry Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: ba185ad950b678dfbada531e6425fbbdaa1e18e3

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: