qemu-e2k/include
John Millikin fe9d8927e2 scsi: Add buf_len parameter to scsi_req_new()
When a SCSI command is received from the guest, the CDB length implied
by the first byte might exceed the number of bytes the guest sent. In
this case scsi_req_new() will read uninitialized data, causing
unpredictable behavior.

Adds the buf_len parameter to scsi_req_new() and plumbs it through the
call stack.

Signed-off-by: John Millikin <john@john-millikin.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1127
Message-Id: <20220817053458.698416-1-john@john-millikin.com>
[Fill in correct length for adapters other than ESP. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-09-01 07:42:37 +02:00
..
authz
block nvme: Fix misleading macro when mixed with ternary operator 2022-07-15 10:40:33 +02:00
chardev
crypto crypto: Make block callbacks return 0 on success 2022-07-12 12:14:55 +02:00
disas
exec linux-user/aarch64: Reset target data on MADV_DONTNEED 2022-08-11 11:34:17 +02:00
fpu
hw scsi: Add buf_len parameter to scsi_req_new() 2022-09-01 07:42:37 +02:00
io
libdecnumber
migration
monitor softmmu/dirtylimit: Implement dirty page rate limit 2022-07-20 12:15:08 +01:00
net
qapi
qemu util/mmap-alloc: Remove qemu_mempath_getpagesize() 2022-08-26 13:34:21 +02:00
qom qom/object: Remove circular include dependency 2022-06-28 10:53:32 +02:00
scsi scsi-disk: add SCSI_DISK_QUIRK_MODE_PAGE_VENDOR_SPECIFIC_APPLE quirk for Macintosh 2022-07-13 16:58:58 +02:00
semihosting semihosting: Remove qemu_semihosting_log_out 2022-07-12 22:32:12 +02:00
standard-headers hw/i386: pass RNG seed via setup_data entry 2022-07-22 19:26:34 +02:00
sysemu qapi: Add exit-failure PanicAction 2022-07-29 09:48:01 +01:00
tcg
ui ui/console: allow display device to be labeled with given id 2022-07-01 12:33:51 +02:00
user misc: fix commonly doubled up words 2022-08-01 11:58:02 +02:00
elf.h
glib-compat.h
qemu-io.h
qemu-main.h