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

Use after free, double lock found by coccinelle

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.6.0
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      14857

      Description

      When coccinelle (a static analyser) is run on the Lustre code, with the current Linux kernel scripts, it finds, amongst other things, the following errors:

        
      lustre/include/obd_support.h:792:19-22: ERROR: reference preceded by free on line 791
      lustre/ptlrpc/nrs_tbf.c:312:2-8: preceding lock on line 307
      lustre/fid/fid_handler.c:73:43-51: ERROR: cli is NULL but dereferenced.
      lustre/lfsck/lfsck_lib.c:1564:1-10: second lock on line 1571
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlevi Jodi Levi (Inactive)
                Reporter:
                fzago Frank Zago
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: