Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.10.0
-
3
-
9223372036854775807
Description
Found 17 new static analysis issues in v2_9_52_0-35-ge0e9ea6:
- Suspicious dereference of pointer before NULL check
- lnet/lnet/lib-move.c: in lnet_select_pathway, Suspicious dereference of pointer 'best_gw' before NULL check at line 1672
- Null pointer may be dereferenced
- lnet/utils/lnetctl.c: in jt_add_peer_nid, Null pointer 'nids' that comes from line 1091 may be dereferenced at line 1136.
- Null pointer will be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in handle_yaml_del_ni, Null pointer '...?&nw_descr
(void* )0)' that comes from line 2768 will be dereferenced at line 2768.
- lnet/utils/lnetconfig/liblnetconfig.c: in handle_yaml_del_ni, Null pointer '...?&nw_descr
- Null pointer may be dereferenced
- lnet/lnet/lib-move.c: in lnet_select_pathway, Null pointer 'best_ni' that comes from line 1414 may be dereferenced at line 1560.
- Pointer may be passed to function that can dereference it after it was positively checked for NULL
- lnet/lnet/lib-move.c: in lnet_select_pathway, Pointer 'best_ni' checked for NULL at line 1469 may be passed to function and may be dereferenced there by passing argument 1 to function 'lnet_ni_addref_locked' at line 1559.
- Suspicious dereference of pointer before NULL check
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_del_ni, Suspicious dereference of pointer 'nw_descr' before NULL check at line 1447
- Result of function that can return NULL may be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_numa_range, Pointer 'root' returned from call to function 'cYAML_create_object' at line 2257 may be NULL and may be dereferenced at line 2278.
- Null pointer may be passed to function that may dereference it
- lnet/lnet/lib-move.c: in lnet_select_pathway, Null pointer 'best_ni' that comes from line 1414 may be passed to function and can be dereferenced there by passing argument 1 to function 'lnet_ni_addref_locked' at line 1559.
- Uninitialized Variable - possible
- lnet/lnet/peer.c: in lnet_add_prim_lpni, 'rc' might be used uninitialized in this function.
- Null pointer may be dereferenced
- lnet/utils/lnetctl.c: in jt_del_peer_nid, Null pointer 'nids' that comes from line 1150 may be dereferenced at line 1188.
- Uninitialized Variable - possible
- lnet/utils/lnetconfig/liblnetconfig.c: in handle_yaml_config_ni, 'nw_descr.nw_id' might be used uninitialized in this function.
- Result of function that may return NULL will be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_config_ni, Pointer 'conf' returned from call to function 'calloc' at line 1336 may be NULL and will be dereferenced at line 1342.
- Result of function that may return NULL will be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_ioctl_config_ni, Pointer 'conf' returned from call to function 'calloc' at line 1192 may be NULL and will be dereferenced at line 1198.
- Resource leak
- lnet/utils/lnetconfig/liblnetconfig.c: in socket_intf_query, Resource acquired to 'sockfd' at line 914 may be lost here. Also there is one similar error on line 923.
- Pointer may be dereferenced after it was positively checked for NULL
- lnet/lnet/lib-move.c: in lnet_select_pathway, Pointer 'best_ni' checked for NULL at line 1469 may be dereferenced at line 1560.
- Pointer may be dereferenced after it was positively checked for NULL
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_numa_range, Pointer 'root' checked for NULL at line 2258 may be dereferenced at line 2278.
- Null pointer may be dereferenced
- lnet/utils/lnetconfig/liblnetconfig.c: in lustre_lnet_show_numa_range, Null pointer 'root' that comes from line 2240 may be dereferenced at line 2278.
The list of commits since the previous build v2_9_52_0-0-gbd197db:
| e0e9ea6 | |
| 97b5d13 | |
| f3a8c0f | |
| c14ef7b | |
| 4d2ad7d | |
| 9ff3b40 | |
| f85f1cd | |
| b38eb0b | |
| f285d82 | |
| 003ff68 | |
| b9880b8 | |
| c9d48ea | |
| 76adbed | |
| e6f4713 | |
| b704f1b | |
| 376633a | |
| a52d11f | |
| c906ab9 | |
| baf1a98 | |
| 63c3e51 | |
| 2d12c15 | |
| e1526ef | |
| 362e52e | |
| fa8b4e6 | |
| d704b0e | |
| d8792a7 | |
| fa72765 | |
| f016fea | |
| 8db1193 | |
| def25e9 | |
| 973a106 | |
| 3c62efb | |
| 24b1bba | |
| 58091af | |
| 8cbb8cd |
Attachments
Issue Links
- is related to
-
LU-4629 Issues found by static analysis tools
-
- Resolved
-