diff options
| author | Himanshu Madhani <[email protected]> | 2025-07-08 22:25:30 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-07-10 21:41:08 +0000 |
| commit | 68ea85df15d111d82fc474cbe104174791169355 (patch) | |
| tree | 37debc5017299a084aed7409a9e26e0cfed47476 /rust/helpers/regulator.c | |
| parent | Linux 6.16-rc5 (diff) | |
| download | kernel-68ea85df15d111d82fc474cbe104174791169355.tar.gz kernel-68ea85df15d111d82fc474cbe104174791169355.zip | |
PCI/MSI: Prevent recursive locking in pci_msix_write_tph_tag()
pci_msix_write_tph_tag() takes the per device MSI descriptor mutex and then
invokes msi_domain_get_virq(), which takes the same mutex again. That
obviously results in a system hang which is exposed by a softlockup or
lockdep warning.
Move the lock guard after the invocation of msi_domain_get_virq() to fix
this.
[ tglx: Massage changelog by adding a proper explanation and removing the
not really useful stacktrace ]
Fixes: d5124a9957b2 ("PCI/MSI: Provide a sane mechanism for TPH")
Reported-by: Jorge Lopez <[email protected]>
Suggested-by: Thomas Gleixner <[email protected]>
Signed-off-by: Himanshu Madhani <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Jorge Lopez <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'rust/helpers/regulator.c')
0 files changed, 0 insertions, 0 deletions
