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

New static analysis issues in v2_10_59_0-0-g108333a

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Found 1 new static analysis issues in v2_10_59_0-0-g108333a:

      1. Null pointer may be passed to function that may dereference it
        • lustre/utils/lfs.c: in lfs_quota, Null pointer 'name' that comes from line 6018 may be passed to function and can be dereferenced there by passing argument 2 to function 'get_print_quota' at line 6156.

      TRACEBACK:
      An event which alters the program's state, leading to the defect
      lfs.c:6018: 'name' has been assigned a NULL value.
      A condition which occurs, leading to the defect
      lfs.c:6028: Entering loop, because (c=getopt(argc, argv, "gi:I:o:pqtuvh" ) ) != -1 is true
      An event which alters the program's state, leading to the defect
      lfs.c:6032: Goto statement causes loop exit.
      An event which alters the program's state, leading to the defect
      lfs.c:6035: Goto statement causes loop exit.
      A condition which occurs, leading to the defect
      lfs.c:6117: qctl.qc_cmd==8388615 is false
      An event which alters the program's state, leading to the defect
      lfs.c:6156: 'name' is dereferenced by passing argument 2 to function 'get_print_quota'.
      An event which alters the program's state, leading to the defect
      lfs.c:5794: 'name' is passed to function 'get_print_quota'.
      An event which alters the program's state, leading to the defect
      lfs.c:5823: 'name' is dereferenced by passing argument 1 to function 'print_quota_title'.
      An event which alters the program's state, leading to the defect
      lfs.c:5615: 'name' is passed to function 'print_quota_title'.
      An event which alters the program's state, leading to the defect
      lfs.c:5619: 'name' is dereferenced by formatted printing function 'printf'.

      The list of commits since the previous build v2_10_58_0-135-g9ba637b:

      108333a New tag 2.10.59
      630cd49 LU-10794 lfs: make quota work for grace time
      2a5f8ce LU-10783 kernel: kernel update RHEL7.4 [3.10.0-693.21.1.el7]
      e8bafb1 LU-10750 mdd: declare changelogs only when enabled
      b231e3a LU-10465 lov: decrease default stripe size to 1MB

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              dmiter Dmitry Eremin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: