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

Null pointer deerference in lov_add_mgc_target

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • Lustre 2.17.0
    • Lustre 2.17.0
    • 3
    • 9223372036854775807

    Description

      smatch highlights this issue in lov_add_mdc_target() :

                   if (!lmv_obd) {
                             CERROR("%s: cannot find LMV OBD by UUID (%s)\n",
                                    lov_obd->obd_name,
                                    obd_uuid2str(&lmv_obd->obd_uuid));
                             RETURN(-ENODEV);

      lmv_obd is clearly NULL here, so attempting to print uuid of i would result in a crash.

      It's likely this condition was never hit, but I am not sure if it's jus ta typo and we wanted uuid of the lov_obd together with the name, or if we need to drop it altogether.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: