Skip to content

parallels: fix reachable assertion and related bounds-checking gaps

Denis V. Lunev qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9parallels: fix integer overflow in header size calculationblock/parallels.c+2 -10 replies
2/9parallels: read header/BAT table in bounded chunksblock/parallels.c tests/qemu-iotests/tests/parallels-checks tests/qemu-iotests/tests/parallels-checks.out+53 -40 replies
3/9parallels: fix bat_entries overflow in image creationblock/parallels.c tests/qemu-iotests/212 tests/qemu-iotests/212.out+31 -100 replies
4/9parallels: reject BAT entries pointing outside backed storageblock/parallels.c tests/qemu-iotests/tests/parallels-checks tests/qemu-iotests/tests/parallels-checks.out+116 -40 replies
5/9parallels: validate bitmap L1 table size before allocating itblock/parallels-ext.c+20 -130 replies
6/9parallels: skip loading a genuinely empty bitmap L1 tableblock/parallels-ext.c+10 -70 replies
7/9parallels: avoid fatal abort on large bitmap L1 tableblock/parallels-ext.c+7 -10 replies
8/9parallels: validate BAT capacity against advertised disk sizeblock/parallels.c tests/qemu-iotests/tests/parallels-checks tests/qemu-iotests/tests/parallels-checks.out+34 -00 replies
9/9MAINTAINERS: update parallels tree locationMAINTAINERS+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] parallels: fix reachable assertion and related bounds-checking gaps

This series fixes a bunch of reachable asserts within parallels block drivers through a specially crafted images.

CC Thomas Huth <[email protected]>
CC Stefan Hajnoczi <[email protected]>

Denis V. Lunev (9):
parallels: fix integer overflow in header size calculation
parallels: read header/BAT table in bounded chunks
parallels: fix bat_entries overflow in image creation
parallels: reject BAT entries pointing outside backed storage
parallels: validate bitmap L1 table size before allocating it
parallels: skip loading a genuinely empty bitmap L1 table
parallels: avoid fatal abort on large bitmap L1 table
parallels: validate BAT capacity against advertised disk size
MAINTAINERS: update parallels tree location

 MAINTAINERS                                   |   2 +-
 block/parallels-ext.c                         |  52 +++++----
 block/parallels.c                             |  74 ++++++++++---
 tests/qemu-iotests/212                        |   8 +-
 tests/qemu-iotests/212.out                    |  10 +-
 tests/qemu-iotests/tests/parallels-checks     | 102 ++++++++++++++++++
 tests/qemu-iotests/tests/parallels-checks.out |  59 ++++++++++
 7 files changed, 270 insertions(+), 37 deletions(-)
Signature · 1 line
2.53.0