Skip to content

Instantly share code, notes, and snippets.

@cemeyer
Last active November 13, 2015 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemeyer/74e4493d639fc60608fa to your computer and use it in GitHub Desktop.
Save cemeyer/74e4493d639fc60608fa to your computer and use it in GitHub Desktop.
xor_speed hang
Thread 6 (Thread 801e1a800 (LWP 100957)):
#0 do_xor_speed (tmpl=0x9b70c0 <xor_block_8regs>, b1=0x805c68000, b2=0x805c6b000) at crypto/xor.c:84
#1 0x0000000000688a1c in calibrate_xor_blocks () at crypto/xor.c:144
#2 0x0000000000680ac3 in do_one_initcall (fn=0x6889bf <calibrate_xor_blocks>) at init/main.c:794
#3 0x0000000000680c7b in do_initcall_level (level=<optimized out>) at init/main.c:859
#4 do_initcalls () at init/main.c:867
#5 do_basic_setup () at init/main.c:885
#6 kernel_init_freeable () at init/main.c:1010
#7 0x000000000067d799 in kernel_init (unused=0x9b70c0 <xor_block_8regs>) at init/main.c:938
#8 0x0000000000404548 in thread_bootstrap (_tba=0x805c1e138) at arch/lkl/kernel/threads.c:139
#9 0x0000000800bd07f9 in thread_start (curthread=0x801e1a800) at /usr/home/cmeyer/src/CURRENT.svn/lib/libthr/thread/thr_create.c:288
#10 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdf9fb000
84 while ((now = jiffies) == j)
85 cpu_relax();
Nothing updates jiffies — timer hardclock not firing?
This reproduces on a Linux host as well:
(gdb) bt
#0 do_xor_speed (tmpl=0x9ab860 <xor_block_8regs>, b1=0x7fbeac0ac000, b2=0xfffedb08) at crypto/xor.c:84
#1 0x000000000068f92c in calibrate_xor_blocks () at crypto/xor.c:144
#2 0x0000000000687a3c in do_one_initcall (fn=0x68f8cf <calibrate_xor_blocks>) at init/main.c:794
#3 0x0000000000687be4 in do_initcall_level (level=<optimized out>) at init/main.c:859
#4 do_initcalls () at init/main.c:867
#5 do_basic_setup () at init/main.c:885
#6 kernel_init_freeable () at init/main.c:1010
#7 0x0000000000683d29 in kernel_init (unused=0x9ab860 <xor_block_8regs>) at init/main.c:938
#8 0x0000000000403138 in thread_bootstrap (_tba=0x7fbeac063138) at arch/lkl/kernel/threads.c:139
#9 0x00007fbeb2bd7555 in start_thread (arg=0x7fbeb1e06700) at pthread_create.c:333
#10 0x00007fbeb270ab9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) l
...
81 for (i = 0; i < 5; i++) {
82 j = jiffies;
83 count = 0;
84 while ((now = jiffies) == j)
85 cpu_relax();
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment