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

ll_statahead_threda has incorrect error handling code

Details

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

    Description

      Commit ae828cd3b092 ("LU-4684 llite: add lock for dir layout data") for

      https://review.whamcloud.com/#/c/32946/

      changed how op_data was allocated, with consequence that failure is reported as NULL rarther than ERR_PTR(-ENOMEM).  The error handling code was not updated to match.

      So a memory allocation failure will cause a NULL pointer dereference.

      Attachments

        Activity

          [LU-12685] ll_statahead_threda has incorrect error handling code
          pjones Peter Jones added a comment -

          Landed for 2.13

          pjones Peter Jones added a comment - Landed for 2.13

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35873/
          Subject: LU-12685 llite: fix check for mem-alloc failure.
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 0f6302471fd2344aaac58a3b12af2ae108b57f90

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35873/ Subject: LU-12685 llite: fix check for mem-alloc failure. Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0f6302471fd2344aaac58a3b12af2ae108b57f90

          Neil Brown (neilb@suse.com) uploaded a new patch: https://review.whamcloud.com/35873
          Subject: LU-12685 llite: fix check for mem-alloc failure.
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 6e18b6ab0ee7c45d24fb1ab8178e1221eeca842a

          gerrit Gerrit Updater added a comment - Neil Brown (neilb@suse.com) uploaded a new patch: https://review.whamcloud.com/35873 Subject: LU-12685 llite: fix check for mem-alloc failure. Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6e18b6ab0ee7c45d24fb1ab8178e1221eeca842a

          People

            wc-triage WC Triage
            neilb Neil Brown
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: