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

class_handle_hash() may return zero cookies

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.4.0
    • Fix Version/s: Lustre 2.4.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      7964

      Description

      In class_handle_hash() if a cookie of zero is really so dangerous then perhaps it shouldn't be used.

              h->h_cookie = handle_base;
              if (unlikely(handle_base == 0)) {
                      /* 
                       * Cookie of zero is "dangerous", because in many places it's
                       * assumed that 0 means "unassigned" handle, not bound to any
                       * object.
                       */
                      CWARN("The universe has been exhausted: cookie wrap-around.\n");
                      handle_base += HANDLE_INCR;
              }
      

        Attachments

          Activity

            People

            • Assignee:
              jhammond John Hammond
              Reporter:
              jhammond John Hammond
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: