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

lmv_disconnect_mdc dereferences a potential NULL pointer

Details

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

    Description

      smatch found this piece in lmv_disconnect_mdc:

              if (mdc_obd) {
                      mdc_obd->obd_force = obd->obd_force;
                      mdc_obd->obd_fail = obd->obd_fail;
                      mdc_obd->obd_no_recov = obd->obd_no_recov;
              }
      
              if (lmv->targets_proc_entry != NULL)
                      lprocfs_remove_proc_entry(mdc_obd->obd_name,
                                                lmv->targets_proc_entry);
      

      Attachments

        Activity

          [LU-6517] lmv_disconnect_mdc dereferences a potential NULL pointer
          pjones Peter Jones added a comment -

          Landed for 2.8

          pjones Peter Jones added a comment - Landed for 2.8

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14605/
          Subject: LU-6517 lmv: fix potential null pointer dereference
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 47c49d3cbb21c94c03831bb4d524d53772a1c2f9

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14605/ Subject: LU-6517 lmv: fix potential null pointer dereference Project: fs/lustre-release Branch: master Current Patch Set: Commit: 47c49d3cbb21c94c03831bb4d524d53772a1c2f9
          green Oleg Drokin added a comment -

          Or should we do it unconditionally and instead of getting the name from mdc_obd scrub the name from proc entry instead somehow?

          green Oleg Drokin added a comment - Or should we do it unconditionally and instead of getting the name from mdc_obd scrub the name from proc entry instead somehow?

          Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/14605
          Subject: LU-6517 lmv: fix potential null pointer dereference
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: d09a83b72c96d08787b96308b6f463aba9d82441

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/14605 Subject: LU-6517 lmv: fix potential null pointer dereference Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d09a83b72c96d08787b96308b6f463aba9d82441

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: