mhi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] MHI fixes for v6.0
@ 2022-08-29 17:17 Manivannan Sadhasivam
  2022-08-30 14:14 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Manivannan Sadhasivam @ 2022-08-29 17:17 UTC (permalink / raw)
  To: gregkh; +Cc: quic_hemantk, mhi, ath11k, kvalo

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(-)

-- 
மணிவண்ணன் சதாசிவம்

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] MHI fixes for v6.0
  2022-08-29 17:17 [GIT PULL] MHI fixes for v6.0 Manivannan Sadhasivam
@ 2022-08-30 14:14 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2022-08-30 14:14 UTC (permalink / raw)
  To: Manivannan Sadhasivam; +Cc: quic_hemantk, mhi, ath11k, kvalo

On Mon, Aug 29, 2022 at 10:47:46PM +0530, Manivannan Sadhasivam wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-30 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29 17:17 [GIT PULL] MHI fixes for v6.0 Manivannan Sadhasivam
2022-08-30 14:14 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).