[PATCH 0/2] block: Fix crash on write to read-only devices

Kevin Wolf posted 2 patches 3 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210118123448.307825-1-kwolf@redhat.com
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Thomas Huth <thuth@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Laurent Vivier <laurent@vivier.eu>, Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, David Gibson <david@gibson.dropbear.id.au>, "Philippe Mathieu-Daudé" <philmd@redhat.com>, Fam Zheng <fam@euphon.net>, Stefano Stabellini <sstabellini@kernel.org>, Greg Kurz <groug@kaod.org>, Anthony Perard <anthony.perard@citrix.com>, Alistair Francis <alistair@alistair23.me>, Gerd Hoffmann <kraxel@redhat.com>, John Snow <jsnow@redhat.com>, Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, Paul Durrant <paul@xen.org>
include/sysemu/block-backend.h |  3 ++-
block/block-backend.c          | 19 ++++++++++++++---
hw/block/dataplane/xen-block.c |  2 +-
hw/block/fdc.c                 |  9 ++++----
hw/block/m25p80.c              |  6 +++---
hw/block/nand.c                |  2 +-
hw/block/nvme-ns.c             |  7 +++---
hw/block/onenand.c             |  2 +-
hw/block/pflash_cfi01.c        |  2 +-
hw/block/pflash_cfi02.c        |  2 +-
hw/block/swim.c                |  6 +++---
hw/block/virtio-blk.c          |  6 +++---
hw/block/xen-block.c           |  2 +-
hw/ide/core.c                  |  2 +-
hw/misc/sifive_u_otp.c         |  2 +-
hw/ppc/pnv_pnor.c              |  2 +-
hw/scsi/scsi-disk.c            | 10 ++++-----
hw/scsi/scsi-generic.c         |  4 ++--
hw/sd/sd.c                     |  6 +++---
hw/usb/dev-storage.c           |  4 ++--
tests/qtest/virtio-scsi-test.c | 39 ++++++++++++++++++++++++++++++++++
21 files changed, 96 insertions(+), 41 deletions(-)
[PATCH 0/2] block: Fix crash on write to read-only devices
Posted by Kevin Wolf 3 years, 3 months ago
Kevin Wolf (2):
  block: Separate blk_is_writable() and blk_supports_write_perm()
  virtio-scsi-test: Test writing to scsi-cd device

 include/sysemu/block-backend.h |  3 ++-
 block/block-backend.c          | 19 ++++++++++++++---
 hw/block/dataplane/xen-block.c |  2 +-
 hw/block/fdc.c                 |  9 ++++----
 hw/block/m25p80.c              |  6 +++---
 hw/block/nand.c                |  2 +-
 hw/block/nvme-ns.c             |  7 +++---
 hw/block/onenand.c             |  2 +-
 hw/block/pflash_cfi01.c        |  2 +-
 hw/block/pflash_cfi02.c        |  2 +-
 hw/block/swim.c                |  6 +++---
 hw/block/virtio-blk.c          |  6 +++---
 hw/block/xen-block.c           |  2 +-
 hw/ide/core.c                  |  2 +-
 hw/misc/sifive_u_otp.c         |  2 +-
 hw/ppc/pnv_pnor.c              |  2 +-
 hw/scsi/scsi-disk.c            | 10 ++++-----
 hw/scsi/scsi-generic.c         |  4 ++--
 hw/sd/sd.c                     |  6 +++---
 hw/usb/dev-storage.c           |  4 ++--
 tests/qtest/virtio-scsi-test.c | 39 ++++++++++++++++++++++++++++++++++
 21 files changed, 96 insertions(+), 41 deletions(-)

-- 
2.29.2