x86/vmd: Initialize list item in irq disable
PATCH v2 1/1 x86/vmd: Initialize list item in irq disable
Multiple calls to disable an IRQ would have caused the driver to dereference a poisoned list item. This re-initializes the list to allow multiple requests to disable the irq.
---
v1 -> v2:
Used the patch with the correct macro
arch/x86/pci/vmd.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/pci/vmd.c +1 -0
@@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)raw_spin_lock (&list_lock);list_del_rcu (&vmdirq->node); +INIT_LIST_HEAD_RCU (&vmdirq->node);raw_spin_unlock (&list_lock); }
Signature · 1 line
2.7.2
Acked-by Jon Derrick: <[email protected]>
Quoted 27 lines · Keith Busch
Multiple calls to disable an IRQ would have caused the driver to dereference a poisoned list item. This re-initializes the list to allow multiple requests to disable the irq.
Signed-off-by Keith Busch <[email protected]>---
v1 -> v2:
Used the patch with the correct macroarch/x86/pci/vmd.c | 1 + 1 file changed, 1 insertion(+)arch/x86/pci/vmd.c +1
-0@@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)raw_spin_lock (&list_lock);list_del_rcu (&vmdirq->node); +INIT_LIST_HEAD_RCU (&vmdirq->node);raw_spin_unlock (&list_lock); }Signature · 1 line
2.7.2
Hi Bjorn,
Any plans to get this set in?
Thanks,
J
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jon Derrick
Sent: Tuesday, May 17, 2016 12:51 PM
To: Busch, Keith <[email protected]>
Cc: [email protected]; Bjorn Helgaas <[email protected]>
Subject: Re: [PATCHv2] x86/vmd: Initialize list item in irq disable
Acked-by Jon Derrick: <[email protected]>
Quoted 25 lines · Keith Busch
Multiple calls to disable an IRQ would have caused the driver to dereference a poisoned list item. This re-initializes the list to allow multiple requests to disable the irq.
Signed-off-by Keith Busch <[email protected]>---
v1 -> v2:
Used the patch with the correct macroarch/x86/pci/vmd.c | 1 + 1 file changed, 1 insertion(+)arch/x86/pci/vmd.c index renamed from arch/x86/pci/vmd.c +0
-0b1662bf..3519a15 100644
arch/x86/pci/vmd.c +1
-1@@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)raw_spin_lock (&list_lock);list_del_rcu (&vmdirq->node); +INIT_LIST_HEAD_RCU (&vmdirq->node);raw_spin_unlock (&list_lock); } --
Quoted 2 lines
2.7.2
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Bjorn,
Let me know if there's anything else needing to be done to get this set in.
Thanks,
Jon
Quoted 46 lines · Jonathan
Hi Bjorn,
Any plans to get this set in?
Thanks,
J-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jon Derrick
Sent: Tuesday, May 17, 2016 12:51 PM
To: Busch, Keith <[email protected]>
Cc: [email protected]; Bjorn Helgaas <[email protected]>
Subject: Re: [PATCHv2] x86/vmd: Initialize list item in irq disableAcked-by Jon Derrick: <[email protected]>
Quoted 25 lines · Keith Busch
Multiple calls to disable an IRQ would have caused the driver to dereference a poisoned list item. This re-initializes the list to allow multiple requests to disable the irq.
Signed-off-by Keith Busch <[email protected]>---
v1 -> v2:
Used the patch with the correct macroarch/x86/pci/vmd.c | 1 + 1 file changed, 1 insertion(+)arch/x86/pci/vmd.c index renamed from arch/x86/pci/vmd.c +0
-0b1662bf..3519a15 100644
arch/x86/pci/vmd.c +1
-1@@ -135,6 +135,7 @@ static void vmd_irq_disable(struct irq_data *data)raw_spin_lock (&list_lock);list_del_rcu (&vmdirq->node); +INIT_LIST_HEAD_RCU (&vmdirq->node);raw_spin_unlock (&list_lock); } --Quoted 2 lines
2.7.2
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html