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
..
2022-06-28 11:06:44 +02:00
2022-07-26 10:37:46 -04:00
2022-07-18 13:20:14 +01:00
2022-04-06 14:31:55 +02:00
2022-08-25 21:59:04 +02:00
2022-06-11 11:44:50 +02:00
2022-04-06 14:31:55 +02:00
2022-08-17 07:07:37 -04:00
2022-06-09 19:32:48 -04:00
2022-08-25 21:59:04 +02:00
2021-04-09 16:05:16 -04:00
2021-05-02 17:24:51 +02:00
2022-08-17 13:08:11 -04:00
2022-08-08 11:40:06 +02:00
2022-05-19 16:19:03 +01:00
2022-07-14 16:24:38 +02:00
2022-07-18 19:28:46 +01:00
2022-05-30 19:49:42 +02:00
2022-07-14 16:24:38 +02:00
2022-08-25 21:59:04 +02:00
2022-07-12 12:14:56 +02:00
2022-07-18 19:28:46 +01:00
2022-08-01 11:58:02 +02:00
2021-09-30 13:42:10 +01:00
2022-08-01 06:40:50 -05:00
2022-06-29 00:24:59 +02:00
2022-08-05 10:02:07 -07:00
2022-08-25 21:59:04 +02:00
2022-05-13 07:57:26 -04:00
2022-04-06 14:31:55 +02:00
2022-08-08 23:23:11 +02:00
2022-08-08 23:43:11 +02:00
2022-08-09 17:02:18 +08:00
2022-07-22 19:01:44 +02:00
2021-09-30 13:42:10 +01:00
2022-08-01 12:01:21 +02:00
2022-07-12 12:14:56 +02:00
2022-05-15 10:33:01 +09:00
2022-06-30 04:49:40 +05:30
2022-06-16 12:54:57 -04:00
2022-07-26 10:40:58 -04:00
2021-05-02 17:24:50 +02:00
2022-08-25 21:59:04 +02:00
2022-04-26 12:25:14 +02:00
2022-06-15 16:43:42 +01:00
2022-07-03 10:03:20 +10:00
2022-07-05 16:17:53 +05:30
2022-07-22 19:01:44 +02:00
2022-08-25 21:59:04 +02:00
2022-09-01 07:42:37 +02:00
2022-07-12 12:14:56 +02:00
2022-07-14 16:24:38 +02:00
2022-03-21 15:44:44 +01:00
2022-03-06 05:28:55 -05:00
2022-05-12 12:29:44 +02:00
2022-06-11 11:44:50 +02:00
2022-06-30 09:21:13 +02:00
2022-06-08 19:38:47 +01:00
2022-06-09 19:32:49 -04:00
2021-07-20 20:10:21 +02:00
2022-09-01 07:42:37 +02:00
2022-06-14 10:34:37 +02:00
2022-08-17 13:08:11 -04:00
2022-07-06 10:22:38 -03:00
2022-07-05 14:19:48 +01:00
2022-05-09 08:21:14 +02:00
2022-05-06 15:27:40 -07:00
2022-06-06 18:09:03 +00:00
2022-06-06 18:09:03 +00:00