Re: [PATCH] qla2xxx: Fix NULL pointer dereference in target mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 5/23/23 01:45, Martin K. Petersen wrote:
On Wed, 17 May 2023 11:22:35 +0300, Gleb Chesnokov wrote:

When target mode is enabled, the pci_irq_get_affinity() function may return
a NULL value in qla_mapq_init_qp_cpu_map() due to the qla24xx_enable_msix()
code that handles IRQ settings for target mode. This leads to a crash due
to a NULL pointer dereference.

This patch fixes the issue by adding a check for the NULL value returned
by pci_irq_get_affinity() and introducing a 'cpu_mapped' boolean flag to
the qla_qpair structure, ensuring that the qpair's CPU affinity is updated
when it has not been mapped to a CPU.

[...]

Applied to 6.4/scsi-fixes. Whitespace was still mangled so I had to
apply by hand. Please verify, thanks!

[1/1] qla2xxx: Fix NULL pointer dereference in target mode
       https://git.kernel.org/mkp/scsi/c/d54820b22e40

Sorry, I had some problems with Thunderbird; I have resolved them now.
I've reviewed the patch you applied manually, and it appears to be accurate.

Thanks,
Gleb



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux