[LU-7354] New static analysis issues in 2.7.62-15-g3c39aeb Created: 29/Oct/15  Updated: 30/Aug/23  Resolved: 06/Nov/15

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

Type: Bug Priority: Minor
Reporter: Dmitry Eremin (Inactive) Assignee: nasf (Inactive)
Resolution: Fixed 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 2 new static analysis issues in 2.7.62-15-g3c39aeb:

  1. Pointer may be dereferenced after it was positively checked for NULL
    • lustre/osd-ldiskfs/osd_compat.c: in osd_obj_update_entry, Pointer 'oi_fid' checked for NULL at line 581 may be dereferenced at line 589.
  2. Null pointer may be dereferenced
    • lustre/osd-ldiskfs/osd_compat.c: in osd_obj_update_entry, Null pointer 'oi_fid' that comes from line 570 may be dereferenced at line 589.

The list of commits since the previous build 2.7.61-44-g723065f:

3c39aeb LU-7040 test: skip sanity-hsm 12q for old MDSs
549c57e LU-1032 build: DKMS RPM for Lustre Client modules
52aa924 LU-6889 kernel: new kerrnel [SLES11 SP4 3.0.101-65]
069a25b LU-7299 utils: allow mkfs.lustre --index to specify in hex/dec
7a6b48c LU-7186 lod: do not propagate size if stripeless
8f9ab85 LU-7086 tests: resolve /sbin symlink in test-framework.sh
140b897 LU-7109 lfsck: update OST-index in IDIF inside OSD
13e34c1 LU-6920 test: add some slack to jobstats expiry in test_205
50f7e26 LU-6443 tests: add debugging to mmp.sh test
68eb6e8 LU-7245 socklnd: Bind peers to a specific CPT
2c00fae LU-7232 statahead: lock leaks if statahead file recreated
44247c2 LU-6895 lfsck: conflict lu_dirent_attrs members
6fb74fc LU-7263 mdt: put mnew in mdt_reint_rename_internal()
14ff781 LU-7091 mdd: refresh nlink after update linkea
44e9ec0 LU-7039 tgt: Delete txn_callback correctly in tgt_init()
5245b94 New tag 2.7.62
e55fb71 LU-7285 update: update next transno only if recovery succeeds
c5e84d5 LU-6271 osc: faulty assertion in osc_object_prune()
fed02bd LU-7195 jobstats: Allow setting static content for jobid_var
66ca2bc LU-7261 ldiskfs: fix large_xattr overwrite
abbef87 LU-6921 test: failed to operate on TBF rules


 Comments   
Comment by Joseph Gmitter (Inactive) [ 29/Oct/15 ]

Hi Fan Yong,
It appears this was introduced with the landing of http://review.whamcloud.com/#/c/16282/ for LU-7109. Can you have a look?
Thanks.
Joe

Comment by Gerrit Updater [ 02/Nov/15 ]

Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/17010
Subject: LU-7354 osd: avoid NULL pointer in osd_obj_update_entry
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f67f16fefccde70a84bcf2e202ac2bb14321e4fd

Comment by Gerrit Updater [ 06/Nov/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17010/
Subject: LU-7354 osd: avoid NULL pointer in osd_obj_update_entry
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 049252c375a2ceee41f255ab445334af2868519e

Comment by nasf (Inactive) [ 06/Nov/15 ]

The patch has been landed to master.

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