You are not logged in.

#1 2014-06-21 17:43:30

matse
Member
Registered: 2011-04-27
Posts: 287

[WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

Hello,
I have updated my system recently and found out, that I'm unable to luksOpen my encrypted external usb device anymore - it still works with the lts kernel.
If I plug the device into my computer, the dmesg output is:

[Sa Jun 21 19:35:19 2014] usb 1-1.1: new high-speed USB device number 7 using ehci-pci
[Sa Jun 21 19:35:19 2014] scsi8 : uas
[Sa Jun 21 19:35:19 2014] scsi 8:0:0:0: Direct-Access     Seagate  Expansion Desk   0740 PQ: 0 ANSI: 6
[Sa Jun 21 19:35:19 2014] sd 8:0:0:0: [sdb] Spinning up disk...
[Sa Jun 21 19:35:24 2014] ......ready
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] 976754645 4096-byte logical blocks: (4.00 TB/3.63 TiB)
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] Write Protect is off
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] Mode Sense: 2b 00 10 08
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] 976754645 4096-byte logical blocks: (4.00 TB/3.63 TiB)
[Sa Jun 21 19:35:29 2014]  sdb: unknown partition table
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] 976754645 4096-byte logical blocks: (4.00 TB/3.63 TiB)
[Sa Jun 21 19:35:29 2014] sd 8:0:0:0: [sdb] Attached SCSI disk

Then I want to luksOpen the device:

[root@quark matse]# cryptsetup luksOpen -v /dev/sdb mypictures
Enter passphrase for /dev/sdb:
Key slot 0 unlocked.

There the terminal just hangs - no "Command successful." message as i would expect, just a blinking cursor.

The dmesg output after I enter my key is:

[Sa Jun 21 19:37:11 2014] sd 8:0:0:0: [sdb] uas_eh_abort_handler ffff88009f44a600 tag 1, inflight: CMD IN
[Sa Jun 21 19:37:14 2014] scsi host8: uas_eh_task_mgmt: ABORT TASK timed out
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] uas_eh_abort_handler ffff88009f44a300 tag 0, inflight: CMD
[Sa Jun 21 19:37:34 2014] scsi host8: uas_eh_task_mgmt: ABORT TASK: error already running a task
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: uas_eh_device_reset_handler
[Sa Jun 21 19:37:34 2014] scsi host8: uas_eh_task_mgmt: LOGICAL UNIT RESET: error already running a task
[Sa Jun 21 19:37:34 2014] scsi host8: uas_eh_bus_reset_handler start
[Sa Jun 21 19:37:34 2014] usb 1-1.1: stat urb: killed, stream 0
[Sa Jun 21 19:37:34 2014] usb 1-1.1: stat urb: killed, stream 0
[Sa Jun 21 19:37:34 2014] usb 1-1.1: stat urb: killed, stream 0
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] uas_data_cmplt ffff88009f44a600 tag 1, inflight: CMD abort
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] data cmplt err -2 stream 0
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] uas_zap_dead ffff88009f44a600 tag 1, inflight: CMD abort
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] abort completed
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] uas_zap_dead ffff88009f44a300 tag 0, inflight: CMD abort
[Sa Jun 21 19:37:34 2014] sd 8:0:0:0: [sdb] abort completed
[Sa Jun 21 19:37:35 2014] usb 1-1.1: reset high-speed USB device number 7 using ehci-pci
[Sa Jun 21 19:37:35 2014] scsi host8: uas_eh_bus_reset_handler success

And in my journal I could find the following entry:

Jun 21 19:37:34 quark udisksd[639]: Error probing device: Error sending ATA command IDENTIFY DEVICE to /dev/sdb: Unexpected sense data returned:
                                    0000: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                                     (g-io-error-quark, 0)
Jun 21 19:37:34 quark kernel: scsi host8: uas_eh_bus_reset_handler success
Jun 21 19:37:34 quark systemd-udevd[261]: worker [2033] terminated by signal 9 (Killed)
Jun 21 19:44:58 quark kernel: usb 1-1.1: USB disconnect, device number 7
Jun 21 19:44:58 quark kernel: sd 8:0:0:0: [sdb] Synchronizing SCSI cache
Jun 21 19:44:58 quark kernel: sd 8:0:0:0: [sdb]  
Jun 21 19:44:58 quark kernel: Result: hostbyte=0x07 driverbyte=0x00

Since luksOpen and mounting works fine with the lts kernel, I suspect a kernel bug?
Has anybody an idea or a similiar problem?
Thanks and greetings
matse


//Edit:
And another thing that I just realized: If I plug out the usb device again and shutdown my PC, I get the following kernel backtrace during the shutdown image on tinypic
shutdown fails, I have to hard poweroff my PC. "Normal shutdown" (without having tried to open my usb device before) works as expected.
No relevant entry in my journal, here is the end of "journalctl -b -1":

Jun 21 19:45:24 quark systemd[1]: Stopping Basic System.
Jun 21 19:45:24 quark systemd[1]: Stopped target Basic System.
Jun 21 19:45:24 quark systemd[1]: Stopping Slices.
Jun 21 19:45:24 quark systemd[1]: Stopped target Slices.
Jun 21 19:45:24 quark systemd[1]: Stopping User and Session Slice.
Jun 21 19:45:24 quark systemd[1]: Removed slice User and Session Slice.
Jun 21 19:45:24 quark systemd[1]: Stopping Paths.
Jun 21 19:45:24 quark systemd[1]: Stopped target Paths.
Jun 21 19:45:24 quark systemd[1]: Stopping CUPS Printer Service Spool.
Jun 21 19:45:24 quark systemd[1]: Stopped CUPS Printer Service Spool.
Jun 21 19:45:24 quark systemd[1]: Stopping Forward Password Requests to Wall Directory Watch.
Jun 21 19:45:24 quark systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Jun 21 19:45:24 quark systemd[1]: Stopping Dispatch Password Requests to Console Directory Watch.
Jun 21 19:45:24 quark systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jun 21 19:45:24 quark systemd[1]: Stopping Timers.
Jun 21 19:45:24 quark systemd[1]: Stopped target Timers.
Jun 21 19:45:24 quark systemd[1]: Stopping Daily man-db cache update.
Jun 21 19:45:24 quark systemd[1]: Stopped Daily man-db cache update.
Jun 21 19:45:24 quark systemd[1]: Stopping Daily rotation of log files.
Jun 21 19:45:24 quark systemd[1]: Stopped Daily rotation of log files.
Jun 21 19:45:24 quark systemd[1]: Stopping Daily verification of password and group files.
Jun 21 19:45:24 quark systemd[1]: Stopped Daily verification of password and group files.
Jun 21 19:45:24 quark systemd[1]: Stopping Daily Cleanup of Temporary Directories.
Jun 21 19:45:24 quark systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Jun 21 19:45:24 quark systemd[1]: Stopping Sockets.
Jun 21 19:45:24 quark systemd[1]: Stopped target Sockets.
Jun 21 19:45:24 quark systemd[1]: Stopping CUPS Printing Service Sockets.
Jun 21 19:45:24 quark systemd[1]: Closed CUPS Printing Service Sockets.
Jun 21 19:45:24 quark systemd[1]: Stopping ACPID Listen Socket.
Jun 21 19:45:24 quark systemd[1]: Closed ACPID Listen Socket.
Jun 21 19:45:24 quark systemd[1]: Stopping D-Bus System Message Bus Socket.
Jun 21 19:45:24 quark systemd[1]: Closed D-Bus System Message Bus Socket.
Jun 21 19:45:24 quark systemd[1]: Stopping System Initialization.
Jun 21 19:45:24 quark systemd[1]: Stopped target System Initialization.
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save RF Kill Switch Status of rfkill3...
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save RF Kill Switch Status of rfkill2...
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save RF Kill Switch Status of rfkill1...
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save RF Kill Switch Status of rfkill0...
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:acpi_video0...
Jun 21 19:45:24 quark systemd[1]: Stopping Encrypted Volumes.
Jun 21 19:45:24 quark systemd[1]: Stopped target Encrypted Volumes.
Jun 21 19:45:24 quark systemd[1]: Stopping Load/Save Random Seed...
Jun 21 19:45:24 quark systemd[1]: Stopping Apply Kernel Variables...
Jun 21 19:45:24 quark systemd[1]: Stopped Apply Kernel Variables.
Jun 21 19:45:24 quark systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Jun 21 19:45:24 quark systemd[1]: Stopping Load Kernel Modules...
Jun 21 19:45:24 quark systemd[1]: Stopped Load Kernel Modules.
Jun 21 19:45:24 quark systemd[1]: Stopping Setup Virtual Console...
Jun 21 19:45:24 quark systemd[1]: Stopped Setup Virtual Console.
Jun 21 19:45:24 quark systemd[1]: Stopping Swap.
Jun 21 19:45:24 quark systemd[1]: Stopped target Swap.
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Deactivating swap /dev/dm-2...
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save RF Kill Switch Status of rfkill3.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save RF Kill Switch Status of rfkill2.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save RF Kill Switch Status of rfkill1.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save RF Kill Switch Status of rfkill0.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 21 19:45:24 quark systemd[1]: Stopped Load/Save Random Seed.
Jun 21 19:45:24 quark systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/vglvm/swap.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/disk/by-uuid/f21134a0-ac51-42a4-a212-01b648abd979.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/disk/by-label/myswap.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/disk/by-id/dm-uuid-LVM-Gugskn0YZWhG4xgqNu2z38BSJku9pI8tco09bhE3gcD2YJMqRdSMX4KjJDDIOxrV.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/disk/by-id/dm-name-vglvm-swap.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/mapper/vglvm-swap.
Jun 21 19:45:24 quark systemd[1]: Deactivated swap /dev/dm-2.
Jun 21 19:45:24 quark systemd[1]: Stopping Create Volatile Files and Directories...
Jun 21 19:45:24 quark systemd[1]: Stopped Create Volatile Files and Directories.
Jun 21 19:45:24 quark systemd[1]: Stopping Local File Systems.
Jun 21 19:45:24 quark systemd[1]: Stopped target Local File Systems.
Jun 21 19:45:24 quark systemd[1]: Unmounting /run/user/1000/gvfs...
Jun 21 19:45:24 quark systemd[1]: Unmounting /boot...
Jun 21 19:45:24 quark systemd[1]: Unmounting /home...
Jun 21 19:45:24 quark systemd[1]: Unmounting Temporary Directory...
Jun 21 19:45:24 quark systemd[1]: Stopping system-systemd\x2dbacklight.slice.
Jun 21 19:45:24 quark systemd[1]: Removed slice system-systemd\x2dbacklight.slice.
Jun 21 19:45:24 quark systemd[1]: Stopping system-systemd\x2drfkill.slice.
Jun 21 19:45:24 quark systemd[1]: Removed slice system-systemd\x2drfkill.slice.
Jun 21 19:45:24 quark systemd[1]: Unmounted Temporary Directory.
Jun 21 19:45:24 quark systemd[1]: Unmounted /run/user/1000/gvfs.
Jun 21 19:45:24 quark systemd[1]: Unmounting /run/user/1000...
Jun 21 19:45:24 quark systemd[1]: Unmounted /run/user/1000.
Jun 21 19:45:24 quark systemd[1]: Unmounted /boot.
Jun 21 19:45:24 quark systemd[1]: Unmounted /home.
Jun 21 19:45:24 quark systemd[1]: Starting Unmount All Filesystems.
Jun 21 19:45:24 quark systemd[1]: Reached target Unmount All Filesystems.
Jun 21 19:45:24 quark systemd[1]: Stopping Local File Systems (Pre).
Jun 21 19:45:24 quark systemd[1]: Stopped target Local File Systems (Pre).
Jun 21 19:45:24 quark systemd[1]: Stopping Remount Root and Kernel File Systems...
Jun 21 19:45:24 quark systemd[1]: Stopped Remount Root and Kernel File Systems.
Jun 21 19:45:24 quark systemd[1]: Stopping Replay Read-Ahead Data...
Jun 21 19:45:24 quark systemd[1]: Stopped Replay Read-Ahead Data.
Jun 21 19:45:24 quark systemd[1]: Stopping Collect Read-Ahead Data...
Jun 21 19:45:24 quark systemd[1]: Stopped Collect Read-Ahead Data.
Jun 21 19:45:24 quark systemd[1]: Starting Shutdown.
Jun 21 19:45:24 quark systemd[1]: Reached target Shutdown.
Jun 21 19:45:24 quark systemd[1]: Starting Final Step.
Jun 21 19:45:24 quark systemd[1]: Reached target Final Step.
Jun 21 19:45:24 quark systemd[1]: Starting Power-Off...
Jun 21 19:45:24 quark systemd[1]: Shutting down.
Jun 21 19:45:24 quark systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Jun 21 19:45:24 quark systemd-journal[234]: Journal stopped

Last edited by matse (2014-06-22 23:13:17)

Offline

#2 2014-06-21 18:56:22

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,162
Website

Re: [WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

I use LVM on LUKS on my laptop, and I'm having no problems with it.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-06-21 21:18:53

matse
Member
Registered: 2011-04-27
Posts: 287

Re: [WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

I use LUKS (and LVM on top of it) on my internal harddrives, too - and this works fine.
It's just my external usb drive, that has this problem with the new 3.15 kernel (3.14.6 worked fine, as well as the current LTS kernel, too).

Offline

#4 2014-06-21 22:45:31

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

You see the lines with uas, that seems to be a problem with the reintroduced usb uas driver. Try blacklisting uas and see if it starts working, there are other people here on the forums complaining about similar problems.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2014-06-21 22:48:02

Da_Coynul
Member
From: United States of America
Registered: 2010-10-02
Posts: 85

Re: [WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

Matse -

Your external drive problem sounds like the one being discussed here. Could you post the output of

lsusb -v

in the other thread?

Jonathan

matse wrote:

I use LUKS (and LVM on top of it) on my internal harddrives, too - and this works fine.
It's just my external usb drive, that has this problem with the new 3.15 kernel (3.14.6 worked fine, as well as the current LTS kernel, too).

Offline

#6 2014-06-22 23:12:56

matse
Member
Registered: 2011-04-27
Posts: 287

Re: [WORKAROUND] linux 3.15.1: unable to luksOpen encrypted device

@R00KIE: thanks for the hint, it seems indeed be a problem of the uas module. A workaround posted ba Da_Coynul in this thread helped me, at first.

Offline

Board footer

Powered by FluxBB