Commit f1fb088
KVM: x86: Take irqfds.lock when adding/deleting IRQ bypass producer
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>1 parent bcda70c commit f1fb088
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13561 | 13561 | | |
13562 | 13562 | | |
13563 | 13563 | | |
| 13564 | + | |
13564 | 13565 | | |
13565 | 13566 | | |
13566 | | - | |
13567 | 13567 | | |
| 13568 | + | |
| 13569 | + | |
| 13570 | + | |
| 13571 | + | |
13568 | 13572 | | |
13569 | 13573 | | |
13570 | 13574 | | |
13571 | 13575 | | |
13572 | 13576 | | |
| 13577 | + | |
| 13578 | + | |
| 13579 | + | |
13573 | 13580 | | |
13574 | 13581 | | |
13575 | 13582 | | |
| |||
13579 | 13586 | | |
13580 | 13587 | | |
13581 | 13588 | | |
| 13589 | + | |
13582 | 13590 | | |
13583 | 13591 | | |
13584 | | - | |
13585 | 13592 | | |
13586 | 13593 | | |
13587 | 13594 | | |
13588 | 13595 | | |
13589 | 13596 | | |
13590 | 13597 | | |
13591 | 13598 | | |
| 13599 | + | |
| 13600 | + | |
| 13601 | + | |
13592 | 13602 | | |
13593 | 13603 | | |
13594 | 13604 | | |
13595 | 13605 | | |
13596 | 13606 | | |
13597 | 13607 | | |
| 13608 | + | |
| 13609 | + | |
| 13610 | + | |
13598 | 13611 | | |
13599 | 13612 | | |
13600 | 13613 | | |
| |||
0 commit comments