Skip to content
Commit 5fb4e288 authored by Christopher Oo's avatar Christopher Oo Committed by Steve French
Browse files

cifs: Fix use-after-free on mid_q_entry



With CIFS_DEBUG_2 enabled, additional debug information is tracked inside each
mid_q_entry struct, however cifs_save_when_sent may use the mid_q_entry after it
has been freed from the appropriate callback if the transport layer has very low
latency. Holding the srv_mutex fixes this use-after-free, as cifs_save_when_sent
is called while the srv_mutex is held while the request is sent.

Signed-off-by: default avatarChristopher Oo <t-chriso@microsoft.com>
parent 0a6d0b64
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment