Re: BUG: unable to handle kernel NULL pointer dereference at scsi_prep_state_check+0x9/0x90

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

 



On Wed, Jan 25, 2012 at 05:27:49PM +0100, Borislav Petkov wrote:
> Hi all,
> 
> this is the oopsie I'm getting on 3.3-rc1 when inserting a Nokia
> internet stick CS-19 which has obviously a CD-ROM interface which
> is addressed through the SCSI layer. However, the blk request gets
> killed prematurely, causing a scsi_device * ptr to be NULL in
> scsi_prep_state_check(), which, IMHO, shouldn't happen, no matter
> whether the request is killed or not. Here's the relevant dmesg text and
> follow-up oops:

Btw,

I forgot to dump the actual function decode. So, according to the
register dump in the backtrace, we have %rdi = 0x0

And we are right at the beginning of scsi_prep_state_check:

scsi_prep_state_check:
	pushq	%rbp	#
	movq	%rsp, %rbp	#,
	call	mcount
	movl	2536(%rdi), %eax	# sdev_3(D)->sdev_state, D.34805


0000000000000b80 <scsi_prep_state_check>:
     b80:       55                      push   %rbp
     b81:       48 89 e5                mov    %rsp,%rbp
     b84:       e8 00 00 00 00          callq  b89 <scsi_prep_state_check+0x9>
     b89:       8b 87 e8 09 00 00       mov    0x9e8(%rdi),%eax			<-------------
     b8f:       83 f8 02                cmp    $0x2,%eax
     b92:       75 04                   jne    b98 <scsi_prep_state_check+0x18>
     b94:       31 c0                   xor    %eax,%eax

so sdev is NULL.

-- 
Regards/Gruss,
Boris.
--
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


[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