Re: Regression introduced by 6f381fa344911d5a234b13574433cf23036f9467[[SCSI] scsi_lib: use correct DMA device in __scsi_alloc_queue]
From: Lin Ming
Date: Mon May 07 2012 - 10:57:43 EST
On Mon, May 7, 2012 at 9:52 PM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
> Hey James,
>
> I am using iSCSI and I keep on getting this:
>
> scsi4 : iSCSI Initiator over TCP/IP
> BUG: unable to handle kernel NULL pointer dereference at 0000000000000118
> IP: [<ffffffffa0056da1>] __scsi_alloc_queue+0xa1/0x190 [scsi_mod]
> PGD 226cfb067 PUD 229300067 PMD 0
> Oops: 0000 [#1] SMP
> CPU 3
> Modules linked in: dm_multipath dm_mod iscsi_boot_sysfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi libcrc32c crc32c nouveau mxm_wmi wmi radeon ttm sg sr_mod sd_mod cdrom ata_generic ata_piix libata fbcon i915 tileblit font bitblit softcursor atl1c drm_kms_helper scsi_mod crc32c_intel e1000e video acpi_cpufreq mperf [last unloaded: dump_dma]
>
> Pid: 3065, comm: iscsid Tainted: G O 3.4.0-rc6upstream-00007-gf4f77c4 #1 MSI MS-7680/H61M-P23 (MS-7680)
> RIP: 0010:[<ffffffffa0056da1>] [<ffffffffa0056da1>] __scsi_alloc_queue+0xa1/0x190 [scsi_mod]
> RSP: 0018:ffff88022e92fa78 EFLAGS: 00010296
> RAX: 000000000023fe00 RBX: ffff88022748f800 RCX: 0000000000000010
> RDX: 0000000000000067 RSI: 00000000ffffffff RDI: ffff8802292ca078
> RBP: ffff88022e92fa98 R08: 0000000000000000 R09: 0000000000000008
> R10: ffff8802292b5000 R11: 0000000000000001 R12: 0000000000000000
> R13: ffff8802292ca078 R14: ffff880229094828 R15: 0000000000000000
> FS: 00007ffb5eea6700(0000) GS:ffff88023fb80000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000000118 CR3: 000000022924e000 CR4: 00000000000407e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Process iscsid (pid: 3065, threadinfo ffff88022e92e000, task ffff88022736d820)
> Stack:
> ffff88022e92fb78 ffff88022f182000 ffff880229094800 ffff88022748f800
> ffff88022e92fab8 ffffffffa0056ea8 ffff88022e92fab8 ffff88022f182000
> ffff88022e92fb08 ffffffffa0058faf 0000000000000282 0000000000000000
> Call Trace:
> [<ffffffffa0056ea8>] scsi_alloc_queue+0x18/0x70 [scsi_mod]
> [<ffffffffa0058faf>] scsi_alloc_sdev+0x19f/0x280 [scsi_mod]
> [<ffffffffa0059508>] scsi_probe_and_add_lun+0x478/0xd50 [scsi_mod]
>
> reverting above mentioned git commit fixes the issue.
Does Jame's below patch help?
http://www.spinics.net/lists/linux-scsi/msg59106.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/