Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: qemu/qemu
base: c167c80b4637
Choose a base ref
...
head repository: qemu/qemu
compare: 2e6a56f6fb9f
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Aug 3, 2023

  1. block/blkio: close the fd when blkio_connect() fails

    libblkio drivers take ownership of `fd` only after a successful
    blkio_connect(), so if it fails, we are still the owners.
    
    Fixes: cad2ccc ("block/blkio: use qemu_open() to support fd passing for virtio-blk")
    Suggested-by: Hanna Czenczek <hreitz@redhat.com>
    Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
    Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
    Message-id: 20230803082825.25293-2-sgarzare@redhat.com
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    stefano-garzarella authored and Stefan Hajnoczi committed Aug 3, 2023
    Copy the full SHA
    0b054b4 View commit details
    Browse the repository at this point in the history
  2. block/blkio: add more comments on the fd passing handling

    As Hanna pointed out, it is not clear in the code why qemu_open()
    can fail, and why blkio_set_int("fd") is not enough to discover
    the `fd` property support.
    
    Let's fix them by adding more details in the code comments.
    
    Suggested-by: Hanna Czenczek <hreitz@redhat.com>
    Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
    Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
    Message-id: 20230803082825.25293-3-sgarzare@redhat.com
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    stefano-garzarella authored and Stefan Hajnoczi committed Aug 3, 2023
    Copy the full SHA
    9b06d0d View commit details
    Browse the repository at this point in the history
  3. Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu in…

    …to staging
    
    Pull request
    
    Fix for an fd leak in the blkio block driver.
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmTLzf0ACgkQnKSrs4Gr
    # c8hoGQf+KjsuChyk8/aoDP4MMkNB1/X3nsazCd3GY3uE+DRK8ieiRJeT6chMIey/
    # sK3v/drkDmdjj30qbXGxjLVa5SNsP9N6pVoo8fnFJN7LmGBE/JLEYUYVNpHAKEzb
    # N7mgDBcTHZWKGwZsh109X5l3Cr6HR484m3qKI/49qlVuWJmp8/lDUbFJbp96I6g9
    # ki9W0itwOrdtebYyUDml8eE/yLOxOTWx5Q7Q+qwSiEUNCwyd7yOS1QHQbnCgKw3m
    # c0Qzch2Z3dT61YbMrF6j0H7M1dXXcbNFdYVeMHYYJRkeN+bz4fWcUC4HkrL6YWf5
    # GLIj5irTSnae4TevlYVZT+72v99QQQ==
    # =pQ96
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Thu 03 Aug 2023 08:55:41 AM PDT
    # gpg:                using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
    # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full]
    # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [full]
    
    * tag 'block-pull-request' of https://gitlab.com/stefanha/qemu:
      block/blkio: add more comments on the fd passing handling
      block/blkio: close the fd when blkio_connect() fails
    
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
    rth7680 committed Aug 3, 2023
    Copy the full SHA
    2e6a56f View commit details
    Browse the repository at this point in the history