commit | 5fb4e288a025af1abc5c67ecebf30fbf6b3edad1 | [log] [tgz] |
---|---|---|
author | Christopher Oo <t-chriso@microsoft.com> | Thu Jun 25 16:10:48 2015 -0700 |
committer | Steve French <smfrench@gmail.com> | Thu Aug 20 10:19:25 2015 -0500 |
tree | 751d20a93eb2f92415213fc068e6daa95e839119 | |
parent | 0a6d0b64120759df8b9291af92d998ed1cbefc9d [diff] |
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: Christopher Oo <t-chriso@microsoft.com>