[Bug 43085] New: BUG: unable to handle kernel NULL pointer dereference (in scsi_send_eh_cmnd)

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


           Summary: BUG: unable to handle kernel NULL pointer dereference
                    (in scsi_send_eh_cmnd)
           Product: SCSI Drivers
           Version: 2.5
    Kernel Version: 3.4-rc2
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Other
        AssignedTo: scsi_drivers-other@xxxxxxxxxxxxxxxxxxxx
        ReportedBy: rockorequin@xxxxxxxxxxx
        Regression: Yes

Created an attachment (id=72868)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=72868)
BUG - unable to handle kernel NULL pointer dereference (scsi_send_eh_cmnd)

Whenever I plug my USB3 hub into the PC, I encounter this bug (log attached).
It stops the PC from booting if the hub is inserted at the time, and crashes
USB if I encounter it once the desktop is running.

The line where it crashes is in scsi_error.c at line 782:

struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd);

which expands to:

struct scsi_driver *sdrv *(struct scsi_driver

The issue is that rq_disk is NULL (possibly because it's a USB hub and there
isn't necessarily an underlying hard drive?).

If I make it check for rq_disk being null before trying to assign sdrv and set
sdrv to null accordingly, and then later in the function I check for sdrv being
null before looking at sdrv->eh_action, the error goes away and drives on the
hub seem to mount and function OK (mostly anyway).

Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photos]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux