Skip to contentSkip to conversation

MHI fixes for v6.0

GIT PULL Manivannan Sadhasivam 2 participants 2 messages Aug 29, 2022 – Aug 30, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git tags/mhi-fixes-for-v6.0

for you to fetch changes up to acc5495bf764e7e441193f972d96c5d2887f6b8b:

bus: mhi: host: Fix up null pointer access in mhi_irq_handler (2022-08-29 22:33:46 +0530)

----------------------------------------------------------------
A single fix targeting the MHI host stack:

- Since the commit 1227d2a20cd7 ("bus: mhi: host: Move IRQ allocation to controller registration phase"), the MHI context gets freed during mhi_unregister_controller(). But when the MHI IRQs are shared, the IRQ handler may get invoked during __free_irq() if CONFIG_DEBUG_SHIRQ is set. In that case, there will be a null pointer dereference because of trying to use the freed context struct.

So for fixing the issue, let's check for the existence of the context struct at the start of the handler before handling the IRQ.

----------------------------------------------------------------
Qiang Yu (1):
bus: mhi: host: Fix up null pointer access in mhi_irq_handler

 drivers/bus/mhi/host/main.c | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
Signature · 1 line
மணிவண்ணன் சதாசிவம்
#1 lore raw
Quoted 7 lines · Manivannan Sadhasivam

The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git tags/mhi-fixes-for-v6.0

Pulled and pushed out, thanks.

greg k-h