[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 |
| Comment by Gerrit Updater [ 07/Aug/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39333/ |
| Comment by Peter Jones [ 07/Aug/20 ] |
|
Landed for 2.14 |