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

class_handle_hash() may return zero cookies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.4.0
    • Lustre 2.4.0
    • None
    • 3
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: