Kevin Wolf
a55402d5c3
block: Fix crash after setting latency historygram with single bin
...
Passing an empty list of boundaries to block-latency-histogram-set sets
up a state that leads to a NULL pointer dereference when the next
request should be accounted for. This is not a useful configuration, so
just error out if the user tries to set it.
The crash can easily be reproduced with the following script:
qmp() {
cat <<EOF
{'execute':'qmp_capabilities'}
{'execute':'block-latency-histogram-set',
'arguments': {'id':'ide0','boundaries':[]}}
{'execute':'cont'}
EOF
}
qmp | ./qemu-system-x86_64 -S -qmp stdio \
-drive if=none,format=raw,file=null-co:// \
-device ide-hd,drive=none0,id=ide0
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
Message-ID: <20260331102608.60882-1-kwolf@redhat.com >
Signed-off-by: Kevin Wolf <kwolf@redhat.com >
2026-03-31 15:47:52 +02:00
..
2026-03-31 15:45:32 +02:00
2026-03-04 11:47:44 +01:00
2026-03-31 15:47:52 +02:00
2025-12-27 10:11:12 +01:00
2023-05-10 14:16:54 +02:00
2025-07-14 15:40:58 +02:00
2026-01-07 11:26:57 +01:00
2025-12-27 10:11:09 +01:00
2026-01-22 10:48:45 +01:00
2025-11-18 18:01:55 +01:00
2025-07-14 15:40:58 +02:00
2025-12-27 10:11:07 +01:00
2024-12-20 17:44:56 +01:00
2022-12-15 16:07:43 +01:00
2024-12-20 17:44:56 +01:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00
2025-07-14 15:42:13 +02:00
2025-05-14 15:33:34 -05:00
2025-05-12 18:19:31 +03:00
2025-02-10 15:33:16 +01:00
2023-11-07 19:14:19 +01:00
2025-05-14 15:33:34 -05:00
2025-03-06 14:21:25 +01:00
2026-01-07 11:26:57 +01:00
2024-02-09 12:50:37 +00:00
2026-03-24 17:34:49 +01:00
2023-02-23 19:49:32 +01:00
2019-06-12 13:20:20 +02:00
2023-03-30 15:03:36 +02:00
2023-11-08 17:56:18 +01:00
2023-04-24 13:53:44 -04:00
2026-03-10 12:11:43 +01:00
2026-01-08 07:50:32 +01:00
2023-11-08 17:56:18 +01:00
2025-11-18 18:01:50 +01:00
2025-07-14 15:40:58 +02:00
2026-03-24 19:55:09 +01:00
2026-01-17 10:46:42 +11:00
2021-07-09 18:20:27 +02:00
2025-11-18 18:01:57 +01:00
2026-03-24 17:34:49 +01:00
2024-12-20 17:44:56 +01:00
2026-03-17 12:31:54 +01:00
2025-09-19 12:46:07 +01:00
2026-03-10 14:33:55 +01:00
2025-11-18 18:01:57 +01:00
2025-12-15 09:50:41 -05:00
2026-01-22 10:48:45 +01:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00
2023-11-08 17:56:18 +01:00
2023-01-19 10:18:28 +01:00
2025-02-10 15:33:16 +01:00
2026-03-04 11:47:44 +01:00
2024-05-08 19:11:34 +02:00
2023-10-12 16:31:33 +02:00
2025-11-11 22:06:09 +01:00
2025-11-11 22:06:09 +01:00
2024-12-20 17:44:56 +01:00
2023-04-25 13:17:28 +02:00
2026-03-06 17:45:15 +01:00
2026-01-22 10:48:45 +01:00
2025-11-11 22:06:09 +01:00
2023-06-28 09:46:20 +02:00
2017-07-17 11:34:11 +08:00
2022-03-07 13:16:49 +00:00
2023-06-28 09:46:34 +02:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00
2025-07-14 15:40:58 +02:00
2025-11-11 22:06:09 +01:00
2025-11-18 18:01:50 +01:00
2025-07-14 15:42:05 +02:00
2024-09-30 10:53:18 +03:00
2025-05-14 15:33:34 -05:00
2025-07-14 15:40:58 +02:00
2025-11-18 18:01:55 +01:00
2025-07-14 15:42:04 +02:00
2026-03-16 16:55:18 +01:00
2023-11-08 17:56:18 +01:00
2026-03-24 19:55:09 +01:00
2020-08-21 06:18:24 -04:00
2025-11-11 22:06:09 +01:00
2019-06-12 13:20:20 +02:00
2023-11-08 17:56:18 +01:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00
2026-03-03 14:45:01 +01:00
2025-11-11 22:06:09 +01:00
2025-12-09 21:00:15 +01:00
2025-12-27 10:11:12 +01:00
2023-12-21 22:49:27 +01:00