[Pkg-iscsi-maintainers] Bug#667545: iscsi_trgt: Kernel bug when using sanhook from ipxe
H. Buurman
debian at ilostthegame.eu
Wed Apr 4 19:40:57 UTC 2012
Package: iscsitarget
Version: 1.4.20.2-10
Severity: important
Dear Maintainer,
* What led up to the situation?
Issuing a sanhook-command from an ipxe console to an exported iscsi-volume.
* What exactly did you do (or not do) that was effective (or
ineffective)?
Issued the following commands from a (onboard nic) pxe-booted ipxe shell:
dhcp net0
set username UserNameHidden
set password PasswordHidden
sanhook iscsi:10.17.105.4::::iqn.2012-03.eu.redacted:vol2
* What was the outcome of this action?
Kernel BUG-report (copied from dmesg below) and subsequent inability to do anything iscsi-related. Any process trying to do something with the iscsi_trgt module hangs. (So a clean shutdown is not an option since `/etc/init.d/iscsitarget stop` hangs)
* What outcome did you expect instead?
Volume hooked as drive.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages iscsitarget depends on:
ii libc6 2.13-27
ii lsb-base 4.1+Debian0
ii procps 1:3.3.2-3
Versions of packages iscsitarget recommends:
pn iscsitarget-module <none>
Versions of packages iscsitarget suggests:
ii iscsitarget-dkms 1.4.20.2-10
-- Configuration Files:
/etc/default/iscsitarget changed:
ISCSITARGET_ENABLE=true
ISCSITARGET_OPTIONS=""
/etc/iet/ietd.conf changed:
IncomingUser UserNameHidden PasswordHidden
Target iqn.2012-03.eu.redacted:vol1
IncomingUser UserNameHidden PasswordHidden
Lun 0 Path=/mnt/storage3/Private/64GBssd.dd,Type=fileio
Target iqn.2012-03.eu.redacted:vol2
IncomingUser UserNameHidden PasswordHidden
Lun 0 Path=/mnt/storage3/Private/disk_new.dd,Type=fileio
-- no debconf information
-- dmesg excerpt
[ 158.900037] iSCSI Enterprise Target Software - version 1.4.20.3
[ 158.900102] iscsi_trgt: Registered io type fileio
[ 158.900105] iscsi_trgt: Registered io type blockio
[ 158.900107] iscsi_trgt: Registered io type nullio
[ 273.196717] iscsi_trgt: BUG at /var/lib/dkms/iscsitarget/1.4.20.2/build/kernel/iscsi.c:392 assert(req->tio)
[ 273.196807] Pid: 3376, comm: istiod2 Tainted: G O 3.2.0-2-amd64 #1
[ 273.196810] Call Trace:
[ 273.196821] [<ffffffffa03753f1>] ? send_data_rsp+0x45/0x1f4 [iscsi_trgt]
[ 273.196828] [<ffffffffa037e093>] ? ua_pending+0x19/0xa5 [iscsi_trgt]
[ 273.196835] [<ffffffffa037cda8>] ? disk_execute_cmnd+0x1cf/0x22d [iscsi_trgt]
[ 273.196841] [<ffffffffa0378a3d>] ? worker_thread+0xfd/0x255 [iscsi_trgt]
[ 273.196848] [<ffffffff8103f467>] ? try_to_wake_up+0x197/0x197
[ 273.196855] [<ffffffffa0378940>] ? nthread_stop+0x35/0x35 [iscsi_trgt]
[ 273.196860] [<ffffffff8105ef3d>] ? kthread+0x76/0x7e
[ 273.196867] [<ffffffff81350174>] ? kernel_thread_helper+0x4/0x10
[ 273.196872] [<ffffffff8105eec7>] ? kthread_worker_fn+0x139/0x139
[ 273.196876] [<ffffffff81350170>] ? gs_change+0x13/0x13
[ 273.196900] ------------[ cut here ]------------
[ 273.196951] kernel BUG at /var/lib/dkms/iscsitarget/1.4.20.2/build/kernel/iscsi.c:392!
[ 273.197009] invalid opcode: 0000 [#1] SMP
[ 273.197048] CPU 1
[ 273.197064] Modules linked in: iscsi_trgt(O) crc32c sha256_generic cryptd aes_x86_64 aes_generic cbc fuse dm_crypt it87 hw
mon_vid eeprom loop iTCO_wdt iTCO_vendor_support snd_pcm snd_page_alloc snd_timer snd soundcore i2c_i801 evdev pcspkr i915 vi
deo drm_kms_helper processor drm i2c_algo_bit i2c_core thermal_sys button ext4 crc16 jbd2 mbcache dm_mod raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq md_mod sd_mod crc_t10dif usb_storage ata_generic uas pata_jmicron uhci_hcd ahci libahci libata mpt2sas raid_class scsi_transport_sas ehci_hcd e1000e scsi_mod usbcore usb_common [last unloaded: crc32c]
[ 273.197679]
[ 273.197694] Pid: 3376, comm: istiod2 Tainted: G O 3.2.0-2-amd64 #1 Gigabyte Technology Co., Ltd. 965G-DS3/965G-DS3
[ 273.197785] RIP: 0010:[<ffffffffa03753f1>] [<ffffffffa03753f1>] send_data_rsp+0x45/0x1f4 [iscsi_trgt]
[ 273.197859] RSP: 0018:ffff8801286f5e10 EFLAGS: 00010286
[ 273.197899] RAX: 0000000000000000 RBX: ffff8801227777f0 RCX: 00000000000035e6
[ 273.197952] RDX: 00000000000035e6 RSI: ffff8801286f5f58 RDI: ffff8801286f5f58
[ 273.198004] RBP: 0000000000000000 R08: 0000000000000002 R09: 00000000fffffffe
[ 273.198057] R10: 0000000000000001 R11: 0000000000000002 R12: ffff8801234de9f0
[ 273.198109] R13: ffff880127f36000 R14: ffff880129c63e58 R15: ffff880129c63e68
[ 273.198162] FS: 0000000000000000(0000) GS:ffff88012fc80000(0000) knlGS:0000000000000000
[ 273.198221] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 273.198265] CR2: 00007fee026c60ac CR3: 0000000129036000 CR4: 00000000000006e0
[ 273.198318] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 273.198370] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 273.198423] Process istiod2 (pid: 3376, threadinfo ffff8801286f4000, task ffff8801234de9f0)
[ 273.198483] Stack:
[ 273.198500] 0000000000000000 ffff88012795a380 0000000000013540 ffffffffa037e093
[ 273.198568] ffff8801286f5fd8 ffff8801227777f0 ffff8801234de9f0 ffff8801234de9f0
[ 273.198636] ffff880127f36000 ffff880129c63e58 ffff880129c63e68 ffffffffa037cda8
[ 273.198704] Call Trace:
[ 273.198728] [<ffffffffa037e093>] ? ua_pending+0x19/0xa5 [iscsi_trgt]
[ 273.198779] [<ffffffffa037cda8>] ? disk_execute_cmnd+0x1cf/0x22d [iscsi_trgt]
[ 273.198835] [<ffffffffa0378a3d>] ? worker_thread+0xfd/0x255 [iscsi_trgt]
[ 273.198886] [<ffffffff8103f467>] ? try_to_wake_up+0x197/0x197
[ 273.198933] [<ffffffffa0378940>] ? nthread_stop+0x35/0x35 [iscsi_trgt]
[ 273.198983] [<ffffffff8105ef3d>] ? kthread+0x76/0x7e
[ 273.199023] [<ffffffff81350174>] ? kernel_thread_helper+0x4/0x10
[ 273.199070] [<ffffffff8105eec7>] ? kthread_worker_fn+0x139/0x139
[ 273.199117] [<ffffffff81350170>] ? gs_change+0x13/0x13
[ 273.199156] Code: 48 85 ed 75 28 48 c7 c1 38 fd 37 a0 ba 88 01 00 00 48 c7 c6 a7 f9 37 a0 48 c7 c7 df f9 37 a0 31 c0 e8 54 d6 fc e0 e8 14 bc fc e0 <0f> 0b 48 89 df e8 d0 fa ff ff 8b 55 14 39 d0 0f 46 d0 85 d2 0f
[ 273.199503] RIP [<ffffffffa03753f1>] send_data_rsp+0x45/0x1f4 [iscsi_trgt]
[ 273.199560] RSP <ffff8801286f5e10>
[ 273.199589] ---[ end trace 04d3c22ce67c9e20 ]---
[ 1272.832289] general protection fault: 0000 [#2] SMP
[ 1272.834264] CPU 0
[ 1272.834281] Modules linked in: iscsi_trgt(O) crc32c sha256_generic cryptd aes_x86_64 aes_generic cbc fuse dm_crypt it87 hwmon_vid eeprom loop iTCO_wdt iTCO_vendor_support snd_pcm snd_page_alloc snd_timer snd soundcore i2c_i801 evdev pcspkr i915 video drm_kms_helper processor drm i2c_algo_bit i2c_core thermal_sys button ext4 crc16 jbd2 mbcache dm_mod raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq md_mod sd_mod crc_t10dif usb_storage ata_generic uas pata_jmicron uhci_hcd ahci libahci libata mpt2sas raid_class scsi_transport_sas ehci_hcd e1000e scsi_mod usbcore usb_common [last unloaded: crc32c]
[ 1272.836230]
[ 1272.836230] Pid: 3369, comm: istd2 Tainted: G D O 3.2.0-2-amd64 #1 Gigabyte Technology Co., Ltd. 965G-DS3/965G-DS3
[ 1272.836230] RIP: 0010:[<ffffffff81036087>] [<ffffffff81036087>] __wake_up_common+0x3d/0x77
[ 1272.836230] RSP: 0018:ffff8801277bdce0 EFLAGS: 00010083
[ 1272.836230] RAX: ffff8801286f5e90 RBX: 0000000000000001 RCX: 0000000000000000
[ 1272.836230] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff8801286f5e90
[ 1272.836230] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000013540
[ 1272.836230] R10: 0000000000013540 R11: ffff88012795a380 R12: 2020202020202008
[ 1272.836230] R13: 00000000796d2068 R14: 0000000000000000 R15: ffff880129c63e70
[ 1272.836230] FS: 0000000000000000(0000) GS:ffff88012fc00000(0000) knlGS:0000000000000000
[ 1272.836230] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1272.836230] CR2: 00007f44e8835000 CR3: 00000001274a9000 CR4: 00000000000006f0
[ 1272.836230] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1272.836230] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1272.836230] Process istd2 (pid: 3369, threadinfo ffff8801277bc000, task ffff88012795a380)
[ 1272.836230] Stack:
[ 1272.836230] ffff8801227770a0 0000000000000000 00000000000000e5 ffff880129c63e68
[ 1272.836230] 0000000000000286 0000000000000000 0000000000000001 ffff880124c3a098
[ 1272.836230] 0000000000000001 ffffffff81037d46 ffff88012795a380 0000000000000000
[ 1272.836230] Call Trace:
[ 1272.836230] [<ffffffff81037d46>] ? __wake_up+0x35/0x46
[ 1272.836230] [<ffffffffa037620c>] ? iscsi_session_push_cmnd+0x1ba/0x24f [iscsi_trgt]
[ 1272.836230] [<ffffffff81347d3f>] ? _cond_resched+0x7/0x1c
[ 1272.836230] [<ffffffffa0377cca>] ? istd+0x500/0x101e [iscsi_trgt]
[ 1272.836230] [<ffffffff810396e3>] ? load_cr3+0x6/0x12
[ 1272.836230] [<ffffffff810135ad>] ? paravirt_read_tsc+0x5/0x8
[ 1272.836230] [<ffffffff812d7f34>] ? inet_dgram_connect+0x72/0x72
[ 1272.836230] [<ffffffff81347ce4>] ? __schedule+0x5ac/0x5c3
[ 1272.836230] [<ffffffffa03777ca>] ? nthread_wakeup+0x2c/0x2c [iscsi_trgt]
[ 1272.836230] [<ffffffff8105ef3d>] ? kthread+0x76/0x7e
[ 1272.836230] [<ffffffff81350174>] ? kernel_thread_helper+0x4/0x10
[ 1272.836230] [<ffffffff8105eec7>] ? kthread_worker_fn+0x139/0x139
[ 1272.836230] [<ffffffff81350170>] ? gs_change+0x13/0x13
[ 1272.836230] Code: 53 89 d3 48 83 ec 18 48 8b 57 08 4c 8b 22 48 8d 42 e8 49 83 ec 18 eb 35 44 8b 28 4c 89 c1 4c 89 44 24 08 44 89 f2 89 ee 48 89 c7 <ff> 50 10 85 c0 4c 8b 44 24 08 74 0a 41 80 e5 01 74 04 ff cb 74
[ 1272.836230] RIP [<ffffffff81036087>] __wake_up_common+0x3d/0x77
[ 1272.836230] RSP <ffff8801277bdce0>
[ 1272.836230] ---[ end trace 04d3c22ce67c9e21 ]---
More information about the Pkg-iscsi-maintainers
mailing list