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

kfilnd_tn_alloc() may call kfilnd_ep_put_key() unbalanced with kfilnd_ep_get_key()

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      kfilnd_tn_alloc(..., bool need_key)
      ...
      	if (need_key) {
      		rc = kfilnd_ep_get_key(ep);
      ..
      err_put_key:
              kfilnd_ep_put_key(ep, key);   <<< this causes NULL pointer dereference if need_key is false
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            vsaveliev Vladimir Saveliev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: