Re: [PATCH] scsi: megaraid: Fix uninitialized mbox in mega_cmd_done

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

 



Hi Maximilian!

> This is similar to commit 7a2ae008a53c ("scsi: megaraid: Fix
> mega_cmd_done() CMDID_INT_CMDS").

That's supposed to be commit 75cb113cd43f, right?

> When cmdid == CMDID_INT_CMDS and status != 0 then mbox is still NULL
> but is dereferenced below.

Is this actually a valid scenario, though? The mbox is only dereferenced
if there is status returned from an attached device. And I am guessing
that a controller-internal command does not talk to any attached device.
Thus status should always be 0 for CMDID_INT_CMDS. I don't have the
megaraid firmware manual so this is pure guesswork on my part. But you
would think we would have come across an invalid deref since the
original 2014 commit made the offending change.

-- 
Martin K. Petersen	Oracle Linux Engineering



[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