https://github.com/torvalds/linux
Revision 3934df345aaa43af0f11b7d51981257bd8b67b8b authored by Mike Christie on 15 January 2018, 20:37:59 UTC, committed by Bryant G. Ly on 28 February 2018, 20:06:40 UTC
If we are failing the command due to a qfull timeout we are
also freeing the tcmu command, so we cannot access it later
to get the se_cmd.

Note: The clearing of cmd->se_cmd is not needed. We do not check
it later for something like determining if the command was failed
due to a timeout. As a result I am dropping it.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent dbe0803
History
Tip revision: 3934df345aaa43af0f11b7d51981257bd8b67b8b authored by Mike Christie on 15 January 2018, 20:37:59 UTC
tcmu: fix cmd user after free
Tip revision: 3934df3
File Mode Size
Kconfig -rw-r--r-- 59.7 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 14.7 KB
do_mounts.h -rw-r--r-- 1.1 KB
do_mounts_initrd.c -rw-r--r-- 3.5 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.4 KB
init_task.c -rw-r--r-- 838 bytes
initramfs.c -rw-r--r-- 14.1 KB
main.c -rw-r--r-- 26.7 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.3 KB

back to top