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

Null pointer deerference in lov_add_mgc_target

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

        Issue Links

          Activity

            People

              tappro Mikhail Pershin
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: