Skip to content

hw/sd: Security fixes

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hw/sd/sdcard: Reject zero block length (CMD16)hw/sd/sd.c+1 -10 replies
2/9hw/sd/sdcard: Do not write data to write-protected areashw/sd/sd.c+18 -50 replies
3/9hw/sd/sdcard: Do not abort when writing DAT lines on invalid cmd statehw/sd/sd.c+3 -10 replies
4/9hw/sd/sdcard: Fix incoming migration of SPI mode cardshw/sd/sd.c+4 -10 replies
5/9hw/sd/sdcard: Migrate the data transfer sizehw/sd/sd.c+26 -10 replies
6/9hw/sd/sdcard: Validate migrated blk_len in post_loadhw/sd/sd.c+13 -01 reply
7/9hw/sd/sdcard: Validate the migrated statehw/sd/sd.c+49 -51 reply
8/9hw/sd/sdcard: Fill SPI R1 response for rejected commandshw/sd/sd.c+4 -00 replies
9/9hw/sd/sdhci: Report Auto CMD12 response timeout in error statushw/sd/sdhci-internal.h hw/sd/sdhci.c+15 -40 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchPeter MaydellKarl Mehltretter
1/9
2/9
3/9
4/9
5/9
6/9R-b T-b
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH-for-11.2 0/9] hw/sd: Security fixes

Various "security" fixes (as defined by docs/system/security.rst:
data corruption / crash guest triggered) worth for 11.2.

Harshit Mukhedkar (1):
hw/sd/sdcard: Validate migrated blk_len in post_load

Philippe Mathieu-Daudé (8):
hw/sd/sdcard: Reject zero block length (CMD16) hw/sd/sdcard: Do not write data to write-protected areas hw/sd/sdcard: Do not abort when writing DAT lines on invalid cmd state hw/sd/sdcard: Fix incoming migration of SPI mode cards hw/sd/sdcard: Migrate the data transfer size
hw/sd/sdcard: Validate the migrated state
hw/sd/sdcard: Fill SPI R1 response for rejected commands hw/sd/sdhci: Report Auto CMD12 response timeout in error status

 hw/sd/sdhci-internal.h |   1 +
 hw/sd/sd.c             | 122 ++++++++++++++++++++++++++++++++++++++---
 hw/sd/sdhci.c          |  18 ++++--
 3 files changed, 128 insertions(+), 13 deletions(-)
Signature · 1 line
2.55.0