linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 43085] New: BUG: unable to handle kernel NULL pointer dereference (in scsi_send_eh_cmnd)
@ 2012-04-10  9:53 bugzilla-daemon
  2012-05-12  1:05 ` [Bug 43085] " bugzilla-daemon
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2012-04-10  9:53 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=43085

           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@kernel-bugs.osdl.org
        ReportedBy: rockorequin@hotmail.com
        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
**)scmd->request->rq_disk->private_data

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.

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

* [Bug 43085] BUG: unable to handle kernel NULL pointer dereference (in scsi_send_eh_cmnd)
  2012-04-10  9:53 [Bug 43085] New: BUG: unable to handle kernel NULL pointer dereference (in scsi_send_eh_cmnd) bugzilla-daemon
@ 2012-05-12  1:05 ` bugzilla-daemon
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2012-05-12  1:05 UTC (permalink / raw)
  To: linux-scsi

https://bugzilla.kernel.org/show_bug.cgi?id=43085


Alan <alan@lxorguk.ukuu.org.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alan@lxorguk.ukuu.org.uk
          Component|Other                       |USB
         AssignedTo|scsi_drivers-other@kernel-b |greg@kroah.com
                   |ugs.osdl.org                |
            Product|SCSI Drivers                |Drivers




-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

end of thread, other threads:[~2012-05-12  1:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10  9:53 [Bug 43085] New: BUG: unable to handle kernel NULL pointer dereference (in scsi_send_eh_cmnd) bugzilla-daemon
2012-05-12  1:05 ` [Bug 43085] " bugzilla-daemon

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