Paolo Bonzini 9bd634b2f5 scsi-generic: fix buffer overflow on block limits inquiry
Using linux 6.x guest, at boot time, an inquiry on a scsi-generic
device makes qemu crash.  This is caused by a buffer overflow when
scsi-generic patches the block limits VPD page.

Do the operations on a temporary on-stack buffer that is guaranteed
to be large enough.

Reported-by: Théo Maillart <tmaillart@freebox.fr>
Analyzed-by: Théo Maillart <tmaillart@freebox.fr>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-05-18 08:53:51 +02:00
..
2023-05-16 16:21:54 +02:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-10 14:31:37 +00:00
2023-04-21 04:25:52 -04:00
2023-03-03 17:11:22 +00:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2022-10-27 11:34:31 +01:00
2023-04-20 10:21:14 +01:00