All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/9] hw/sd: Allow card size not power of 2 again
@ 2021-06-23 18:00 Philippe Mathieu-Daudé
  2021-06-23 18:00 ` [PATCH 1/9] hw/sd: When card is in wrong state, log which state it is Philippe Mathieu-Daudé
                   ` (9 more replies)
  0 siblings, 10 replies; 34+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-06-23 18:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P . Berrangé,
	qemu-block, Bin Meng, Philippe Mathieu-Daudé,
	Tom Yan, Alexander Bulekov, Niek Linnenbank,
	Michal Suchánek, Philippe Mathieu-Daudé,
	Warner Losh

Hi Ubi-Wan Kenubi and Tom,

In commit a9bcedd (SD card size has to be power of 2) we decided
to restrict SD card size to avoid security problems (CVE-2020-13253)
but this became not practical to some users.

This RFC series tries to remove the limitation, keeping our
functional tests working. It is unfinished work because I had to
attend other topics, but sending it early as RFC to get feedback.
I'll keep working when I get more time, except if one if you can
help me.

Alexander, could you generate a qtest reproducer with the fuzzer
corpus? See: https://bugs.launchpad.net/qemu/+bug/1878054

Thanks,

Phil.

Philippe Mathieu-Daudé (9):
  hw/sd: When card is in wrong state, log which state it is
  hw/sd: Extract address_in_range() helper, log invalid accesses
  tests/acceptance: Tag NetBSD tests as 'os:netbsd'
  tests/acceptance: Extract image_expand() helper
  tests/acceptance: Use image_expand() in
    test_arm_orangepi_uboot_netbsd9
  tests/acceptance: Use image_expand() in test_arm_orangepi_bionic_20_08
  tests/acceptance: Do not expand SD card image in test_arm_orangepi_sd
  tests/acceptance: Remove now unused pow2ceil()
  hw/sd: Allow card size not power of 2 again

 hw/sd/sd.c                             | 60 +++++++++++++-------------
 tests/acceptance/boot_linux_console.py | 39 ++++++++---------
 tests/acceptance/ppc_prep_40p.py       |  2 +
 3 files changed, 52 insertions(+), 49 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2021-08-05 19:48 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 18:00 [RFC PATCH 0/9] hw/sd: Allow card size not power of 2 again Philippe Mathieu-Daudé
2021-06-23 18:00 ` [PATCH 1/9] hw/sd: When card is in wrong state, log which state it is Philippe Mathieu-Daudé
2021-08-05 19:37   ` Eric Blake
2021-06-23 18:00 ` [PATCH 2/9] hw/sd: Extract address_in_range() helper, log invalid accesses Philippe Mathieu-Daudé
2021-08-05 19:46   ` Eric Blake
2021-06-23 18:00 ` [PATCH 3/9] tests/acceptance: Tag NetBSD tests as 'os:netbsd' Philippe Mathieu-Daudé
2021-07-03  8:41   ` Philippe Mathieu-Daudé
2021-07-03  8:43     ` Philippe Mathieu-Daudé
2021-07-04 12:35       ` Niek Linnenbank
2021-07-05  8:55         ` Philippe Mathieu-Daudé
2021-07-11 21:05           ` Philippe Mathieu-Daudé
2021-07-05 15:25   ` Willian Rampazzo
2021-07-13 16:57   ` Cleber Rosa
2021-06-23 18:00 ` [PATCH 4/9] tests/acceptance: Extract image_expand() helper Philippe Mathieu-Daudé
2021-07-05 15:27   ` Willian Rampazzo
2021-07-13 17:02   ` Cleber Rosa
2021-06-23 18:00 ` [PATCH 5/9] tests/acceptance: Use image_expand() in test_arm_orangepi_uboot_netbsd9 Philippe Mathieu-Daudé
2021-07-05 15:28   ` Willian Rampazzo
2021-08-04 20:54   ` Philippe Mathieu-Daudé
2021-08-05 17:06     ` Niek Linnenbank
2021-06-23 18:00 ` [RFC PATCH 6/9] tests/acceptance: Use image_expand() in test_arm_orangepi_bionic_20_08 Philippe Mathieu-Daudé
2021-07-05 15:30   ` Willian Rampazzo
2021-08-05 17:11   ` Niek Linnenbank
2021-06-23 18:00 ` [RFC PATCH 7/9] tests/acceptance: Do not expand SD card image in test_arm_orangepi_sd Philippe Mathieu-Daudé
2021-06-23 18:00 ` [PATCH 8/9] tests/acceptance: Remove now unused pow2ceil() Philippe Mathieu-Daudé
2021-07-05 15:32   ` Willian Rampazzo
2021-06-23 18:00 ` [RFC PATCH 9/9] hw/sd: Allow card size not power of 2 again Philippe Mathieu-Daudé
2021-06-24 10:17   ` Daniel P. Berrangé
2021-06-24 10:24   ` Tom Yan
2021-06-24 10:56     ` Peter Maydell
2021-06-24 16:08       ` Warner Losh
2021-06-24  2:50 ` [RFC PATCH 0/9] " Alexander Bulekov
2021-06-24  8:12   ` Philippe Mathieu-Daudé
2021-06-26  4:04     ` Alexander Bulekov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.