Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.7.0
-
3
-
16773
Description
Found 5 new static analysis issues in 2.6.91-26-g6b0fa76:
- Result of function that may return NULL will be dereferenced
- lnet/utils/cyaml/cyaml.c: in print_value, Pointer 'node' returned from call to function 'cYAML_ll_pop' at line 886 may be NULL and will be dereferenced at line 888.
- Null pointer may be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_stats, Null pointer 'root' that comes from line 1120 may be dereferenced at line 1197 (after "goto out" in 1133).
- Result of function that can return NULL may be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_stats, Pointer 'root' returned from call to function 'cYAML_create_object' at line 1136 may be NULL and may be dereferenced at line 1197.
- Possible Buffer Overflow in Following String Operations
- lnet/utils/lnetconfig/liblnetconfig.c: in liblnetconfig.c, function 'strncpy' will fill whole buffer 'data.cfg_config_u.cfg_net.net_intf' of fixed size (128) with string value and will not leave place for NULL-terminator. Possible buffer boundaries violation in following string operations.
- Pointer may be dereferenced after it was positively checked for NULL
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_stats, Pointer 'root' checked for NULL at line 1137 may be dereferenced at line 1197.
Attachments
Issue Links
- is related to
-
LU-4629 Issues found by static analysis tools
-
- Resolved
-
Activity
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Fix Version/s | New: Lustre 2.7.0 [ 10631 ] |
Affects Version/s | New: Lustre 2.7.0 [ 10631 ] |
Assignee | Original: WC Triage [ wc-triage ] | New: Amir Shehata [ ashehata ] |
Description |
Original:
Found 5 new static analysis issues in 2.6.91-26-g6b0fa76: # *Result of function that may return NULL will be dereferenced* #* {{lnet/utils/cyaml/cyaml.c}}: in _print_value_, Pointer 'node' returned from call to function 'cYAML\_ll\_pop' at line 886 may be NULL and will be dereferenced at line 888. # *Null pointer may be dereferenced* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Null pointer 'root' that comes from line 1120 may be dereferenced at line 1197. # *Result of function that can return NULL may be dereferenced* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Pointer 'root' returned from call to function 'cYAML\_create\_object' at line 1136 may be NULL and may be dereferenced at line 1197. # *Possible Buffer Overflow in Following String Operations* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _liblnetconfig.c_, function 'strncpy' will fill whole buffer 'data.cfg\_config\_u.cfg\_net.net\_intf' of fixed size (128) with string value and will not leave place for NULL\-terminator. Possible buffer boundaries violation in following string operations. # *Pointer may be dereferenced after it was positively checked for NULL* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Pointer 'root' checked for NULL at line 1137 may be dereferenced at line 1197. |
New:
Found 5 new static analysis issues in 2.6.91-26-g6b0fa76: # *Result of function that may return NULL will be dereferenced* #* {{lnet/utils/cyaml/cyaml.c}}: in _print_value_, Pointer 'node' returned from call to function 'cYAML\_ll\_pop' at line 886 may be NULL and will be dereferenced at line 888. # *Null pointer may be dereferenced* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Null pointer 'root' that comes from line 1120 may be dereferenced at line 1197 (after "goto out" in 1133). # *Result of function that can return NULL may be dereferenced* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Pointer 'root' returned from call to function 'cYAML\_create\_object' at line 1136 may be NULL and may be dereferenced at line 1197. # *Possible Buffer Overflow in Following String Operations* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _liblnetconfig.c_, function 'strncpy' will fill whole buffer 'data.cfg\_config\_u.cfg\_net.net\_intf' of fixed size (128) with string value and will not leave place for NULL\-terminator. Possible buffer boundaries violation in following string operations. # *Pointer may be dereferenced after it was positively checked for NULL* #* {{lnet/utils/lnetconfig/liblnetconfig.c}}: in _lustre_lnet_show_stats_, Pointer 'root' checked for NULL at line 1137 may be dereferenced at line 1197. |
http://review.whamcloud.com/#/c/13115/