diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2014-01-23 23:45:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 09:09:38 -0800 |
commit | aadbacc7f2f0f359bd562cb95adde3da348fb643 (patch) | |
tree | 8a3b945d03f27e839e40c0b8e3f7bf426882a757 /usr/.gitignore | |
parent | 52481e4b00f0f2922f2b0d3a3ee392677476c250 (diff) |
staging/lustre/lnet: Fix use after free in ksocknal_send
Call to ksocknal_launch_packet might schedule a callback that
might free the just sent message, and so subsequent access to it
via lntmsg->msg_vmflush goes to freed memory.
Instead we'll just remember if we are in the vmflush thread and
only restore if we happened to set mempressure flag.
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/8667
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4360
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions