Denis V. Lunev
4684bf187f
parallels: bound the bitmap L1 table against the bitmap size
...
parallels_load_bitmap_data() derives the number of bytes to
deserialize from "bm_size - offset" without checking that the offset
is still inside the bitmap, and an offset past the end makes that
subtraction underflow.
The overflow which used to produce such an offset is fixed by
"dirty-bitmap: fix integer overflow in serialization coverage", but
both the cluster size and the L1 contents come from the image, so
refuse the table explicitly. The check cannot reject a valid table:
l1_size is DIV_ROUND_UP(bm_size, limit), so the largest offset the
loop reaches is (l1_size - 1) * limit, always below bm_size.
Fixes: baefd97700 ("parallels: support bitmap extension for read-only mode")
Cc: Stefan Hajnoczi <stefanha@redhat.com >
Cc: Thomas Huth <thuth@redhat.com >
Signed-off-by: Denis V. Lunev <den@openvz.org >
2026-09-10 23:48:08 +02:00
..
2026-08-03 10:42:29 +02:00
2026-08-29 12:07:45 +04:00
2026-08-03 10:42:29 +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-05-19 17:25:48 +02:00
2026-07-27 15:51:03 +04: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
2026-05-19 17:25:48 +02: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
2026-08-03 10:42:29 +02:00
2026-07-27 15:51:03 +04: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-07-23 18:03:24 +03:00
2026-08-17 18:32:44 +03:00
2019-06-12 13:20:20 +02:00
2023-03-30 15:03:36 +02:00
2026-08-03 10:42:29 +02:00
2023-04-24 13:53:44 -04:00
2026-09-01 14:38:03 -04:00
2026-01-08 07:50:32 +01:00
2023-11-08 17:56:18 +01:00
2026-05-19 17:25:48 +02:00
2026-03-24 19:55:09 +01:00
2026-06-12 17:56:30 +03:00
2021-07-09 18:20:27 +02:00
2025-11-18 18:01:57 +01:00
2026-05-25 11:17:23 -04:00
2026-05-19 17:25:48 +02:00
2026-05-19 17:25:48 +02:00
2026-09-02 11:39:46 +03: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-09-10 23:48:08 +02:00
2026-07-28 16:55:00 +02: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-08-03 10:42:29 +02:00
2026-08-17 18:32:44 +03:00
2023-10-12 16:31:33 +02:00
2026-06-08 17:00:46 +02:00
2025-11-11 22:06:09 +01:00
2026-07-27 15:51:03 +04:00
2023-04-25 13:17:28 +02:00
2026-08-03 10:42:29 +02:00
2026-06-08 17:00:46 +02: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
2026-06-10 12:12:48 +02: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-09-08 19:06:36 +04: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