[LU-9412] A invalid memory write in llapi_layout_to_lum Created: 27/Apr/17  Updated: 08/Jul/17  Resolved: 20/May/17

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

Type: Bug Priority: Minor
Reporter: Zhenyu Xu Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

valgrind found a bug in llapi_layout_to_lum()

 

==8402== Invalid write of size 4
==8402==    at 0x41AA66: llapi_layout_to_lum (liblustreapi_layout.c:620)
==8402==    by 0x41AE2C: llapi_layout_file_open (liblustreapi_layout.c:1460)
==8402==    by 0x408F4A: lfs_component_create (lfs.c:728)
==8402==    by 0x40B8BB: lfs_setstripe (lfs.c:1301)
==8402==    by 0x41F17E: Parser_execarg (parser.c:115)
==8402==    by 0x409A37: main (lfs.c:5467)
==8402==  Address 0x4e56a60 is 32 bytes inside a block of size 176 free'd
==8402==    at 0x4A06C20: realloc (vg_replace_malloc.c:662)
==8402==    by 0x41A91B: llapi_layout_to_lum (liblustreapi_layout.c:559)
==8402==    by 0x41AE2C: llapi_layout_file_open (liblustreapi_layout.c:1460)
==8402==    by 0x408F4A: lfs_component_create (lfs.c:728)
==8402==    by 0x40B8BB: lfs_setstripe (lfs.c:1301)
==8402==    by 0x41F17E: Parser_execarg (parser.c:115)
==8402==    by 0x409A37: main (lfs.c:5467)



 Comments   
Comment by Gerrit Updater [ 27/Apr/17 ]

Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26858
Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a35ada7011c8272ebfebe498d75b0a95bd71533a

Comment by Gerrit Updater [ 15/May/17 ]

Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/27118
Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
Project: fs/lustre-release
Branch: pfl
Current Patch Set: 1
Commit: b99a171da41ded0748d0246f959def2955ad943d

Comment by Gerrit Updater [ 17/May/17 ]

Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/27118/
Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
Project: fs/lustre-release
Branch: pfl
Current Patch Set:
Commit: 150fe4b002df23275de4b49b97cb8e4a7f3cd6f0

Comment by Gerrit Updater [ 20/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26858/
Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2270ad3c85802d5fcd3cfcbd8bd109991d8d686f

Comment by Peter Jones [ 20/May/17 ]

Landed for 2.10

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