Details

    • Technical task
    • Resolution: Fixed
    • Major
    • Lustre 2.5.0
    • Lustre 2.4.0, Lustre 2.1.3
    • 5275

    Description

      Thanks to the Coverity tool, we found some Null pointer dereferences in the Lustre code.

      I will propose a patch to address the issues.

      Attachments

        Activity

          [LU-2217] Fix 'NULL pointer dereference' errors
          pjones Peter Jones added a comment -

          Landed for 2.5

          pjones Peter Jones added a comment - Landed for 2.5

          Hi,

          After reviews, I removed unnecessary assertions from the patches. As the resulting patches are a lot smaller, I reintegrated all the modifications into a single patch, pushed here:
          http://review.whamcloud.com/4720

          The other patches are abandoned.

          Sebastien.

          sebastien.buisson Sebastien Buisson (Inactive) added a comment - Hi, After reviews, I removed unnecessary assertions from the patches. As the resulting patches are a lot smaller, I reintegrated all the modifications into a single patch, pushed here: http://review.whamcloud.com/4720 The other patches are abandoned. Sebastien.
          emoly.liu Emoly Liu added a comment -

          Oleg,

          As Keith mentioned, these patches are a great many LASSERT adds, something like LU-1961, so could you please take a look at them?

          Thanks,
          Emoly

          emoly.liu Emoly Liu added a comment - Oleg, As Keith mentioned, these patches are a great many LASSERT adds, something like LU-1961 , so could you please take a look at them? Thanks, Emoly
          sebastien.buisson Sebastien Buisson (Inactive) added a comment - The big patch proposed initially has been split into four smaller ones: http://review.whamcloud.com/4720 http://review.whamcloud.com/4721 http://review.whamcloud.com/4722 http://review.whamcloud.com/4723
          emoly.liu Emoly Liu added a comment -

          The patch has been reviewed. Since the new assetion in mdt_open.c caused recovery-small.sh test_23 and replay-single.sh test_14 failure, the patch needs to be revised further.

          emoly.liu Emoly Liu added a comment - The patch has been reviewed. Since the new assetion in mdt_open.c caused recovery-small.sh test_23 and replay-single.sh test_14 failure, the patch needs to be revised further.
          emoly.liu Emoly Liu added a comment -

          Sorry for my late reply. I am still relative new for jira.
          I will review this patch soon.

          Emoly

          emoly.liu Emoly Liu added a comment - Sorry for my late reply. I am still relative new for jira. I will review this patch soon. Emoly
          pjones Peter Jones added a comment -

          Thanks for the patch Sebastien.

          Emoly

          Could you please help by reviewing Sebastien's suggested patch?

          Thanks

          Peter

          pjones Peter Jones added a comment - Thanks for the patch Sebastien. Emoly Could you please help by reviewing Sebastien's suggested patch? Thanks Peter

          The patch is available here:

          http://review.whamcloud.com/4369

          It implements a defensive approach in some parts of the code, adding many LASSERT() calls.

          Thanks,
          Sebastien.

          sebastien.buisson Sebastien Buisson (Inactive) added a comment - The patch is available here: http://review.whamcloud.com/4369 It implements a defensive approach in some parts of the code, adding many LASSERT() calls. Thanks, Sebastien.

          People

            emoly.liu Emoly Liu
            sebastien.buisson Sebastien Buisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: