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

Use after free in ptlrpc

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: