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

mdd: NULL pointer dereference in mdd_changelog_data_store_by_fid()

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0
    • Lustre 2.11.0
    • 3
    • 9223372036854775807

    Description

      mdd_changelog_data_store_by_fid() uses lu_ucred() but only part of the function is aware that the return value may be NULL.This issue is more or less a duplicate of LU-5938 (at least the fix is similar).

      Here is a failed test run that ran into the issue (and more precisely, here is thelog file that highlights the issue).

      Attachments

        Issue Links

          Activity

            [LU-10454] mdd: NULL pointer dereference in mdd_changelog_data_store_by_fid()
            pjones Peter Jones added a comment -

            Landed for 2.11. Is this needed on b2_10?

            pjones Peter Jones added a comment - Landed for 2.11. Is this needed on b2_10?

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30707/
            Subject: LU-10454 mdd: check return value of lu_ucred()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 45b3c7a05aac591b6b339bece4ff48306b29f00f

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30707/ Subject: LU-10454 mdd: check return value of lu_ucred() Project: fs/lustre-release Branch: master Current Patch Set: Commit: 45b3c7a05aac591b6b339bece4ff48306b29f00f

            This is one reason why I've been asking for the llog_reader functionality in https://review.whamcloud.com/30315 to be included into each of the patches adding functionality, and then testing that functionality in the patch that adds it...

            adilger Andreas Dilger added a comment - This is one reason why I've been asking for the llog_reader functionality in https://review.whamcloud.com/30315 to be included into each of the patches adding functionality, and then testing that functionality in the patch that adds it...

            My bad (that's twice now =/).

            bougetq Quentin Bouget (Inactive) added a comment - My bad (that's twice now =/).

            Hello Quentin, this problem had just been reported by Oleg in LU-10450 !!
            BTW, your fix proposal looks ok to address the Oops but as per Oleg's comments there, code from suspected LU-9727 patch at https://review.whamcloud.com/28114 may also need more adjustments.

            bfaccini Bruno Faccini (Inactive) added a comment - Hello Quentin, this problem had just been reported by Oleg in LU-10450 !! BTW, your fix proposal looks ok to address the Oops but as per Oleg's comments there, code from suspected LU-9727 patch at https://review.whamcloud.com/28114 may also need more adjustments.

            Quentin Bouget (quentin.bouget@cea.fr) uploaded a new patch: https://review.whamcloud.com/30707
            Subject: LU-10454 mdd: check return value of lu_ucred()
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: befe4f4ed9bdc94a76d4bb564a3c11e5f6b8088d

            gerrit Gerrit Updater added a comment - Quentin Bouget (quentin.bouget@cea.fr) uploaded a new patch: https://review.whamcloud.com/30707 Subject: LU-10454 mdd: check return value of lu_ucred() Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: befe4f4ed9bdc94a76d4bb564a3c11e5f6b8088d

            People

              bougetq Quentin Bouget (Inactive)
              cealustre CEA
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: