[LU-13775] Wrong memory copy in tgt_pages2shortio Created: 10/Jul/20  Updated: 07/Aug/20  Resolved: 07/Aug/20

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

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

tgt_pages2shortio() try to copy local pages memory to ptlrpc inline buf.

The right logic should move page @ptr to offset + count, however, it does this logic wrongly, this doesn't cause any problem so far, because normally @lnb_page_offset is 0. when i tried to play with unaligned DIO, we could hit the problem.



 Comments   
Comment by Gerrit Updater [ 10/Jul/20 ]

Wang Shilong (wshilong@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39333
Subject: LU-13775 target: fix memory copy in tgt_pages2shortio()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 07ed9ef23edbfcd4a22d09381f50ce1134f32814

Comment by Gerrit Updater [ 07/Aug/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39333/
Subject: LU-13775 target: fix memory copy in tgt_pages2shortio()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b8faae3756e5ded135b392209125975807021691

Comment by Peter Jones [ 07/Aug/20 ]

Landed for 2.14

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