[LU-10811] New static analysis issues in v2_10_59_0-0-g108333a Created: 13/Mar/18  Updated: 30/Aug/23  Resolved: 29/Jan/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Dmitry Eremin (Inactive) Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: kw

Issue Links:
Related
is related to LU-4629 Issues found by static analysis tools Resolved
Severity: 3
Rank (Obsolete): 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

Generated at Sat Feb 10 02:38:24 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.