linux/drivers/staging
Liang Zhen 5b16d52be0 staging: lustre: recv could access freed message
When lnet_parse_put calls lnet_ptl_match_md, this function can attach
current message on the delayed list if there is no match. It means
this message can be taken over and freed by another thread who is
posting new MD, then it is not safe for caller of lnet_parse_put to
check this message again.

This patch fixes this issue by adding a local variable "ready_delay"
to store corresponding status of lnet_msg, so lnet doesn't need to
check the message again if lnet_ptl_match_md returned MATCH_NONE for
it.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7324
Reviewed-on: http://review.whamcloud.com/17065
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-02 15:23:49 -08:00
..
android staging: android: Remove unneeded else following a return 2016-02-20 15:24:51 -08:00
board Staging: board: Blank lines aren't necessary before a close brace 2016-02-07 19:57:22 -08:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi staging: comedi: COMEDI_BUFINFO: terminate "write" command when stopped 2016-02-20 15:25:58 -08:00
dgnc staging: dgnc: convert to wait_event_interruptible_timeout 2016-02-11 19:51:46 -08:00
emxx_udc staging: emxx_udc: Remove header file 2016-02-22 12:03:22 -08:00
fbtft staging: fbtft: Fix block comment coding style 2016-02-20 15:09:57 -08:00
fsl-mc staging: fsl-mc: Remove unneeded else following a return 2016-02-20 15:14:59 -08:00
fwserial staging: fwserial: (coding-style) rewrite comparisons to NULL as "!fifo->data" 2016-02-07 19:36:14 -08:00
gdm72xx Staging: gdm72xx: Remove wrapper function put_event_entry 2016-02-20 15:36:49 -08:00
gdm724x staging: gdm724x: gdm_mux: Remove create_workqueue() 2016-02-14 16:52:15 -08:00
goldfish staging: goldfish: goldfish_nand: Return correct error code 2016-02-14 16:52:53 -08:00
gs_fpgaboot Staging: gs_fpgaboot: fix data types in gs_fpgaboot.c 2016-02-07 20:07:29 -08:00
iio Third set of IIO new device support, features and cleanups for the 4.6 cycle. 2016-03-01 16:31:55 -08:00
lustre staging: lustre: recv could access freed message 2016-03-02 15:23:49 -08:00
media staging: media: davinci_vpfe: remove ret variable in switch statements 2016-02-20 14:56:47 -08:00
most staging: most: hdm-usb: Use macro DIV_ROUND_UP 2016-02-25 22:35:10 -08:00
mt29f_spinand staging: mt29f_spinand: Remove unneeded else following return 2016-02-20 15:24:51 -08:00
netlogic staging: netlogic: Return zero pointer after failed kmalloc 2016-02-20 14:59:37 -08:00
nvec staging: nvec: Fix alignment with the open parenthesis 2016-02-20 15:28:48 -08:00
octeon Staging: octeon: Remove blank lines after open braces 2016-02-20 15:14:14 -08:00
octeon-usb staging: octeon-usb: update TODO 2016-02-25 22:38:16 -08:00
rdma staging: rdma: hfi1: Remove header file 2016-02-22 12:03:22 -08:00
rtl8188eu staging: rtl8188eu: os_dep: Remove header file 2016-02-22 12:03:22 -08:00
rtl8192e staging: rtl8192e: Drop useless initialisation 2016-02-20 15:12:06 -08:00
rtl8192u staging: rtl8192u: Remove create_workqueue() 2016-02-20 15:09:57 -08:00
rtl8712 staging: rtl8712: Replace explicit NULL comparison 2016-02-20 15:18:33 -08:00
rtl8723au staging: rtl8723au: hal: Use macro ARRAY_SIZE 2016-02-20 15:04:11 -08:00
rts5208 Staging: rts5208: rtsx_transport.c: Fix comparisons to NULL 2016-02-20 15:35:42 -08:00
skein
slicoss staging: slicoss: Align #define constants 2016-02-11 19:50:11 -08:00
sm750fb staging: sm750fb: Remove header files 2016-02-22 12:03:22 -08:00
speakup staging: speakup: Fix block comment style 2016-02-14 16:49:09 -08:00
ste_rmi4 staging: ste_rmi4: avoid unused function warnings 2016-02-07 20:03:50 -08:00
unisys staging: unisys: visorinput depends on INPUT 2016-03-01 19:14:19 -08:00
vme
vt6655 staging: vt6655: Add missing blank line after declaration 2016-02-14 16:58:33 -08:00
vt6656 staging: vt6656: simplify tests of successful urb status 2016-02-20 15:22:18 -08:00
wilc1000 staging: wilc1000: wilc_wlan: Remove wrapper function 2016-03-01 19:42:32 -08:00
wlan-ng staging: wlan-ng: fix NULL comparison 2016-02-20 14:53:27 -08:00
xgifb staging: xgifb: Fix comment style 2016-02-14 17:01:26 -08:00
Kconfig misc: Move panel driver out of staging 2016-02-03 14:14:22 -08:00
Makefile staging: drop kbuild workaround dummy module from top dir 2016-02-07 18:40:03 -08:00