[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 |
| Comment by Gerrit Updater [ 15/May/17 ] |
|
Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/27118 |
| Comment by Gerrit Updater [ 17/May/17 ] |
|
Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/27118/ |
| Comment by Gerrit Updater [ 20/May/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26858/ |
| Comment by Peter Jones [ 20/May/17 ] |
|
Landed for 2.10 |