[Bug 1292940] [NEW] cryptsetup benchmark freezes on AES based ciphers

cacahuatl cacahuatl at 0xcaca0.co.uk
Sat Mar 15 18:30:51 UTC 2014


Public bug reported:

Looks like it's when it's trying to read from a socket, from what I can tell?
>From GDB at the point that it freezes:
---8<---8<---8<---
(gdb) where
#0  0x00007f3eeada44c0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3eeb29ad8e in ?? () from /lib/libcryptsetup.so.4
#2  0x00007f3eeb29aeb0 in ?? () from /lib/libcryptsetup.so.4
#3  0x00007f3eeb294edb in ?? () from /lib/libcryptsetup.so.4
#4  0x00007f3eeb295177 in crypt_benchmark () from /lib/libcryptsetup.so.4
#5  0x00000000004085f7 in ?? ()
#6  0x000000000040317a in ?? ()
#7  0x00007f3eeacd9ec5 in __libc_start_main (main=0x402ba0, argc=2, argv=0x7fffed12b0b8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffed12b0a8)
    at libc-start.c:285
#8  0x00000000004036b5 in ?? ()
(gdb) i r
rax            0x10000	65536
rbx            0x10000	65536
rcx            0xffffffffffffffff	-1
rdx            0x10000	65536
rsi            0x7f3eeb5da000	139908213481472
rdi            0x6	6
rbp            0x7fffed12aba0	0x7fffed12aba0
rsp            0x7fffed12aaa8	0x7fffed12aaa8
r8             0xa0e090	10543248
r9             0x10	16
r10            0xa0e020	10543136
r11            0x246	582
r12            0x7fffed12aab0	140737170811568
r13            0x0	0
r14            0x40	64
r15            0xa0dfd0	10543056
rip            0x7f3eeada44c0	0x7f3eeada44c0 <__read_nocancel+7>
eflags         0x246	[ PF ZF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) bt full
#0  0x00007f3eeada44c0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007f3eeb29ad8e in ?? () from /lib/libcryptsetup.so.4
No symbol table info available.
#2  0x00007f3eeb29aeb0 in ?? () from /lib/libcryptsetup.so.4
No symbol table info available.
#3  0x00007f3eeb294edb in ?? () from /lib/libcryptsetup.so.4
No symbol table info available.
#4  0x00007f3eeb295177 in crypt_benchmark () from /lib/libcryptsetup.so.4
No symbol table info available.
#5  0x00000000004085f7 in ?? ()
No symbol table info available.
#6  0x000000000040317a in ?? ()
No symbol table info available.
#7  0x00007f3eeacd9ec5 in __libc_start_main (main=0x402ba0, argc=2, argv=0x7fffed12b0b8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffed12b0a8)
    at libc-start.c:285
        result = <optimised out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -5623416248801017202, 4208268, 140737170813104, 0, 0, 5623384678104711822, 5730910981286281870}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 
              0x4087e0, 0x7fffed12b0b8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 4229088}}}
        not_first_call = <optimised out>
#8  0x00000000004036b5 in ?? ()
No symbol table info available.
---8<---8<---8<---

If it's ptrace'd (IE, ltrace -p $PID or strace -p $PID) then it will
resume.

However, please note that I am using an Intel chip that has builtin AES
instructions, this may be related to a firmware/hardware issue rather
than a specific problem with the software package.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cryptsetup-bin 2:1.6.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Mar 15 17:53:18 2014
ExecutablePath: /sbin/cryptsetup
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: cryptsetup (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

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

Title:
  cryptsetup benchmark freezes on AES based ciphers

Status in “cryptsetup” package in Ubuntu:
  New

Bug description:
  Looks like it's when it's trying to read from a socket, from what I can tell?
  From GDB at the point that it freezes:
  ---8<---8<---8<---
  (gdb) where
  #0  0x00007f3eeada44c0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
  #1  0x00007f3eeb29ad8e in ?? () from /lib/libcryptsetup.so.4
  #2  0x00007f3eeb29aeb0 in ?? () from /lib/libcryptsetup.so.4
  #3  0x00007f3eeb294edb in ?? () from /lib/libcryptsetup.so.4
  #4  0x00007f3eeb295177 in crypt_benchmark () from /lib/libcryptsetup.so.4
  #5  0x00000000004085f7 in ?? ()
  #6  0x000000000040317a in ?? ()
  #7  0x00007f3eeacd9ec5 in __libc_start_main (main=0x402ba0, argc=2, argv=0x7fffed12b0b8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffed12b0a8)
      at libc-start.c:285
  #8  0x00000000004036b5 in ?? ()
  (gdb) i r
  rax            0x10000	65536
  rbx            0x10000	65536
  rcx            0xffffffffffffffff	-1
  rdx            0x10000	65536
  rsi            0x7f3eeb5da000	139908213481472
  rdi            0x6	6
  rbp            0x7fffed12aba0	0x7fffed12aba0
  rsp            0x7fffed12aaa8	0x7fffed12aaa8
  r8             0xa0e090	10543248
  r9             0x10	16
  r10            0xa0e020	10543136
  r11            0x246	582
  r12            0x7fffed12aab0	140737170811568
  r13            0x0	0
  r14            0x40	64
  r15            0xa0dfd0	10543056
  rip            0x7f3eeada44c0	0x7f3eeada44c0 <__read_nocancel+7>
  eflags         0x246	[ PF ZF IF ]
  cs             0x33	51
  ss             0x2b	43
  ds             0x0	0
  es             0x0	0
  fs             0x0	0
  gs             0x0	0
  (gdb) bt full
  #0  0x00007f3eeada44c0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
  No locals.
  #1  0x00007f3eeb29ad8e in ?? () from /lib/libcryptsetup.so.4
  No symbol table info available.
  #2  0x00007f3eeb29aeb0 in ?? () from /lib/libcryptsetup.so.4
  No symbol table info available.
  #3  0x00007f3eeb294edb in ?? () from /lib/libcryptsetup.so.4
  No symbol table info available.
  #4  0x00007f3eeb295177 in crypt_benchmark () from /lib/libcryptsetup.so.4
  No symbol table info available.
  #5  0x00000000004085f7 in ?? ()
  No symbol table info available.
  #6  0x000000000040317a in ?? ()
  No symbol table info available.
  #7  0x00007f3eeacd9ec5 in __libc_start_main (main=0x402ba0, argc=2, argv=0x7fffed12b0b8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffed12b0a8)
      at libc-start.c:285
          result = <optimised out>
          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -5623416248801017202, 4208268, 140737170813104, 0, 0, 5623384678104711822, 5730910981286281870}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 
                0x4087e0, 0x7fffed12b0b8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 4229088}}}
          not_first_call = <optimised out>
  #8  0x00000000004036b5 in ?? ()
  No symbol table info available.
  ---8<---8<---8<---

  If it's ptrace'd (IE, ltrace -p $PID or strace -p $PID) then it will
  resume.

  However, please note that I am using an Intel chip that has builtin
  AES instructions, this may be related to a firmware/hardware issue
  rather than a specific problem with the software package.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: cryptsetup-bin 2:1.6.1-1ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
  Uname: Linux 3.13.0-16-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.13.3-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sat Mar 15 17:53:18 2014
  ExecutablePath: /sbin/cryptsetup
  SourcePackage: cryptsetup
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list