Hey all,

     I'm running open-iscsi-2.0-865.9 on kernel-2.6.22.  On bootup my
root drive is /dev/sda and I have a flash drive on /dev/sdc.  When I
try to login to my iscsi device with mdadm I get a kernel oops:

-bash# iscsiadm -m node -p 172.19.151.169:3260,1 -T iqn.
1999-02.com.nexsan:p0:sataboy:01731a5a --login
Login session [iface: default, target: iqn.
1999-02.com.nexsan:p0:sataboy:01731a5a, portal: 172.19.151.169,3260]
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
kobject_add failed for sdc with -EEXIST, don't try to register things
with the same name in the same directory.
BUG: unable to handle kernel NULL pointer dereference at virtual
address 00000008
 printing eip:
*pde = 00000000
Oops: 0000 [#1]
Modules linked in: iscsi_tcp libiscsi scsi_transport_iscsi
CPU:    0
EIP:    0060:[<c0189241>]    Not tainted VLI
EFLAGS: 00210282   (2.6.22.10-vs2.2.0.5-cisco-nmx #1)
EIP is at create_dir+0x21/0x190
eax: c226f584   ebx: f738bbd4   ecx: c226f588   edx: 00000000
esi: c226f584   edi: c226f584   ebp: 00000000   esp: f738bba4
ds: 007b   es: 007b   fs: 0000  gs: 0033  ss: 0068
Process iscsid (pid: 4461, ti=f738a000 task=f70dd0b0 task.ti=f738a000)
Stack: c038d9b4 c038af10 c226f588 c226f584 c038af10 c0103c41 c226f584
c226f584
       c226f584 00000000 c01893d4 f738bbd4 00000000 00000000 c0203a1f
f79399c0
       f737b840 c0186e80 00000000 f7939a10 f79399c0 c226f4c0 c226f584
f737b840
Call Trace:
 [<c0103c41>] dump_stack+0x11/0x20
 [<c01893d4>] sysfs_create_dir+0x24/0x70
 [<c0203a1f>] kobject_shadow_add+0x7f/0x1a0
 [<c0186e80>] register_disk+0x50/0x1f0
 [<c01f4b72>] blk_register_queue+0x52/0x90
 [<c026c6c8>] sd_probe+0x278/0x3f0
 [<c0189e47>] sysfs_create_link+0x57/0x150
 [<c0230c57>] driver_probe_device+0x87/0x190
 [<c03461c1>] klist_next+0x51/0xb0
 [<c022ff24>] bus_for_each_drv+0x44/0x70
 [<c0230e19>] device_attach+0x79/0x80
 [<c0230d60>] __device_attach+0x0/0x10
 [<c022fe95>] bus_attach_device+0x45/0x90
 [<c022eb93>] device_add+0x493/0x560
 [<c0268502>] scsi_sysfs_add_sdev+0x32/0x230
 [<c02665bd>] scsi_probe_and_add_lun+0x95d/0x980
 [<c0266ada>] __scsi_scan_target+0xda/0x5f0
 [<c01628ec>] dput+0x1c/0xe0
 [<c01395de>] filemap_nopage+0x23e/0x2e0
 [<c014296c>] __handle_mm_fault+0x1fc/0x8d0
 [<c02676a6>] scsi_scan_target+0xb6/0xe0
 [<f8a01760>] iscsi_user_scan+0x70/0x90 [scsi_transport_iscsi]
 [<f8a016f0>] iscsi_user_scan+0x0/0x90 [scsi_transport_iscsi]
 [<c026818b>] store_scan+0xbb/0xf0
 [<c01107e0>] do_page_fault+0x0/0x5e0
 [<c03482ca>] error_code+0x6a/0x70
 [<c02680d0>] store_scan+0x0/0xf0
 [<c0232196>] class_device_attr_store+0x26/0x40
 [<c0188151>] sysfs_write_file+0xb1/0x110
 [<c01880a0>] sysfs_write_file+0x0/0x110
 [<c0153820>] vfs_write+0xa0/0x140
 [<c0153da1>] sys_write+0x41/0x70
 [<c010280e>] sysenter_past_esp+0x5f/0x85
 [<c0340000>] xdr_xcode_array2+0x3c0/0x5e0
 =======================
Code: 74 26 00 8d bc 27 00 00 00 00 83 ec 28 89 5c 24 18 8b 5c 24 2c
89 74 24 1c 89 7c 24 20 89 6c 24 24 89 d5 89 4c 24 08 89 44 24 0c <8b>
42 08 83 c0 68 e8 94 e4 1b 00 31 c0b9 ff ff ff ff 8b 7c 24
EIP: [<c0189241>] create_dir+0x21/0x190 SS:ESP 0068:f738bba4
Feb 25 17:54:07 localhost kernel: BUG: unable to handle kernel NULL
pointer dereference at virtual address 00000008
Feb 25 17:54:07 localhost kernel:  printing eip:
Feb 25 17:54:07 localhost kernel: *pde = 00000000
Feb 25 17:54:07 localhost kernel: Oops: 0000 [#1]
Feb 25 17:54:07 localhost kernel: CPU:    0
Feb 25 17:54:07 localhost kernel: EIP:    0060:[<c0189241>]    Not
tainted VLI
Feb 25 17:54:07 localhost kernel: EFLAGS: 00210282   (2.6.22.10-
vs2.2.0.5-cisco-nmx #1)
Feb 25 17:54:07 localhost kernel: EIP is at create_dir+0x21/0x190
Feb 25 17:54:07 localhost kernel: eax: c226f584   ebx: f738bbd4   ecx:
c226f588   edx: 00000000
Feb 25 17:54:07 localhost kernel: esi: c226f584   edi: c226f584   ebp:
00000000   esp: f738bba4
Feb 25 17:54:07 localhost kernel: ds: 007b   es: 007b   fs: 0000  gs:
0033  ss: 0068
Feb 25 17:54:07 localhost kernel: Process iscsid (pid: 4461,
ti=f738a000 task=f70dd0b0 task.ti=f738a000)
Feb 25 17:54:07 localhost kernel: Stack: c038d9b4 c038af10 c226f588
c226f584 c038af10 c0103c41 c226f584 c226f584
Feb 25 17:54:07 localhost kernel:        c226f584 00000000 c01893d4
f738bbd4 00000000 00000000 c0203a1f f79399c0
Feb 25 17:54:07 localhost kernel:        f737b840 c0186e80 00000000
f7939a10 f79399c0 c226f4c0 c226f584 f737b840
Feb 25 17:54:07 localhost kernel: Call Trace:
Feb 25 17:54:07 localhost kernel:  [<c0103c41>] dump_stack+0x11/0x20
Feb 25 17:54:07 localhost kernel:  [<c01893d4>] sysfs_create_dir
+0x24/0x70
Feb 25 17:54:07 localhost kernel:  [<c0203a1f>] kobject_shadow_add
+0x7f/0x1a0
Feb 25 17:54:07 localhost kernel:  [<c0186e80>] register_disk
+0x50/0x1f0
Feb 25 17:54:07 localhost kernel:  [<c01f4b72>] blk_register_queue
+0x52/0x90
Feb 25 17:54:07 localhost kernel:  [<c026c6c8>] sd_probe+0x278/0x3f0
Feb 25 17:54:07 localhost kernel:  [<c0189e47>] sysfs_create_link
+0x57/0x150
Feb 25 17:54:07 localhost kernel:  [<c0230c57>] driver_probe_device
+0x87/0x190
Feb 25 17:54:07 localhost kernel:  [<c03461c1>] klist_next+0x51/0xb0
Feb 25 17:54:07 localhost kernel:  [<c022ff24>] bus_for_each_drv
+0x44/0x70
Feb 25 17:54:07 localhost kernel:  [<c0230e19>] device_attach
+0x79/0x80
Feb 25 17:54:07 localhost kernel:  [<c0230d60>] __device_attach
+0x0/0x10
Feb 25 17:54:07 localhost kernel:  [<c022fe95>] bus_attach_device
+0x45/0x90
Feb 25 17:54:07 localhost kernel:  [<c022eb93>] device_add+0x493/0x560
Feb 25 17:54:07 localhost kernel:  [<c0268502>] scsi_sysfs_add_sdev
+0x32/0x230
Feb 25 17:54:07 localhost kernel:  [<c02665bd>] scsi_probe_and_add_lun
+0x95d/0x980
Feb 25 17:54:07 localhost kernel:  [<c0266ada>] __scsi_scan_target
+0xda/0x5f0
Feb 25 17:54:07 localhost kernel:  [<c01628ec>] dput+0x1c/0xe0
Feb 25 17:54:07 localhost kernel:  [<c01395de>] filemap_nopage+0x23e/
0x2e0
Feb 25 17:54:07 localhost kernel:  [<c014296c>] __handle_mm_fault
+0x1fc/0x8d0
Feb 25 17:54:07 localhost kernel:  [<c02676a6>] scsi_scan_target
+0xb6/0xe0
Feb 25 17:54:07 localhost kernel:  [<f8a01760>] iscsi_user_scan
+0x70/0x90 [scsi_transport_iscsi]
Feb 25 17:54:07 localhost kernel:  [<f8a016f0>] iscsi_user_scan
+0x0/0x90 [scsi_transport_iscsi]
Feb 25 17:54:07 localhost kernel:  [<c026818b>] store_scan+0xbb/0xf0
Feb 25 17:54:07 localhost kernel:  [<c01107e0>] do_page_fault
+0x0/0x5e0
Feb 25 17:54:07 localhost kernel:  [<c03482ca>] error_code+0x6a/0x70
Feb 25 17:54:07 localhost kernel:  [<c02680d0>] store_scan+0x0/0xf0
Feb 25 17:54:07 localhost kernel:  [<c0232196>] class_device_attr_store
+0x26/0x40
Feb 25 17:54:07 localhost kernel:  [<c0188151>] sysfs_write_file
+0xb1/0x110
Feb 25 17:54:07 localhost kernel:  [<c01880a0>] sysfs_write_file
+0x0/0x110
Feb 25 17:54:07 localhost kernel:  [<c0153820>] vfs_write+0xa0/0x140
Feb 25 17:54:07 localhost kernel:  [<c0153da1>] sys_write+0x41/0x70
Feb 25 17:54:07 localhost kernel:  [<c010280e>] sysenter_past_esp+0x5f/
0x85
Feb 25 17:54:07 localhost kernel:  [<c0340000>]
xdr_xcode_array2+0x3c0/0x5e0
Feb 25 17:54:07 localhost kernel:  =======================
Feb 25 17:54:07 localhost kernel: Code: 74 26 00 8d bc 27 00 00 00 00
83 ec 28 89 5c 24 18 8b 5c 24 2c 89 74 24 1c 89 7c 24 20 89 6c 24 24
89 d5 89 4c 24 08 89 44 24 0c <8b> 42 08 83 c0 68 e8 94 e4 1b 00 31 c0
b9 ff ff ff ff 8b 7c 24
Feb 25 17:54:07 localhost kernel: EIP: [<c0189241>] create_dir
+0x21/0x190 SS:ESP 0068:f738bba4
iscsiadm: got read error (0/0), daemon died?

     If I remove the flash drive on /dev/sdc and try login I don't see
the kernel oops.  All I end up seeing is this:

iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)
iscsi: cmd 0x35 is not queued (6)

I know a few other people have seen this issue on this messageboard.
But I saw no solutions.  Its impossible for me to upgrade the open-
iscsi version.  But maybe I could patch in a fix if this was fixed in
a later version.

Thanks,

JD

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to