[LU-13592] Pass buflen to swabbing functions to avoid memory corruption Created: 22/May/20 Updated: 22/May/20 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Emoly Liu | Assignee: | Emoly Liu |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
Buflen should be passed to those swabbing functions who need to avoid memory corruption (Please see |
| Comments |
| Comment by Emoly Liu [ 22/May/20 ] |
|
Functions lustre_swab_lmv_mds_md() and lustre_swab_lmv_user_md() are not defined in request fields, so they can't use swabber_dumper_helper() to pass buflen. Instead, they are called by ll_dir_get_default_layout(). Let's keep this ticket open for some time for a double check in case of any memory corruption. |