Displaying 20 results from an estimated 6000 matches similar to: "[PATCH] virtio-pci: fix use after free"
2011 Mar 14
1
[PATCH] virtio_pci: Prevent double-free of pci regions after device hot-unplug
In the case where a virtio-console port is in use (opened by a program)
and a virtio-console device is removed, the port is kept around but all
the virtio-related state is assumed to be gone.
When the port is finally released (close() called), we call
device_destroy() on the port's device. This results in the parent
device's structures to be freed as well. This includes the PCI regions
2011 Mar 14
1
[PATCH] virtio_pci: Prevent double-free of pci regions after device hot-unplug
In the case where a virtio-console port is in use (opened by a program)
and a virtio-console device is removed, the port is kept around but all
the virtio-related state is assumed to be gone.
When the port is finally released (close() called), we call
device_destroy() on the port's device. This results in the parent
device's structures to be freed as well. This includes the PCI regions
2016 Jan 14
1
[PATCH] virtio_pci: fix use after free on release
KASan detected a use-after-free error in virtio-pci remove code. In
virtio_pci_remove(), vp_dev is still used after being freed in
unregister_virtio_device() (in virtio_pci_release_dev() more
precisely).
To fix, keep a reference until cleanup is done.
Fixes: 63bd62a08ca4 ("virtio_pci: defer kfree until release callback")
Reported-by: Jerome Marchand <jmarchan at redhat.com>
Cc:
2016 Jan 14
1
[PATCH] virtio_pci: fix use after free on release
KASan detected a use-after-free error in virtio-pci remove code. In
virtio_pci_remove(), vp_dev is still used after being freed in
unregister_virtio_device() (in virtio_pci_release_dev() more
precisely).
To fix, keep a reference until cleanup is done.
Fixes: 63bd62a08ca4 ("virtio_pci: defer kfree until release callback")
Reported-by: Jerome Marchand <jmarchan at redhat.com>
Cc:
2014 Dec 08
0
[PATCH 8/9] virtio_pci: split out legacy device support
Move everything dealing with legacy devices out to virtio_pci_legacy.c.
Expose common code APIs in virtio_pci.h
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/virtio/virtio_pci.h | 133 ++++++++++++
drivers/virtio/virtio_pci.c | 420 ++-----------------------------------
drivers/virtio/virtio_pci_legacy.c | 323 ++++++++++++++++++++++++++++
2014 Dec 08
0
[PATCH 8/9] virtio_pci: split out legacy device support
Move everything dealing with legacy devices out to virtio_pci_legacy.c.
Expose common code APIs in virtio_pci.h
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/virtio/virtio_pci.h | 133 ++++++++++++
drivers/virtio/virtio_pci.c | 420 ++-----------------------------------
drivers/virtio/virtio_pci_legacy.c | 323 ++++++++++++++++++++++++++++
2014 Dec 08
0
[PATCH v2 08/10] virtio_pci: split out legacy device support
Move everything dealing with legacy devices out to virtio_pci_legacy.c.
Expose common code APIs in virtio_pci.h
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/virtio/virtio_pci.h | 133 ++++++++++++
drivers/virtio/virtio_pci.c | 420 ++-----------------------------------
drivers/virtio/virtio_pci_legacy.c | 323 ++++++++++++++++++++++++++++
3 files changed,
2014 Dec 08
0
[PATCH v2 08/10] virtio_pci: split out legacy device support
Move everything dealing with legacy devices out to virtio_pci_legacy.c.
Expose common code APIs in virtio_pci.h
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/virtio/virtio_pci.h | 133 ++++++++++++
drivers/virtio/virtio_pci.c | 420 ++-----------------------------------
drivers/virtio/virtio_pci_legacy.c | 323 ++++++++++++++++++++++++++++
3 files changed,
2016 Jan 14
1
Possible memory corruption in virtio-pci driver.
Hi Michael,
KASan detected a use-after-free error in virtio-pci remove code. In
virtio_pci_remove(), vp_dev is still used after being freed in
unregister_virtio_device() (in virtio_pci_release_dev() more
precisely). I don't know the proper way to fix this.
Here is the KASan output:
[ 467.987227] ==================================================================
[ 467.990023] BUG: KASAN:
2016 Jan 14
1
Possible memory corruption in virtio-pci driver.
Hi Michael,
KASan detected a use-after-free error in virtio-pci remove code. In
virtio_pci_remove(), vp_dev is still used after being freed in
unregister_virtio_device() (in virtio_pci_release_dev() more
precisely). I don't know the proper way to fix this.
Here is the KASan output:
[ 467.987227] ==================================================================
[ 467.990023] BUG: KASAN:
2011 Nov 14
2
[PATCHv2 RFC] virtio-pci: flexible configuration layout
Add a flexible mechanism to specify virtio configuration layout, using
pci vendor-specific capability. A separate capability is used for each
of common, device specific and data-path accesses.
Warning: compiled only.
This patch also needs to be split up, pci_iomap changes
also need arch updates for non-x86.
There might also be more spec changes.
Posting here for early feedback, and to allow
2011 Nov 14
2
[PATCHv2 RFC] virtio-pci: flexible configuration layout
Add a flexible mechanism to specify virtio configuration layout, using
pci vendor-specific capability. A separate capability is used for each
of common, device specific and data-path accesses.
Warning: compiled only.
This patch also needs to be split up, pci_iomap changes
also need arch updates for non-x86.
There might also be more spec changes.
Posting here for early feedback, and to allow
2011 Nov 22
2
[PATCHv3 RFC] virtio-pci: flexible configuration layout
Here's an updated vesion.
I'm alternating between updating the spec and the driver,
spec update to follow.
Compiled only. Posting here for early feedback, and to allow Sasha to
proceed with his "kvm tool" work.
Changes from v2:
address comments by Rusty
bugfixes by Sasha
Changes from v1:
Updated to match v3 of the spec, see:
todo:
split core changes out
Signed-off-by:
2011 Nov 22
2
[PATCHv3 RFC] virtio-pci: flexible configuration layout
Here's an updated vesion.
I'm alternating between updating the spec and the driver,
spec update to follow.
Compiled only. Posting here for early feedback, and to allow Sasha to
proceed with his "kvm tool" work.
Changes from v2:
address comments by Rusty
bugfixes by Sasha
Changes from v1:
Updated to match v3 of the spec, see:
todo:
split core changes out
Signed-off-by:
2014 Nov 09
1
[PATCH] virtio-pci: Reset device on shutdown
This fixes a hanging issue during guest shutdown.
The device is left enabled even though we removed it and disabled msix
during shutdown. If the virtio device happens to get a new event right
at this point, seeing msix is disabled, it may try to notify us with an
IRQ, which is totally unexpected thus will not be handled. In this
case the guest hangs.
Let's reset the device so that it will
2014 Nov 09
1
[PATCH] virtio-pci: Reset device on shutdown
This fixes a hanging issue during guest shutdown.
The device is left enabled even though we removed it and disabled msix
during shutdown. If the virtio device happens to get a new event right
at this point, seeing msix is disabled, it may try to notify us with an
IRQ, which is totally unexpected thus will not be handled. In this
case the guest hangs.
Let's reset the device so that it will
2007 Dec 21
1
[kvm-devel] [Virtio-for-kvm] [PATCH 12/13] [Mostly resend] virtio additions
From 20a01e0c24f47e9805a88bebc9310163f99b5e99 Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor@qumranet.com>
Date: Sun, 16 Dec 2007 23:35:35 +0200
Subject: [PATCH] Handle module unload Add the device release function.
Signed-off-by: Dor Laor <dor.laor@qumranet.com>
---
drivers/virtio/virtio.c | 7 +++++++
drivers/virtio/virtio_pci.c | 7 +++++++
2 files changed, 14
2007 Dec 21
1
[kvm-devel] [Virtio-for-kvm] [PATCH 12/13] [Mostly resend] virtio additions
From 20a01e0c24f47e9805a88bebc9310163f99b5e99 Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor@qumranet.com>
Date: Sun, 16 Dec 2007 23:35:35 +0200
Subject: [PATCH] Handle module unload Add the device release function.
Signed-off-by: Dor Laor <dor.laor@qumranet.com>
---
drivers/virtio/virtio.c | 7 +++++++
drivers/virtio/virtio_pci.c | 7 +++++++
2 files changed, 14
2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
We sometimes need to map between the virtio device and
the given pci device. One such use is OS installer that
gets the boot pci device from BIOS and needs to
find the relevant block device. Since it can't,
installation fails.
Supply softlinks between these to make it possible.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
Gleb, could you please ack that this patch below
2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
We sometimes need to map between the virtio device and
the given pci device. One such use is OS installer that
gets the boot pci device from BIOS and needs to
find the relevant block device. Since it can't,
installation fails.
Supply softlinks between these to make it possible.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
Gleb, could you please ack that this patch below