Re: [PATCH v2] iommu/vt-d: race setting IRQ CPU affinity while freeing IRQ

2014-07-31 Thread Joerg Roedel
On Tue, Jul 29, 2014 at 11:21:58AM -0600, Greg Edwards wrote: [ 6638.327851] BUG: unable to handle kernel NULL pointer dereference at 0090 [ 6638.335955] IP: [8190a652] intel_ioapic_set_affinity+0x82/0x1b0 [ 6638.343012] PGD 99172e067 PUD 1026979067 PMD 0 [ 6638.347858]

Re: [PATCH v2] iommu/vt-d: race setting IRQ CPU affinity while freeing IRQ

2014-07-29 Thread Joerg Roedel
On Wed, Jul 23, 2014 at 10:13:26AM -0600, Greg Edwards wrote: A user process setting the CPU affinity of an IRQ for a KVM direct-assigned device via /proc/irq/IRQ#/smp_affinity can race with the IRQ being released by QEMU, resulting in a NULL iommu pointer dereference in get_irte(). Maybe I

Re: [PATCH v2] iommu/vt-d: race setting IRQ CPU affinity while freeing IRQ

2014-07-29 Thread Greg Edwards
On Tue, Jul 29, 2014 at 12:45:31PM +0200, Joerg Roedel wrote: On Wed, Jul 23, 2014 at 10:13:26AM -0600, Greg Edwards wrote: A user process setting the CPU affinity of an IRQ for a KVM direct-assigned device via /proc/irq/IRQ#/smp_affinity can race with the IRQ being released by QEMU, resulting

[PATCH v2] iommu/vt-d: race setting IRQ CPU affinity while freeing IRQ

2014-07-23 Thread Greg Edwards
A user process setting the CPU affinity of an IRQ for a KVM direct-assigned device via /proc/irq/IRQ#/smp_affinity can race with the IRQ being released by QEMU, resulting in a NULL iommu pointer dereference in get_irte(). Signed-off-by: Greg Edwards gedwa...@ddn.com --- Dropped the Cc: for