[Bug 1653523] [NEW] Input/Output Error when trying to --test-passphrase luksOpen

2017-01-02 Thread Daniel Grund
Public bug reported:

dfg@dfg-pc:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 16.04.1 LTS
Release:16.04
Codename:   xenial

dfg@dfg-pc:~ $ uname -a
Linux dfg-pc 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 
x86_64 x86_64 GNU/Linux

dfg@dfg-pc:~ $ apt-cache policy cryptsetup
cryptsetup:
  Installed: 2:1.6.6-5ubuntu2
  Candidate: 2:1.6.6-5ubuntu2
  Version table:
 *** 2:1.6.6-5ubuntu2 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status

root@dfg-pc:~ # ls -lh /home/dfg/data/crypt/business.luks 
-rw--- 1 dfg dfg 5.0G Dec 25 12:08 /home/dfg/data/crypt/business.luks

root@dfg-pc:~ # cryptsetup -v --test-passphrase luksOpen 
/home/dfg/data/crypt/business.luks tes
Enter passphrase for /home/dfg/data/crypt/business.luks: 
Command failed with code 5: Input/output error
root@dfg-pc:~ # echo $?
1

Observed behavior: Cryptsetup terminates after 1st passphrase entry. It does 
not prompt for a second try.
Expected behavior: Cryptsetup accepts provided passphrase or prompts for 2nd 
try.

root@dfg-pc:~ # cryptsetup -v luksDump /home/dfg/data/crypt/business.luks
LUKS header information for /home/dfg/data/crypt/business.luks

Version:1
Cipher name:aes
Cipher mode:ecb-plain64
Hash spec:  ripemd160
Payload offset: 2048
MK bits:128
MK digest:  [...removed for posting...]
MK salt:[...removed for posting...] 
[...removed for posting...] 
MK iterations:  35250
UUID:   [...removed for posting...]

Key Slot 0: ENABLED
Iterations: 140659
Salt:   [...removed for posting...] 
[...removed for posting...] 
Key material offset:8
AF stripes: 4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED
Command successful.

The overall context/system is:
a) Issue possibly related to release upgrade from 14.04(.1?) to 16.04.1. Worked 
before upgrade. Not sure if it ever worked after the upgrade. However, I 
performed the upgrade only some days ago.

b) /home/dfg/data/crypt/business.luks is located on a device that itself
has been (successfully) mounted with cryptmount.

c) For this device things work as expected:
root@dfg-pc:~ # cryptsetup -v --test-passphrase luksOpen 
/dev/disk/by-uuid/b36db545-6469-4498-bc04-39091560da8e tes
Enter passphrase for /dev/disk/by-uuid/b36db545-6469-4498-bc04-39091560da8e: 
[entered wrong pass]
No key available with this passphrase.
Enter passphrase for /dev/disk/by-uuid/b36db545-6469-4498-bc04-39091560da8e: 
[entered wrong pass]
No key available with this passphrase.
Enter passphrase for /dev/disk/by-uuid/b36db545-6469-4498-bc04-39091560da8e: 
Key slot 0 unlocked.
Command successful.
root@dfg-pc:~ # echo $?
0

More information via the following command

root@dfg-pc:~/tmp # strace -o strace.txt cryptsetup -v --test-passphrase 
luksOpen /home/dfg/data/crypt/business.luks tes
Enter passphrase for /home/dfg/data/crypt/business.luks: 
Command failed with code 5: Input/output error
root@dfg-pc:~/tmp # echo $?
1

yields

open("/dev/tty", O_RDWR)= 5
ioctl(5, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(5, "Enter passphrase for /home/dfg/d"..., 57) = 57
ioctl(5, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon -echo ...}) 
= 0
ioctl(5, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
read(5, "[the correct passphrase]\n", 512) = [length of passphrase]
ioctl(5, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(5, "\n", 1)   = 1
close(5)= 0

socket(PF_ALG, SOCK_SEQPACKET, 0)   = 5
bind(5, {sa_family=AF_ALG, sa_data="skcipher\0\0\0\0\0\0"}, 88) = 0
accept(5, NULL, NULL)   = 6
setsockopt(5, SOL_ALG, 1, "\244\304\304@\332\0259+\340\220\324\214:\347\f\270", 
16) = 0

open("/home/dfg/data/crypt/business.luks", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0600, st_size=5368709120, ...}) = 0
close(7)= 0

open("/home/dfg/data/crypt/business.luks", O_RDONLY|O_SYNC|O_DIRECT) = 7
lseek(7, 4096, SEEK_SET)= 4096
fstatfs(7, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=480681698, 
f_bfree=243745114, f_bavail=243741018, f_files=122101760, f_ffree=121595047, 
f_fsid={-525068978, -1338436839}, f_namelen=255, f_frsize=4096, f_flags=3110}) 
= 0
brk(0x204a000)  = 0x204a000
brk(0x2049000)  = 0x2049000
read(7, "[data]"..., 61440) = 61440
read(7, "[data]"..., 4096) = 4096
brk(0x2039000)  = 0x2039000
c

[Bug 989018] Re: Update Manager does not offer 10.04 -> 12.04 upgrade

2012-04-27 Thread Daniel Grund
I found the following that may help people that arrived here at this
"bug":

https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop#Upgrading_from_Ubuntu_10.04_LTS_to_Ubuntu_12.04_LTS

This, however, immediately triggers the following questions:

Starting from 10.04, will "update-manager -d" install the same thing as
a fresh install of 12.04?

Will the system then be on a devel release branch? Or will it stay on
the stable release branch? Do such things exist? How to switch between
them?

What's the difference between "update-manager -d" and "do-release-
upgrade -d"?

n.b. Sad that Ubuntu needs fine print, too. Proven, practical, precise
-- and pointless for the 10.04 folks. ;-) !?

** Changed in: update-manager (Ubuntu)
   Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989018

Title:
  Update Manager does not offer 10.04 -> 12.04 upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/989018/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 89235] Re: can no longer jump words with CTRL-arrow in gnome-terminal

2012-09-17 Thread Daniel Grund
The original issue with the CTRL-LEFT CTRL-RIGHT is not a bug.

On Ubuntu 12.04.1 LTS:

$ aptitude show libreadline5
Package: libreadline5
State: installed
Automatically installed: yes
Multi-Arch: same
Version: 5.2-11

man 3 readline:
"Readline  is  customized  by putting commands in an initialization file
(the inputrc file).  The name of this file is taken from the  value  of
the  INPUTRC  environment  variable.   If  that  variable is unset, the
default is ~/.inputrc.  If that file  does not exist or cannot be read,
the  ultimate  default  is /etc/inputrc."

Thus, *deleting* ~/.inputrc solves the initially reported problem.
If one has a ~/.inputrc and wants to have system default behavior, then one 
also has to "$include /etc/inputrc".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/89235

Title:
  can no longer jump words with CTRL-arrow in gnome-terminal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/readline6/+bug/89235/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 955965] Re: Alt - F10 does not maximize window - seems like a regression

2012-05-02 Thread Daniel Grund
Package: unity
Version: 5.12-0ubuntu1
Package: compiz
Version: 1:0.9.7.8-0ubuntu1

Key-sequence --> behavior on my 12.04.

 --> shows menu
+ --> the above + opens file menu
++ (quickly) --> all of the above + closes file menu
+++ (quickly) --> all of the above + maximizes the window

Ridiculous workaround!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/955965

Title:
  Alt - F10 does not maximize window  - seems like a regression

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/955965/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs