mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC RESEND 0/2] megaraid: fix illegal pointer dereference in complete_cmd_fusion
@ 2026-02-01  3:31 chengkaitao
  2026-02-01  3:31 ` [RFC RESEND 1/2] megaraid: Fix the issue of erroneous reset of Words in reply_desc chengkaitao
  2026-02-01  3:31 ` [RFC RESEND 2/2] megaraid: replacing fusion->busy_mq_poll[*] with irq_context->in_used in megasas_blk_mq_poll chengkaitao
  0 siblings, 2 replies; 3+ messages in thread
From: chengkaitao @ 2026-02-01  3:31 UTC (permalink / raw)
  To: kashyap.desai, sumit.saxena, shivasharan.srikanteshwara,
	chandrakanth.patil, James.Bottomley, martin.petersen
  Cc: megaraidlinux.pdl, linux-scsi, linux-kernel, Chengkaitao

From: Chengkaitao <chengkaitao@kylinos.cn>

We have encountered several instances of null pointer dereferences
in the complete_cmd_fusion function. The root cause was consistently
the reply_desc->SMID being erroneously set to 0xffff, resulting in
an invalid cmd_fusion pointer retrieval.

After code review, I suspect synchronization issues in complete_cmd-
_fusion. However, due to the low reproducibility rate of this problem,
I could not perform effective validation. I propose the patch for
kernel community discussion to explore better solutions.

Chengkaitao (2):
  megaraid: Fix the issue of erroneous reset of Words in reply_desc
  megaraid: replacing fusion->busy_mq_poll[*] with irq_context->in_used
    in megasas_blk_mq_poll

 drivers/scsi/megaraid/megaraid_sas_fusion.c | 18 ++++++++++--------
 drivers/scsi/megaraid/megaraid_sas_fusion.h |  2 --
 2 files changed, 10 insertions(+), 10 deletions(-)

-- 
2.50.1 (Apple Git-155)


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

end of thread, other threads:[~2026-02-01  3:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-01  3:31 [RFC RESEND 0/2] megaraid: fix illegal pointer dereference in complete_cmd_fusion chengkaitao
2026-02-01  3:31 ` [RFC RESEND 1/2] megaraid: Fix the issue of erroneous reset of Words in reply_desc chengkaitao
2026-02-01  3:31 ` [RFC RESEND 2/2] megaraid: replacing fusion->busy_mq_poll[*] with irq_context->in_used in megasas_blk_mq_poll chengkaitao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®