From: Oleg Drokin Date: Fri, 24 Jan 2014 04:45:05 +0000 (-0500) Subject: staging/lustre/lnet: Fix use after free in ksocknal_send X-Git-Tag: v3.14-rc3~12^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aadbacc7f2f0f359bd562cb95adde3da348fb643;p=pandora-kernel.git 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 Reviewed-on: http://review.whamcloud.com/8667 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4360 Reviewed-by: Liang Zhen Reviewed-by: Amir Shehata Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed