Re: [PATCH v2] mpi3mr: Fix potential deadlock in mpi3mr_fault_uevent_emit

"Martin K. Petersen" <[email protected]> Tue, 28 Jul 2026 22:56:10 -0400
Newsgroups org.kernel.vger.linux-scsi
Message-ID <[email protected]>
On Fri, 24 Jul 2026 23:22:31 +0530, Chandrakanth Patil wrote:

> mpi3mr_fault_uevent_emit() runs from the fault watchdog and reset
> paths, where host I/O may already be blocked. GFP_KERNEL allocations
> here, both the local kzalloc_obj() and the ones inside
> kobject_uevent_env() itself, can trigger reclaim that waits on that
> blocked I/O and deadlock.
> 
> Use memalloc_noio_save()/restore() to cover the whole call instead of
> just the local allocation.
> 
> [...]

Applied to 7.2/scsi-fixes, thanks!

[1/1] mpi3mr: Fix potential deadlock in mpi3mr_fault_uevent_emit
      https://git.kernel.org/mkp/scsi/c/ccff8c925715

-- 
Martin K. Petersen