[LU-8014] potential memory dereference in kuc_ispayload() Created: 12/Apr/16  Updated: 31/Aug/17  Resolved: 24/Jul/16

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

Type: Bug Priority: Minor
Reporter: Frank Zago (Inactive) Assignee: Frank Zago (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

That function takes a pointer, decrements it and dereference the new address. However we have no idea if the page it's in is readable or even exists. Such dereference would cause an oops.



 Comments   
Comment by Gerrit Updater [ 12/Apr/16 ]

Frank Zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/19494
Subject: LU-8014 hsm: remove kuc_ispayload
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 70784451511e39c21863268c63c89a10e259cddd

Comment by Frank Zago (Inactive) [ 12/Apr/16 ]

An optimization would be to use kuc_alloc earlier to allocate the hal, and change mdt_hsm_agent_send to take a KUC buffer instead of a hal.

Comment by Gerrit Updater [ 25/Apr/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19494/
Subject: LU-8014 hsm: remove kuc_ispayload
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9091a934fcff06538e277d87c3953775e692d9fa

Comment by Joseph Gmitter (Inactive) [ 27/Apr/16 ]

Landed to master for 2.9.0

Comment by Gerrit Updater [ 28/Apr/16 ]

Frank Zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/19869
Subject: LU-8014 hsm: remove invalid kuc_free in coordinator
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1db3aa54f1f41719bf1a4bec2e6d172734959c00

Comment by Andreas Dilger [ 28/Apr/16 ]

Reopen to track http://review.whamcloud.com/19869 landing.

Comment by Gerrit Updater [ 27/May/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19869/
Subject: LU-8014 hsm: remove invalid kuc_free in coordinator
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 12ac7f2baa3691eaf74d468aedb7615f6ddf6d60

Comment by Peter Jones [ 24/Jul/16 ]

Both patches now landed for 2.9

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