oops with tcm_loop

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

 



When I do this:

modprobe tcm_loop
mount -t configfs configfs /sys/kernel/config/

cd /sys/kernel/config/target/core
mkdir fileio_0
mkdir fileio_0/fileio
echo 'fd_dev_name='$HOME/test2.img',fd_dev_size=5368709120' > fileio_0/fileio/control
echo 1 > fileio_0/fileio/enable

cd /sys/kernel/config/target
mkdir -p loopback/naa.600140554cf3a18e/tpgt_1
mkdir -p loopback/naa.600140554cf3a18e/tpgt_1/lun/lun_1
cd loopback/naa.600140554cf3a18e/tpgt_1
# "Obvious" error here: need to set up nexus before virtual_scsi_port!
ln -sf ../../../core/fileio_0/fileio lun/lun_1/virtual_scsi_port
echo naa.60014053226f0388 > nexus
echo '- - -' > /sys/bus/tcm_loop_bus/drivers/tcm_loop/tcm_loop_adapter_0/host*/scsi_host/host*/scan

... I get the following two OOPSes:

[  264.135309] BUG: unable to handle kernel NULL pointer dereference at 0000000000000090
[  264.136279] IP: [<ffffffffa0510498>] transport_processing_thread+0x61b/0xc8b [target_core_mod]
[  264.136279] PGD 0
[  264.136279] Oops: 0000 [#1] SMP
[  264.136279] CPU 0
[  264.136279] Modules linked in: target_core_pscsi target_core_file target_core_iblock tcm_loop target_core_mod configfs ecryptfs sha256_generic encrypted ecryptfs_format trusted ebtable_nat ebtables xt_CHECKSUM iptable_mangle bridge rfcomm btusb stp llc bnep lockd bluetooth snd_hda_codec_conexant xt_recent ip6t_REJECT xt_physdev nf_conntrack_ipv6 nf_defrag_ipv6 ipt_MASQUERADE xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack tpm_infineon ip6table_filter ip6_tables nf_defrag_ipv4 snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm thinkpad_acpi snd_timer snd arc4 virtio_net uvcvideo iwlagn videodev r592 r852 sm_common nand media sunrpc kvm_intel mac80211 kvm memstick v4l2_compat_ioctl32 cfg80211 e1000e iTCO_wdt iTCO_vendor_support nand_ids nand_ecc mtd joydev rfkill snd_page_alloc i2c_i801 ppdev soundcore parport_pc parport binfmt_misc microcode firewire_ohci firewire_core sdhci_pci pata_acpi sdhci mmc_core yenta_socket crc_itu_t ata_generic wmi i91
5 drm_kms_helper drm i2c_algo_bit i2c_core video
[  264.136279]
[  264.136279] Pid: 1646, comm: LIO_rd_mcp Not tainted 3.1.0-0.rc8.git0.1.fc16.x86_64 #1 LENOVO 2241B48/2241B48
[  264.136279] RIP: 0010:[<ffffffffa0510498>]  [<ffffffffa0510498>] transport_processing_thread+0x61b/0xc8b [target_core_mod]
[  264.136279] RSP: 0018:ffff880075d43df0  EFLAGS: 00010283
[  264.136279] RAX: 0000000000000000 RBX: ffff880074d64040 RCX: dead000000200200
[  264.136279] RDX: dead000000100100 RSI: 0000000000000282 RDI: ffff880075d43de0
[  264.136279] RBP: ffff880075d43ee0 R08: 0000000000000282 R09: 00000000006a6a83
[  264.136279] R10: 00000000006a6a83 R11: ffff880037af2800 R12: ffff880037af2800
[  264.136279] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[  264.136279] FS:  0000000000000000(0000) GS:ffff88007c200000(0000) knlGS:0000000000000000
[  264.136279] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  264.136279] CR2: 0000000000000090 CR3: 0000000001a05000 CR4: 00000000000006f0
[  264.136279] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  264.136279] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  264.136279] Process LIO_rd_mcp (pid: 1646, threadinfo ffff880075d42000, task ffff880075202e60)
[  264.136279] Stack:
[  264.136279]  00ff880000000000 ffff8800752032e0 ffffffff81605960 ffff88007c212f80
[  264.136279]  ffff880075d43e40 ffffffff81047f3c 0000000000012f80 ffff880037884000
[  264.136279]  0000000000000000 ffff880075202e60 ffff880037af2980 ffffffff814b4276
[  264.136279] Call Trace:
[  264.136279]  [<ffffffff81047f3c>] ? finish_task_switch+0x83/0xba
[  264.136279]  [<ffffffff814b4276>] ? __schedule+0x63b/0x669
[  264.136279]  [<ffffffff810734de>] ? remove_wait_queue+0x3a/0x3a
[  264.136279]  [<ffffffffa050fe7d>] ? transport_generic_do_tmr+0x96/0x96 [target_core_mod]
[  264.136279]  [<ffffffff81072def>] kthread+0x84/0x8c
[  264.136279]  [<ffffffff814be234>] kernel_thread_helper+0x4/0x10
[  264.136279]  [<ffffffff81072d6b>] ? kthread_worker_fn+0x148/0x148
[  264.136279]  [<ffffffff814be230>] ? gs_change+0x13/0x13
[  264.136279] Code: a7 ff ff 48 85 c0 48 89 c3 0f 84 af 04 00 00 8b 40 14 ff c8 83 f8 11 0f 87 3f 04 00 00 ff 24 c5 50 73 51 a0 48 8b 83 d8 00 00 00
[  284.802503]
[  284.802503] Pid: 1756, comm: scsi_eh_4 Tainted: G      D     3.1.0-0.rc8.git0.1.fc16.x86_64 #1 LENOVO 2241B48/2241B48
[  284.802503] RIP: 0010:[<ffffffffa050c8eb>]  [<ffffffffa050c8eb>] transport_release_cmd+0x18/0x33 [target_core_mod]
[  284.802503] RSP: 0018:ffff880074d7bcc0  EFLAGS: 00010246
[  284.802503] RAX: 00000000ffffffed RBX: ffff880075d98340 RCX: 0000000000002003
[  284.802503] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff880075d98340
[  284.802503] RBP: ffff880074d7bcd0 R08: ffff88007c215d80 R09: ffffffff81cc6d30
[  284.802503] R10: ffffffff81cc6d30 R11: ffff880074d7be78 R12: 0000000000000000
[  284.802503] R13: 0000000000000001 R14: ffff880037afba00 R15: ffff880075f857e8
[  284.802503] FS:  0000000000000000(0000) GS:ffff88007c200000(0000) knlGS:0000000000000000
[  284.802503] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  284.802503] CR2: 00007fc128622000 CR3: 0000000001a05000 CR4: 00000000000006f0
[  284.802503] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  284.802503] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  284.802503] Process scsi_eh_4 (pid: 1756, threadinfo ffff880074d7a000, task ffff880073cadcc0)
[  284.802503] Stack:
[  284.802503]  00000000ffffffed ffff880075d98340 ffff880074d7bd00 ffffffffa050ca43
[  284.802503]  ffffffff81cc6d30 ffff880075d98300 ffff880075f857e0 ffff880075d98340
[  284.802503]  ffff880074d7bda0 ffffffffa03d23b3 ffff880075d98580 ffffffff8104a0f8
[  284.802503] Call Trace:
[  284.802503]  [<ffffffffa050ca43>] transport_generic_free_cmd+0x24/0x81 [target_core_mod]
[  284.802503]  [<ffffffffa03d23b3>] tcm_loop_device_reset+0x1dc/0x1fe [tcm_loop]
[  284.802503]  [<ffffffff8104a0f8>] ? update_rq_clock+0x28/0x147
[  284.802503]  [<ffffffff812da823>] ? get_device+0x19/0x1f
[  284.802503]  [<ffffffff812f19b0>] scsi_try_bus_device_reset+0x2b/0x47
[  284.802503]  [<ffffffff812f2d47>] scsi_eh_ready_devs+0x1d9/0x697
[  284.802503]  [<ffffffff812e635f>] ? __pm_runtime_resume+0x57/0x65
[  284.802503]  [<ffffffff812f3c8d>] scsi_error_handler+0x37a/0x591
[  284.802503]  [<ffffffff812f3913>] ? scsi_eh_get_sense+0x183/0x183
[  284.802503]  [<ffffffff81072def>] kthread+0x84/0x8c
[  284.802503]  [<ffffffff814be234>] kernel_thread_helper+0x4/0x10
[  284.802503]  [<ffffffff81072d6b>] ? kthread_worker_fn+0x148/0x148
[  284.802503]  [<ffffffff814be230>] ? gs_change+0x13/0x13
[  284.802503] Code: ff ff ff eb 0c be 01 00 00 00 e8 a6 ed ff ff 31 c0 5d c3 55 48 89 e5 53 50 66 66 66 66 90 48 83 bf d8 00 00 00 00 48 89 fb 75 02 <0f> 0b e8 08 f6 ff ff 48 8b 83 d8 00 00 00 48 89 df ff 90 a0 00

Reproduced with both 3.0.3 and 3.1.0-rc8.

HTH,

Paolo

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux