Commit ae9d3e7
KVM: x86: Take irqfds.lock when adding/deleting IRQ bypass producer
[ Upstream commit f1fb088d9cecde5c3066d8ff8846789667519b7d ]
Take irqfds.lock when adding/deleting an IRQ bypass producer to ensure
irqfd->producer isn't modified while kvm_irq_routing_update() is running.
The only lock held when a producer is added/removed is irqbypass's mutex.
Fixes: 8727688 ("KVM: x86: select IRQ_BYPASS_MANAGER")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250404193923.1413163-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>1 parent 5e5c6b3 commit ae9d3e7
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9774 | 9774 | | |
9775 | 9775 | | |
9776 | 9776 | | |
| 9777 | + | |
| 9778 | + | |
9777 | 9779 | | |
| 9780 | + | |
9778 | 9781 | | |
9779 | 9782 | | |
9780 | | - | |
| 9783 | + | |
9781 | 9784 | | |
| 9785 | + | |
| 9786 | + | |
| 9787 | + | |
| 9788 | + | |
9782 | 9789 | | |
9783 | 9790 | | |
9784 | 9791 | | |
| |||
9787 | 9794 | | |
9788 | 9795 | | |
9789 | 9796 | | |
| 9797 | + | |
9790 | 9798 | | |
9791 | 9799 | | |
9792 | | - | |
9793 | 9800 | | |
9794 | 9801 | | |
9795 | 9802 | | |
9796 | 9803 | | |
9797 | 9804 | | |
9798 | 9805 | | |
9799 | 9806 | | |
| 9807 | + | |
| 9808 | + | |
| 9809 | + | |
9800 | 9810 | | |
9801 | 9811 | | |
9802 | 9812 | | |
9803 | 9813 | | |
| 9814 | + | |
| 9815 | + | |
9804 | 9816 | | |
9805 | 9817 | | |
9806 | 9818 | | |
| |||
0 commit comments