[LU-14732] struct hsm_user_request extent fields set to random values. Created: 02/Jun/21  Updated: 14/Jun/21  Resolved: 14/Jun/21

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

Type: Bug Priority: Minor
Reporter: James A Simmons Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: None
Environment:

RHEL7.9 client.


Issue Links:
Related
is related to LU-9680 Improve the user land to kernel space... In Progress
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

While working on another unrelated patch sanity-hsm test 29c started to fail. The reason for this failure was llapi_hsm_user_request_alloc() allocates a struct hsm_user_request but never zeros the values. So the extent fields could have random values which where sent to the MDT and back to the copytool. If the extent field was larger then the size of the migrating file then the copytool would see this as a failure. The bug was hidden due to the linking flags which in the unrelated patch changed and exposed this problem.



 Comments   
Comment by Gerrit Updater [ 14/Jun/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43893/
Subject: LU-14732 utils: ensure hsm_user_request extent fields are zero
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0cdd427e2f043cf667c9a921b48ce3b99a5f81fc

Comment by James A Simmons [ 14/Jun/21 ]

Patch has landed.

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