1
0
Fork 0
alistair23-linux/drivers/staging/lustre/lnet
Oleg Drokin aadbacc7f2 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>
2014-02-07 09:09:38 -08:00
..
klnds staging/lustre/lnet: Fix use after free in ksocknal_send 2014-02-07 09:09:38 -08:00
lnet staging/lustre/lnet: Add LNet Router Priority parameter 2013-12-10 18:22:55 -08:00
selftest staging: lustre: Fix typo in lustre/lnet/selftest 2013-12-17 09:46:40 -08:00
Kconfig staging: add Lustre file system client support 2013-05-14 13:54:50 -04:00
Makefile staging/lustre: fix Lustre code link order 2013-07-23 12:23:55 -07:00