[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:
Related
is related to LU-12811 lustre_swab_fiemap needs to check fm_... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Buflen should be passed to those swabbing functions who need to avoid memory corruption (Please see LU-12811).



 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.

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