Revision 0db99e3359234be181590463184b9959059a9ea9 authored by Mike Christie on 26 August 2006, 07:00:22 UTC, committed by James Bottomley on 26 August 2006, 15:03:14 UTC
The callers of scsi_send_eh_cmnd are setting the cmnd buffer,
and then scsi_send_eh_cmnd is copying that updated buffer to
the old_cmnd variable. Then after the command runs, we end up
copying that old_cmnd var which has the new cmnd to the scsi
command buffer. When this command gets recent, all types of fun
things happen like getting TUR or START_STOP commands with
data and scatterlists.

This patch made against scsi-rc-fixes, has the callers of
scsi_send_eh_cmnd pass in the command so scsi_send_eh_cmnd
can do the right thing. This should go into 2.6.18 since this
fixes a regression added when we removed some of the scsi_cmnd
fields and replaced them with local variables.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 15a3758
History
File Mode Size
irq
power
time
.gitignore -rw-r--r-- 51 bytes
Kconfig.hz -rw-r--r-- 1.2 KB
Kconfig.preempt -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 2.8 KB
acct.c -rw-r--r-- 16.6 KB
audit.c -rw-r--r-- 32.0 KB
audit.h -rw-r--r-- 4.6 KB
auditfilter.c -rw-r--r-- 41.9 KB
auditsc.c -rw-r--r-- 46.3 KB
capability.c -rw-r--r-- 6.6 KB
compat.c -rw-r--r-- 24.3 KB
configs.c -rw-r--r-- 3.2 KB
cpu.c -rw-r--r-- 4.9 KB
cpuset.c -rw-r--r-- 72.3 KB
delayacct.c -rw-r--r-- 4.6 KB
dma.c -rw-r--r-- 3.5 KB
exec_domain.c -rw-r--r-- 4.3 KB
exit.c -rw-r--r-- 41.7 KB
extable.c -rw-r--r-- 2.0 KB
fork.c -rw-r--r-- 40.7 KB
futex.c -rw-r--r-- 44.8 KB
futex_compat.c -rw-r--r-- 3.6 KB
hrtimer.c -rw-r--r-- 19.8 KB
itimer.c -rw-r--r-- 9.3 KB
kallsyms.c -rw-r--r-- 10.4 KB
kexec.c -rw-r--r-- 27.5 KB
kfifo.c -rw-r--r-- 4.6 KB
kmod.c -rw-r--r-- 7.5 KB
kprobes.c -rw-r--r-- 18.3 KB
ksysfs.c -rw-r--r-- 2.3 KB
kthread.c -rw-r--r-- 6.7 KB
lockdep.c -rw-r--r-- 67.6 KB
lockdep_internals.h -rw-r--r-- 2.4 KB
lockdep_proc.c -rw-r--r-- 10.0 KB
module.c -rw-r--r-- 58.7 KB
mutex-debug.c -rw-r--r-- 3.0 KB
mutex-debug.h -rw-r--r-- 1.7 KB
mutex.c -rw-r--r-- 9.2 KB
mutex.h -rw-r--r-- 1.1 KB
panic.c -rw-r--r-- 6.3 KB
params.c -rw-r--r-- 16.7 KB
pid.c -rw-r--r-- 8.4 KB
posix-cpu-timers.c -rw-r--r-- 41.1 KB
posix-timers.c -rw-r--r-- 27.5 KB
printk.c -rw-r--r-- 27.3 KB
profile.c -rw-r--r-- 14.5 KB
ptrace.c -rw-r--r-- 12.1 KB
rcupdate.c -rw-r--r-- 17.5 KB
rcutorture.c -rw-r--r-- 19.6 KB
relay.c -rw-r--r-- 23.9 KB
resource.c -rw-r--r-- 12.5 KB
rtmutex-debug.c -rw-r--r-- 5.7 KB
rtmutex-debug.h -rw-r--r-- 1.4 KB
rtmutex-tester.c -rw-r--r-- 9.0 KB
rtmutex.c -rw-r--r-- 25.4 KB
rtmutex.h -rw-r--r-- 1.1 KB
rtmutex_common.h -rw-r--r-- 3.2 KB
rwsem.c -rw-r--r-- 2.4 KB
sched.c -rw-r--r-- 172.3 KB
seccomp.c -rw-r--r-- 1.1 KB
signal.c -rw-r--r-- 66.0 KB
softirq.c -rw-r--r-- 14.1 KB
softlockup.c -rw-r--r-- 3.9 KB
spinlock.c -rw-r--r-- 10.1 KB
stacktrace.c -rw-r--r-- 462 bytes
stop_machine.c -rw-r--r-- 4.7 KB
sys.c -rw-r--r-- 49.0 KB
sys_ni.c -rw-r--r-- 3.7 KB
sysctl.c -rw-r--r-- 59.7 KB
taskstats.c -rw-r--r-- 12.9 KB
time.c -rw-r--r-- 17.1 KB
timer.c -rw-r--r-- 50.2 KB
uid16.c -rw-r--r-- 5.1 KB
unwind.c -rw-r--r-- 23.7 KB
user.c -rw-r--r-- 5.1 KB
wait.c -rw-r--r-- 7.3 KB
workqueue.c -rw-r--r-- 17.1 KB

back to top