You are not logged in.

#1 2015-07-18 00:48:25

timemaster
Member
Registered: 2012-09-26
Posts: 26

[Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Hello,
I am having a freeze with truecrypt when mouting a container since last updates. Tried four times with the same outcome.
When mounting the container, the computer completly froze :
- mouse animation (of mounting) stop rotating, and mouse cannot be moved
- cannot switch to a console or log terminal
- sysrequest keys does not work
- keyboard light on the keybord does NOT flash, like a normal kernel panic

looking at my last pacman upgrade, there is only a few component, and upgrade the kernel from 4.0.7-2 to 4.1.2-2 is likely the culprit.
anyone having this issue other than me ?

edit : rollbacking the the whole update fixed the issue, so it's probably the kernel.

Last edited by timemaster (2015-09-27 17:56:29)

Offline

#2 2015-07-18 21:41:01

meccanus
Member
Registered: 2013-04-23
Posts: 14

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

I am experiencing exactly the same issue.

Offline

#3 2015-07-18 22:13:56

herOldMan
Member
Registered: 2013-10-11
Posts: 161

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Hello,

I, and others in my group, had this problem too.

I now use tcplay to create and open my tc containers and devices. To automate the mount I made a script:
https://bbs.archlinux.org/viewtopic.php?id=192992

Offline

#4 2015-07-19 09:02:13

meccanus
Member
Registered: 2013-04-23
Posts: 14

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Actually both veracrypt and tcplay hang my computer.
Any hints about possible causes or anything I can do to trace them?
TC not working is a huge problem for me.

Offline

#5 2015-07-19 09:17:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

tcplay and 4.1.2-2 work fine for me...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-07-19 09:19:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Sidebar - Maybe you should switch to luks.

Offline

#7 2015-07-19 10:40:04

meccanus
Member
Registered: 2013-04-23
Posts: 14

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Tried tcplay following step by step https://wiki.archlinux.org/index.php/Tcplay
As soon as I losetup /dev/loop0 /path/to/tc/container.tc the system halts.
This happens with the latest kernel (4.1.2-2 ) + zfs + latest tcplay.
I don't know where to start to find a solution.
I might switch to encfs or whatever in the future, but would really like to be able to open my container right now tongue
Thank you for any advice.

Offline

#8 2015-07-19 13:41:39

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Is it only me and meccanus that are having this problem while running the container on a zfs filesystem ? (could this be only happening for people with zfs?)

graysky - luks is the better aporoach maintenance and security wise, but there is no good graphical interface to using it from what I know. Feel free to recomment a good user interface. same reason herOldMan has been doing a little script, by using zenity you get a minimal graphical interface and don't need to cryptsetup openLuks fron the terminal every darm time.

Offline

#9 2015-07-19 13:48:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Why do you need a gui?  You can setup to automount when you boot via /etc/crypttab or just use a script that does it on demand.  See the luks wiki for the former or this for the later:

#!/bin/bash

if [[ ! -b /dev/mapper/porn ]]; then
	sudo cryptsetup open /dev/sdb2 porn
	[[ $? -ne 0 ]] && exit 1
fi

mountpoint -q /media/porn || sudo mount -o noatime /dev/sdb2 /media/porn

Last edited by graysky (2015-07-19 13:52:49)

Offline

#10 2015-07-19 14:32:45

meccanus
Member
Registered: 2013-04-23
Posts: 14

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

I did some more tests:
- losetup on other files (an iso) fails too.
- cryptsetup freezes my pc as well.

I have been searching on the internet for a while but couldn't find anything useful.

Offline

#11 2015-07-19 14:57:59

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

meccanus wrote:

Actually both veracrypt and tcplay hang my computer.
Any hints about possible causes or anything I can do to trace them?
TC not working is a huge problem for me.

You might be able to get kernel message and crash through a connected ethernet/serial/usb console. Once connected, all your kernel message will be forwarded to another computer. You then do the operation that makes it crash, and even if this computer is crashed, you should be able to see kernel oops or crash on the remote computer.
NetConsole seems to be the easy way to set this without requiring com port. serial/usb can be setup with the "console" kernel parameters.

Offline

#12 2015-07-19 16:53:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

timemaster wrote:

Is it only me and meccanus that are having this problem while running the container on a zfs filesystem ?

Could be; I am using ext4.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2015-07-19 17:09:59

meccanus
Member
Registered: 2013-04-23
Posts: 14

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

I can confirm that the problem appears to be related to zfs.
I moved my TC containers on an ext4 partition and could mount them with no issue from there.

Offline

#14 2015-07-19 20:37:37

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

Hummm... if it's related to zfs somehow, it as weird as it get, as the kernel stacktrace is not related to zfs at all. I'll try to mount it on a different filesystem too later.

kernel stacktrace on crash catched with netconsole :

[ 1785.764259] device-mapper: uevent: version 1.0.3
[ 1785.764458] device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com
[ 1785.824150] loop: module loaded
[ 1785.962411] BUG: unable to handle kernel NULL pointer dereference at 0000000000000778
[ 1785.962432] IP: [<ffffffff81165b48>] unlock_page+0x48/0x70
[ 1785.962443] PGD 0 
[ 1785.962449] Oops: 0000 [#1] PREEMPT SMP 
[ 1785.962457] Modules linked in: dm_crypt loop dm_mod netconsole rfcomm fuse bnep cfg80211 btusb btbcm btintel nvidia(PO) bluetooth rfkill snd_usb_audio crc16 snd_usbmidi_lib snd_rawmidi snd_seq_device mousedev intel_powerclamp kvm_intel snd_hda_codec_hdmi kvm e1000e snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel iTCO_wdt ghash_clmulni_intel drm gpio_ich iTCO_vendor_support snd_hda_controller aesni_intel ptp mac_hid snd_hda_codec aes_x86_64 evdev pps_core lrw snd_hda_core ipmi_ssif gf128mul snd_hwdep glue_helper snd_pcm ipmi_si ablk_helper serio_raw pcspkr snd_timer cryptd ipmi_msghandler snd i2c_i801 button soundcore i7core_edac ioatdma lpc_ich shpchp edac_core dca acpi_cpufreq i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) hid_generic sr_mod cdrom sd_mod usbhid uas hid atkbd usb_storage libps2 ahci libahci uhci_hcd ehci_pci libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[ 1785.962939] CPU: 2 PID: 1010 Comm: kworker/u52:0 Tainted: P           O    4.1.2-2-ARCH #1
[ 1785.962949] Workqueue: kloopd1 loop_queue_read_work [loop]
[ 1785.962953] task: ffff8801b674dbb0 ti: ffff8800b4e34000 task.ti: ffff8800b4e34000
[ 1785.962956] RIP: 0010:[<ffffffff81165b48>]  [<ffffffff81165b48>] unlock_page+0x48/0x70
[ 1785.962962] RSP: 0018:ffff8800b4e37bc8  EFLAGS: 00010a07
[ 1785.962964] RAX: 00000000000006c0 RBX: 0000000000000001 RCX: 0000000000000040
[ 1785.962967] RDX: a5ffe3cae08d4840 RSI: ffffea00018d4840 RDI: ffffea00018d4840
[ 1785.962970] RBP: ffff8800b4e37bc8 R08: 0000000000000001 R09: ffff8801b9403b80
[ 1785.962972] R10: 0000000000000000 R11: 00000000000002cf R12: ffff88018df5c498
[ 1785.962975] R13: ffff88018df5c400 R14: 0000000000000000 R15: ffff88015ba60000
[ 1785.962978] FS:  0000000000000000(0000) GS:ffff8801b9a80000(0000) knlGS:0000000000000000
[ 1785.963074] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1785.963077] CR2: 0000000000000778 CR3: 000000000180b000 CR4: 00000000000007e0
[ 1785.963079] Stack:
[ 1785.963082]  ffff8800b4e37bd8 ffffffff81166ade ffff8800b4e37c08 ffffffff81220ae2
[ 1785.963089]  ffff88018df5c400 00000000fffffffb 0000000000000000 0000000000001000
[ 1785.963096]  ffff8800b4e37c38 ffffffff812949cb 0000000000000010 ffff88018df5c400
[ 1785.963103] Call Trace:
[ 1785.963109]  [<ffffffff81166ade>] page_endio+0x1e/0x60
[ 1785.963115]  [<ffffffff81220ae2>] mpage_end_io+0x42/0x60
[ 1785.963119]  [<ffffffff812949cb>] bio_endio+0x5b/0xa0
[ 1785.963124]  [<ffffffff8129bed4>] blk_update_request+0x94/0x380
[ 1785.963196]  [<ffffffff812a50ea>] blk_mq_end_request+0x1a/0x70
[ 1785.963200]  [<ffffffff812a5e8b>] __blk_mq_complete_request+0xeb/0x130
[ 1785.963204]  [<ffffffff812a5ee6>] blk_mq_complete_request+0x16/0x20
[ 1785.963208]  [<ffffffffa052ca01>] loop_handle_cmd.isra.13+0x91/0xaf0 [loop]
[ 1785.963214]  [<ffffffff810b5e85>] ? pick_next_task_fair+0x145/0x530
[ 1785.963218]  [<ffffffffa052d572>] loop_queue_read_work+0x12/0x20 [loop]
[ 1785.963223]  [<ffffffff8109193b>] process_one_work+0x14b/0x470
[ 1785.963226]  [<ffffffff81091ca8>] worker_thread+0x48/0x4c0
[ 1785.963230]  [<ffffffff81091c60>] ? process_one_work+0x470/0x470
[ 1785.963234]  [<ffffffff810977f8>] kthread+0xd8/0xf0
[ 1785.963238]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1785.963244]  [<ffffffff8158b962>] ret_from_fork+0x42/0x70
[ 1785.963248]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1785.963250] Code: e8 38 83 e0 03 48 c1 ea 3a 48 8d 04 40 48 8d 04 c0 48 c1 e0 06 48 03 04 d5 80 4f 8d 81 48 ba 01 00 fc ff ff ff 37 9e 48 0f af d7 <2b> 88 b8 00 00 00 48 8b 80 a8 00 00 00 48 d3 ea 48 8d 14 52 48 
[ 1785.963332] RIP  [<ffffffff81165b48>] unlock_page+0x48/0x70
[ 1785.963337]  RSP <ffff8800b4e37bc8>
[ 1785.963339] CR2: 0000000000000778
[ 1785.963342] ---[ end trace 2ebd71da72af67e4 ]---
[ 1785.963386] BUG: unable to handle kernel paging request at ffffffffffffffd8
[ 1785.963393] IP: [<ffffffff81097d00>] kthread_data+0x10/0x20
[ 1785.963398] PGD 180e067 PUD 1810067 PMD 0 
[ 1785.963406] Oops: 0000 [#2] PREEMPT SMP 
[ 1785.963412] Modules linked in: dm_crypt loop dm_mod netconsole rfcomm fuse bnep cfg80211 btusb btbcm btintel nvidia(PO) bluetooth rfkill snd_usb_audio crc16 snd_usbmidi_lib snd_rawmidi snd_seq_device mousedev intel_powerclamp kvm_intel snd_hda_codec_hdmi kvm e1000e snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel iTCO_wdt ghash_clmulni_intel drm gpio_ich iTCO_vendor_support snd_hda_controller aesni_intel ptp mac_hid snd_hda_codec aes_x86_64 evdev pps_core lrw snd_hda_core ipmi_ssif gf128mul snd_hwdep glue_helper snd_pcm ipmi_si ablk_helper serio_raw pcspkr snd_timer cryptd ipmi_msghandler snd i2c_i801 button soundcore i7core_edac ioatdma lpc_ich shpchp edac_core dca acpi_cpufreq i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) hid_generic sr_mod cdrom sd_mod usbhid uas hid atkbd usb_storage libps2 ahci libahci uhci_hcd ehci_pci libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[ 1785.964081] CPU: 2 PID: 1010 Comm: kworker/u52:0 Tainted: P      D    O    4.1.2-2-ARCH #1
[ 1785.964093] task: ffff8801b674dbb0 ti: ffff8800b4e34000 task.ti: ffff8800b4e34000
[ 1785.964160] RIP: 0010:[<ffffffff81097d00>]  [<ffffffff81097d00>] kthread_data+0x10/0x20
[ 1785.964166] RSP: 0018:ffff8800b4e37868  EFLAGS: 00010096
[ 1785.964168] RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000001
[ 1785.964171] RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff8801b674dbb0
[ 1785.964238] RBP: ffff8800b4e37868 R08: 00000000ffffffff R09: 000000000000045e
[ 1785.964241] R10: 0000000000000443 R11: 0000000000000001 R12: 0000000000016280
[ 1785.964243] R13: ffff8801b9a96280 R14: ffff8801b674dbb0 R15: 0000000000000002
[ 1785.964311] FS:  0000000000000000(0000) GS:ffff8801b9a80000(0000) knlGS:0000000000000000
[ 1785.964314] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1785.964317] CR2: 0000000000000028 CR3: 000000000180b000 CR4: 00000000000007e0
[ 1785.964319] Stack:
[ 1785.964321]  ffff8800b4e37888 ffffffff81092585 ffff8800b4e37888 ffff8801b9a96280
[ 1785.964393]  ffff8800b4e378d8 ffffffff81587590 ffff880000000000 ffff8801b674dbb0
[ 1785.964469]  ffff8805185b1c60 ffff8800b4e38000 ffff8801b674e348 ffff8800b4e37478
[ 1785.964476] Call Trace:
[ 1785.964480]  [<ffffffff81092585>] wq_worker_sleeping+0x15/0xa0
[ 1785.964484]  [<ffffffff81587590>] __schedule+0x6e0/0xa30
[ 1785.964488]  [<ffffffff81587917>] schedule+0x37/0x90
[ 1785.964492]  [<ffffffff8107ba64>] do_exit+0x894/0xba0
[ 1785.964563]  [<ffffffff810195de>] oops_end+0x9e/0xe0
[ 1785.964569]  [<ffffffff8106632b>] no_context+0x16b/0x3a0
[ 1785.964573]  [<ffffffff81066690>] __bad_area_nosemaphore+0x130/0x250
[ 1785.964579]  [<ffffffff810667c3>] bad_area_nosemaphore+0x13/0x20
[ 1785.964582]  [<ffffffff81066cba>] __do_page_fault+0x25a/0x4b0
[ 1785.964586]  [<ffffffff81066f32>] do_page_fault+0x22/0x30
[ 1785.964589]  [<ffffffff8158d4e8>] page_fault+0x28/0x30
[ 1785.964593]  [<ffffffff81165b48>] ? unlock_page+0x48/0x70
[ 1785.964598]  [<ffffffff811c3976>] ? kfree+0x176/0x180
[ 1785.964664]  [<ffffffff81166ade>] page_endio+0x1e/0x60
[ 1785.964667]  [<ffffffff81220ae2>] mpage_end_io+0x42/0x60
[ 1785.964670]  [<ffffffff812949cb>] bio_endio+0x5b/0xa0
[ 1785.964674]  [<ffffffff8129bed4>] blk_update_request+0x94/0x380
[ 1785.964678]  [<ffffffff812a50ea>] blk_mq_end_request+0x1a/0x70
[ 1785.964682]  [<ffffffff812a5e8b>] __blk_mq_complete_request+0xeb/0x130
[ 1785.964685]  [<ffffffff812a5ee6>] blk_mq_complete_request+0x16/0x20
[ 1785.964689]  [<ffffffffa052ca01>] loop_handle_cmd.isra.13+0x91/0xaf0 [loop]
[ 1785.964694]  [<ffffffff810b5e85>] ? pick_next_task_fair+0x145/0x530
[ 1785.964764]  [<ffffffffa052d572>] loop_queue_read_work+0x12/0x20 [loop]
[ 1785.964767]  [<ffffffff8109193b>] process_one_work+0x14b/0x470
[ 1785.964771]  [<ffffffff81091ca8>] worker_thread+0x48/0x4c0
[ 1785.964774]  [<ffffffff81091c60>] ? process_one_work+0x470/0x470
[ 1785.964777]  [<ffffffff810977f8>] kthread+0xd8/0xf0
[ 1785.964782]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1785.964786]  [<ffffffff8158b962>] ret_from_fork+0x42/0x70
[ 1785.964790]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1785.964856] Code: 00 48 89 e5 5d 48 8b 40 c8 48 c1 e8 02 83 e0 01 c3 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 8b 87 30 05 00 00 55 48 89 e5 <48> 8b 40 d8 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 
[ 1785.965127] RIP  [<ffffffff81097d00>] kthread_data+0x10/0x20
[ 1785.965132]  RSP <ffff8800b4e37868>
[ 1785.965199] CR2: ffffffffffffffd8
[ 1785.965202] ---[ end trace 2ebd71da72af67e5 ]---
[ 1785.965205] Fixing recursive fault but reboot is needed!
[ 1785.965208] BUG: scheduling while atomic: kworker/u52:0/1010/0x00000004
[ 1785.965210] Modules linked in: dm_crypt loop dm_mod netconsole rfcomm fuse bnep cfg80211 btusb btbcm btintel nvidia(PO) bluetooth rfkill snd_usb_audio crc16 snd_usbmidi_lib snd_rawmidi snd_seq_device mousedev intel_powerclamp kvm_intel snd_hda_codec_hdmi kvm e1000e snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel iTCO_wdt ghash_clmulni_intel drm gpio_ich iTCO_vendor_support snd_hda_controller aesni_intel ptp mac_hid snd_hda_codec aes_x86_64 evdev pps_core lrw snd_hda_core ipmi_ssif gf128mul snd_hwdep glue_helper snd_pcm ipmi_si ablk_helper serio_raw pcspkr snd_timer cryptd ipmi_msghandler snd i2c_i801 button soundcore i7core_edac ioatdma lpc_ich shpchp edac_core dca acpi_cpufreq i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) hid_generic sr_mod cdrom sd_mod usbhid uas hid atkbd usb_storage libps2 ahci libahci uhci_hcd ehci_pci libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[ 1785.965938] CPU: 2 PID: 1010 Comm: kworker/u52:0 Tainted: P      D    O    4.1.2-2-ARCH #1
[ 1785.965949]  0000000000000000 00000000a8f7d3d9 ffff8800b4e37518 ffffffff81585c8e
[ 1785.966019]  0000000000000000 ffff8801b9a96280 ffff8800b4e37528 ffffffff8109f6dd
[ 1785.966025]  ffff8800b4e37578 ffffffff8158776a ffff8800b4e37598 ffff8801b674dbb0
[ 1785.966096] Call Trace:
[ 1785.966100]  [<ffffffff81585c8e>] dump_stack+0x4c/0x6e
[ 1785.966105]  [<ffffffff8109f6dd>] __schedule_bug+0x4d/0x60
[ 1785.966108]  [<ffffffff8158776a>] __schedule+0x8ba/0xa30
[ 1785.966111]  [<ffffffff81587917>] schedule+0x37/0x90
[ 1785.966179]  [<ffffffff8107bb63>] do_exit+0x993/0xba0
[ 1785.966183]  [<ffffffff810195de>] oops_end+0x9e/0xe0
[ 1785.966187]  [<ffffffff8106632b>] no_context+0x16b/0x3a0
[ 1785.966256]  [<ffffffff81066690>] __bad_area_nosemaphore+0x130/0x250
[ 1785.966260]  [<ffffffff810667c3>] bad_area_nosemaphore+0x13/0x20
[ 1785.966263]  [<ffffffff81066cba>] __do_page_fault+0x25a/0x4b0
[ 1785.966267]  [<ffffffff810b0524>] ? update_curr+0xe4/0x1b0
[ 1785.966270]  [<ffffffff81066f32>] do_page_fault+0x22/0x30
[ 1785.966273]  [<ffffffff8158d4e8>] page_fault+0x28/0x30
[ 1785.966276]  [<ffffffff81097d00>] ? kthread_data+0x10/0x20
[ 1785.966344]  [<ffffffff81092585>] wq_worker_sleeping+0x15/0xa0
[ 1785.966348]  [<ffffffff81587590>] __schedule+0x6e0/0xa30
[ 1785.966351]  [<ffffffff81587917>] schedule+0x37/0x90
[ 1785.966354]  [<ffffffff8107ba64>] do_exit+0x894/0xba0
[ 1785.966358]  [<ffffffff810195de>] oops_end+0x9e/0xe0
[ 1785.966362]  [<ffffffff8106632b>] no_context+0x16b/0x3a0
[ 1785.966366]  [<ffffffff81066690>] __bad_area_nosemaphore+0x130/0x250
[ 1785.966371]  [<ffffffff810667c3>] bad_area_nosemaphore+0x13/0x20
[ 1785.966375]  [<ffffffff81066cba>] __do_page_fault+0x25a/0x4b0
[ 1785.966443]  [<ffffffff81066f32>] do_page_fault+0x22/0x30
[ 1785.966446]  [<ffffffff8158d4e8>] page_fault+0x28/0x30
[ 1785.966450]  [<ffffffff81165b48>] ? unlock_page+0x48/0x70
[ 1785.966453]  [<ffffffff811c3976>] ? kfree+0x176/0x180
[ 1785.966456]  [<ffffffff81166ade>] page_endio+0x1e/0x60
[ 1785.966460]  [<ffffffff81220ae2>] mpage_end_io+0x42/0x60
[ 1785.966463]  [<ffffffff812949cb>] bio_endio+0x5b/0xa0
[ 1785.966466]  [<ffffffff8129bed4>] blk_update_request+0x94/0x380
[ 1785.966470]  [<ffffffff812a50ea>] blk_mq_end_request+0x1a/0x70
[ 1785.966538]  [<ffffffff812a5e8b>] __blk_mq_complete_request+0xeb/0x130
[ 1785.966541]  [<ffffffff812a5ee6>] blk_mq_complete_request+0x16/0x20
[ 1785.966545]  [<ffffffffa052ca01>] loop_handle_cmd.isra.13+0x91/0xaf0 [loop]
[ 1785.966613]  [<ffffffff810b5e85>] ? pick_next_task_fair+0x145/0x530
[ 1785.966617]  [<ffffffffa052d572>] loop_queue_read_work+0x12/0x20 [loop]
[ 1785.966620]  [<ffffffff8109193b>] process_one_work+0x14b/0x470
[ 1785.966623]  [<ffffffff81091ca8>] worker_thread+0x48/0x4c0
[ 1785.966626]  [<ffffffff81091c60>] ? process_one_work+0x470/0x470
[ 1785.966630]  [<ffffffff810977f8>] kthread+0xd8/0xf0
[ 1785.966633]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1785.966637]  [<ffffffff8158b962>] ret_from_fork+0x42/0x70
[ 1785.966640]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[ 1798.379172] ------------[ cut here ]------------
[ 1798.379185] WARNING: CPU: 0 PID: 1657 at kernel/watchdog.c:304 watchdog_overflow_callback+0x82/0xc0()
[ 1798.379189] Watchdog detected hard LOCKUP on cpu 0
[ 1798.379192] Modules linked in: dm_crypt loop dm_mod netconsole rfcomm fuse bnep cfg80211 btusb btbcm btintel nvidia(PO) bluetooth rfkill snd_usb_audio crc16 snd_usbmidi_lib snd_rawmidi snd_seq_device mousedev intel_powerclamp kvm_intel snd_hda_codec_hdmi kvm e1000e snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel iTCO_wdt ghash_clmulni_intel drm gpio_ich iTCO_vendor_support snd_hda_controller aesni_intel ptp mac_hid snd_hda_codec aes_x86_64 evdev pps_core lrw snd_hda_core ipmi_ssif gf128mul snd_hwdep glue_helper snd_pcm ipmi_si ablk_helper serio_raw pcspkr snd_timer cryptd ipmi_msghandler snd i2c_i801 button soundcore i7core_edac ioatdma lpc_ich shpchp edac_core dca acpi_cpufreq i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) hid_generic sr_mod cdrom sd_mod usbhid uas hid atkbd usb_storage libps2 ahci libahci uhci_hcd ehci_pci libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[ 1798.379465] CPU: 0 PID: 1657 Comm: Xorg Tainted: P      D W  O    4.1.2-2-ARCH #1
[ 1798.379472]  0000000000000000 00000000d19e59e3 ffff8801b9a05a60 ffffffff81585c8e
[ 1798.379481]  0000000000000000 ffff8801b9a05ab8 ffff8801b9a05aa0 ffffffff81078c9a
[ 1798.379489]  0000000000000000 ffff8805ad8e9000 0000000000000000 ffff8801b9a05c00
[ 1798.379498] Call Trace:
[ 1798.379501]  <NMI>  [<ffffffff81585c8e>] dump_stack+0x4c/0x6e
[ 1798.379511]  [<ffffffff81078c9a>] warn_slowpath_common+0x8a/0xc0
[ 1798.379516]  [<ffffffff81078d25>] warn_slowpath_fmt+0x55/0x70
[ 1798.379521]  [<ffffffff81119412>] watchdog_overflow_callback+0x82/0xc0
[ 1798.379527]  [<ffffffff8115b86b>] __perf_event_overflow+0x9b/0x250
[ 1798.379532]  [<ffffffff8115c4a4>] perf_event_overflow+0x14/0x20
[ 1798.379537]  [<ffffffff810365a2>] intel_pmu_handle_irq+0x1f2/0x490
[ 1798.379544]  [<ffffffff811a4fd2>] ? vunmap_page_range+0x1f2/0x300
[ 1798.379640]  [<ffffffff811a52a1>] ? unmap_kernel_range_noflush+0x11/0x20
[ 1798.379646]  [<ffffffff8138250d>] ? ghes_copy_tofrom_phys+0x12d/0x2e0
[ 1798.379650]  [<ffffffff81382760>] ? ghes_read_estatus+0xa0/0x190
[ 1798.379657]  [<ffffffff8102cbbb>] perf_event_nmi_handler+0x2b/0x50
[ 1798.379661]  [<ffffffff81019dec>] nmi_handle+0x7c/0x170
[ 1798.379665]  [<ffffffff8101a40a>] default_do_nmi+0x4a/0x140
[ 1798.379670]  [<ffffffff8101a588>] do_nmi+0x88/0xd0
[ 1798.379674]  [<ffffffff8158d83f>] end_repeat_nmi+0x1e/0x2e
[ 1798.379680]  [<ffffffff8158ad12>] ? _raw_spin_lock_irqsave+0x52/0x70
[ 1798.379684]  [<ffffffff8158ad12>] ? _raw_spin_lock_irqsave+0x52/0x70
[ 1798.379689]  [<ffffffff8158ad12>] ? _raw_spin_lock_irqsave+0x52/0x70
[ 1798.379692]  <<EOE>>  [<ffffffff810b528c>] load_balance+0x33c/0x990
[ 1798.379702]  [<ffffffff810b600d>] pick_next_task_fair+0x2cd/0x530
[ 1798.379707]  [<ffffffff81586f99>] __schedule+0xe9/0xa30
[ 1798.379711]  [<ffffffff81587917>] schedule+0x37/0x90
[ 1798.379715]  [<ffffffff8158a6dc>] schedule_hrtimeout_range_clock.part.6+0xfc/0x120
[ 1798.379721]  [<ffffffff810e6950>] ? __run_hrtimer+0x250/0x250
[ 1798.379725]  [<ffffffff8158a671>] ? schedule_hrtimeout_range_clock.part.6+0x91/0x120
[ 1798.379730]  [<ffffffff8158a719>] schedule_hrtimeout_range_clock+0x19/0x50
[ 1798.379734]  [<ffffffff8158a763>] schedule_hrtimeout_range+0x13/0x20
[ 1798.379740]  [<ffffffff811f50c4>] poll_schedule_timeout+0x44/0x70
[ 1798.379744]  [<ffffffff811f5bea>] do_select+0x76a/0x880
[ 1798.379750]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379754]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379759]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379763]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379768]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379772]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379776]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379781]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379785]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.379790]  [<ffffffff811f5f2e>] core_sys_select+0x22e/0x340
[ 1798.379856]  [<ffffffffa152bcbd>] ? nvidia_frontend_compat_ioctl+0x1d/0x30 [nvidia]
[ 1798.379862]  [<ffffffff8101f8c9>] ? read_tsc+0x9/0x10
[ 1798.379868]  [<ffffffff810ec875>] ? ktime_get_ts64+0x45/0x100
[ 1798.379873]  [<ffffffff811f60fa>] SyS_select+0xba/0x110
[ 1798.379879]  [<ffffffff8158b56e>] system_call_fastpath+0x12/0x71
[ 1798.379883] ---[ end trace 2ebd71da72af67e6 ]---
[ 1798.762015] ------------[ cut here ]------------
[ 1798.762026] WARNING: CPU: 9 PID: 2011 at kernel/watchdog.c:304 watchdog_overflow_callback+0x82/0xc0()
[ 1798.762030] Watchdog detected hard LOCKUP on cpu 9
[ 1798.762033] Modules linked in: dm_crypt loop dm_mod netconsole rfcomm fuse bnep cfg80211 btusb btbcm btintel nvidia(PO) bluetooth rfkill snd_usb_audio crc16 snd_usbmidi_lib snd_rawmidi snd_seq_device mousedev intel_powerclamp kvm_intel snd_hda_codec_hdmi kvm e1000e snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel iTCO_wdt ghash_clmulni_intel drm gpio_ich iTCO_vendor_support snd_hda_controller aesni_intel ptp mac_hid snd_hda_codec aes_x86_64 evdev pps_core lrw snd_hda_core ipmi_ssif gf128mul snd_hwdep glue_helper snd_pcm ipmi_si ablk_helper serio_raw pcspkr snd_timer cryptd ipmi_msghandler snd i2c_i801 button soundcore i7core_edac ioatdma lpc_ich shpchp edac_core dca acpi_cpufreq i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) hid_generic sr_mod cdrom sd_mod usbhid uas hid atkbd usb_storage libps2 ahci libahci uhci_hcd ehci_pci libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[ 1798.762237] CPU: 9 PID: 2011 Comm: cinnamon Tainted: P      D W  O    4.1.2-2-ARCH #1
[ 1798.762243]  0000000000000000 0000000006866acb ffff8801b9b45a60 ffffffff81585c8e
[ 1798.762366]  0000000000000000 ffff8801b9b45ab8 ffff8801b9b45aa0 ffffffff81078c9a
[ 1798.762375]  0000000000000000 ffff8801b7518000 0000000000000000 ffff8801b9b45c00
[ 1798.762384] Call Trace:
[ 1798.762387]  <NMI>  [<ffffffff81585c8e>] dump_stack+0x4c/0x6e
[ 1798.762396]  [<ffffffff81078c9a>] warn_slowpath_common+0x8a/0xc0
[ 1798.762400]  [<ffffffff81078d25>] warn_slowpath_fmt+0x55/0x70
[ 1798.762407]  [<ffffffff81472f0b>] ? __alloc_skb+0x5b/0x210
[ 1798.762412]  [<ffffffff81119412>] watchdog_overflow_callback+0x82/0xc0
[ 1798.762417]  [<ffffffff8115b86b>] __perf_event_overflow+0x9b/0x250
[ 1798.762422]  [<ffffffff8115c4a4>] perf_event_overflow+0x14/0x20
[ 1798.762426]  [<ffffffff810365a2>] intel_pmu_handle_irq+0x1f2/0x490
[ 1798.762432]  [<ffffffff811a4fd2>] ? vunmap_page_range+0x1f2/0x300
[ 1798.762437]  [<ffffffff811a52a1>] ? unmap_kernel_range_noflush+0x11/0x20
[ 1798.762442]  [<ffffffff8138250d>] ? ghes_copy_tofrom_phys+0x12d/0x2e0
[ 1798.762446]  [<ffffffff81382760>] ? ghes_read_estatus+0xa0/0x190
[ 1798.762451]  [<ffffffff8102cbbb>] perf_event_nmi_handler+0x2b/0x50
[ 1798.762455]  [<ffffffff81019dec>] nmi_handle+0x7c/0x170
[ 1798.762460]  [<ffffffff8101a40a>] default_do_nmi+0x4a/0x140
[ 1798.762464]  [<ffffffff8101a588>] do_nmi+0x88/0xd0
[ 1798.762468]  [<ffffffff8158d83f>] end_repeat_nmi+0x1e/0x2e
[ 1798.762473]  [<ffffffff81472f0b>] ? __alloc_skb+0x5b/0x210
[ 1798.762478]  [<ffffffff810a5766>] ? try_to_wake_up+0xc6/0x350
[ 1798.762481]  [<ffffffff810a5766>] ? try_to_wake_up+0xc6/0x350
[ 1798.762485]  [<ffffffff810a5766>] ? try_to_wake_up+0xc6/0x350
[ 1798.762488]  <<EOE>>  [<ffffffff81472f4b>] ? __alloc_skb+0x9b/0x210
[ 1798.762496]  [<ffffffff810a5a52>] default_wake_function+0x12/0x20
[ 1798.762500]  [<ffffffff811f52b3>] pollwake+0x73/0x90
[ 1798.762504]  [<ffffffff810a5a40>] ? wake_up_process+0x50/0x50
[ 1798.762509]  [<ffffffff810bbfa5>] __wake_up_common+0x55/0x90
[ 1798.762514]  [<ffffffff810bc559>] __wake_up_sync_key+0x49/0x70
[ 1798.762518]  [<ffffffff8146c9e3>] sock_def_readable+0x43/0x80
[ 1798.762525]  [<ffffffff8152cb0b>] unix_stream_sendmsg+0x1eb/0x410
[ 1798.762530]  [<ffffffff81468927>] sock_sendmsg+0x17/0x30
[ 1798.762534]  [<ffffffff814689c5>] sock_write_iter+0x85/0xf0
[ 1798.762540]  [<ffffffff811e0948>] do_iter_readv_writev+0x68/0xa0
[ 1798.762544]  [<ffffffff811e1156>] do_readv_writev+0x1a6/0x260
[ 1798.762548]  [<ffffffff811f5240>] ? poll_select_copy_remaining+0x150/0x150
[ 1798.762554]  [<ffffffff811feca2>] ? __fget+0x72/0xb0
[ 1798.762559]  [<ffffffff811e1299>] vfs_writev+0x39/0x50
[ 1798.762563]  [<ffffffff811e2089>] SyS_writev+0x59/0x100
[ 1798.762567]  [<ffffffff811f6b2f>] ? SyS_poll+0xef/0x130
[ 1798.762572]  [<ffffffff8158b56e>] system_call_fastpath+0x12/0x71
[ 1798.762576] ---[ end trace 2ebd71da72af67e7 ]---

Last edited by timemaster (2015-07-21 03:14:51)

Offline

#15 2015-07-19 21:34:08

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

changed the subject of this thread
meccanus, I confirm your finding
- truecrypt works on both xfs and ext4, but crash on zfs
- losetup also crash on zfs, with similar oops than truecrypt (that anyway internally probably use losetup to mount that container) - trace below.
I created an issue on zfsonlinux github project.

[  322.088555] loop: module loaded
[  322.256602] BUG: unable to handle kernel NULL pointer dereference at 00000000000000b8
[  322.317868] IP: [<ffffffff81165b48>] unlock_page+0x48/0x70
[  322.380416] PGD 0 
[  322.442848] Oops: 0000 [#1] PREEMPT SMP 
[  322.506062] Modules linked in: loop netconsole cfg80211 bnep btusb btbcm btintel bluetooth intel_powerclamp snd_usb_audio snd_usbmidi_lib snd_rawmidi kvm_intel rfkill nvidia(PO) crc16 snd_seq_device kvm snd_hda_codec_hdmi mousedev snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic crc32_pclmul crc32c_intel snd_hda_intel ghash_clmulni_intel snd_hda_controller aesni_intel snd_hda_codec aes_x86_64 snd_hda_core e1000e lrw snd_hwdep ipmi_ssif evdev iTCO_wdt gf128mul snd_pcm gpio_ich glue_helper iTCO_vendor_support mac_hid snd_timer ablk_helper ipmi_si drm snd ptp serio_raw pcspkr cryptd ipmi_msghandler i2c_i801 soundcore pps_core button i7core_edac ioatdma edac_core lpc_ich shpchp acpi_cpufreq dca i5500_temp processor sch_fq_codel vboxnetflt(O) vboxdrv(O) w83795 i2c_core w83627ehf hwmon_vid coretemp sg ip_tables x_tables zfs(PO) zunicode(PO) zcommon(PO) znvpair(PO) spl(O) zavl(PO) sr_mod cdrom sd_mod hid_generic uas usbhid hid usb_storage ahci atkbd libps2 libahci ehci_pci uhci_hcd libata ehci_hcd scsi_mod usbcore usb_common i8042 serio
[  323.035643] CPU: 4 PID: 1652 Comm: kworker/u53:1 Tainted: P           O    4.1.2-2-ARCH #1
[  323.202790] Workqueue: kloopd0 loop_queue_read_work [loop]
[  323.287320] task: ffff8805abfb9e90 ti: ffff88059ac4c000 task.ti: ffff88059ac4c000
[  323.373415] RIP: 0010:[<ffffffff81165b48>]  [<ffffffff81165b48>] unlock_page+0x48/0x70
[  323.460951] RSP: 0018:ffff88059ac4fbc8  EFLAGS: 00010a47
[  323.548444] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000040
[  323.636716] RDX: 33ff9275f3e28880 RSI: ffffea0015e28880 RDI: ffffea0015e28880
[  323.725819] RBP: ffff88059ac4fbc8 R08: 0000000000000001 R09: ffff8801b9403b80
[  323.815639] R10: 0000000000000000 R11: 0000000000000004 R12: ffff88057c98dc98
[  323.905799] R13: ffff88057c98dc00 R14: 0000000000000000 R15: ffff880082e60000
[  323.993071] FS:  0000000000000000(0000) GS:ffff8805bf600000(0000) knlGS:0000000000000000
[  324.080802] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  324.168532] CR2: 00000000000000b8 CR3: 000000000180b000 CR4: 00000000000007e0
[  324.257044] Stack:
[  324.345374]  ffff88059ac4fbd8 ffffffff81166ade ffff88059ac4fc08 ffffffff81220ae2
[  324.435929]  ffff88057c98dc00 00000000fffffffb 0000000000000000 0000000000001000
[  324.527266]  ffff88059ac4fc38 ffffffff812949cb 0000000000000010 ffff88057c98dc00
[  324.619078] Call Trace:
[  324.710793]  [<ffffffff81166ade>] page_endio+0x1e/0x60
[  324.801579]  [<ffffffff81220ae2>] mpage_end_io+0x42/0x60
[  324.890474]  [<ffffffff812949cb>] bio_endio+0x5b/0xa0
[  324.977730]  [<ffffffff8129bed4>] blk_update_request+0x94/0x380
[  325.063805]  [<ffffffff812a50ea>] blk_mq_end_request+0x1a/0x70
[  325.148259]  [<ffffffff812a5e8b>] __blk_mq_complete_request+0xeb/0x130
[  325.233550]  [<ffffffff812a5ee6>] blk_mq_complete_request+0x16/0x20
[  325.317167]  [<ffffffffa0671a01>] loop_handle_cmd.isra.13+0x91/0xaf0 [loop]
[  325.399369]  [<ffffffff8101fe7d>] ? native_sched_clock+0x2d/0xa0
[  325.480131]  [<ffffffff8101fef9>] ? sched_clock+0x9/0x10
[  325.561334]  [<ffffffff810a9595>] ? sched_clock_cpu+0xb5/0xe0
[  325.642879]  [<ffffffff810b6082>] ? pick_next_task_fair+0x342/0x530
[  325.723076]  [<ffffffffa0672572>] loop_queue_read_work+0x12/0x20 [loop]
[  325.802000]  [<ffffffff8109193b>] process_one_work+0x14b/0x470
[  325.880959]  [<ffffffff81091ca8>] worker_thread+0x48/0x4c0
[  325.959520]  [<ffffffff81091c60>] ? process_one_work+0x470/0x470
[  326.036609]  [<ffffffff81091c60>] ? process_one_work+0x470/0x470
[  326.112400]  [<ffffffff810977f8>] kthread+0xd8/0xf0
[  326.188263]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[  326.263799]  [<ffffffff8158b962>] ret_from_fork+0x42/0x70
[  326.338854]  [<ffffffff81097720>] ? kthread_worker_fn+0x170/0x170
[  326.414596] Code: e8 38 83 e0 03 48 c1 ea 3a 48 8d 04 40 48 8d 04 c0 48 c1 e0 06 48 03 04 d5 80 4f 

Last edited by timemaster (2015-07-21 03:14:13)

Offline

#16 2015-09-27 17:56:06

timemaster
Member
Registered: 2012-09-26
Posts: 26

Re: [Solved] losetup/truecrypt/cryptsetup hard freeze on zfs and kernel

If zfs people following this thread weren't aware, the bug was closed and released as version 0.6.5 currently available in aur

Offline

Board footer

Powered by FluxBB