Date: Wed, 11 Apr 2018 17:36:18 -0700 From: Eitan Adler <lists@eitanadler.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Crypto READ request failed (error=22). md10.eli[READ(offset=818688, length=512 Message-ID: <CAF6rxgnrpd51UkB6aZyYRxCL%2B-km4%2B=ke0v0uGrocHBAoc_eNQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
vmcore.0 and kernel are available. I'll llkely spend some time this weekend looking at the issues but if anyone cares to get to this first: https://reviews.freebsd.org/P166 ---- Unread portion of the kernel message buffer: [173352] GEOM_ELI: Device md10.eli created. [173352] GEOM_ELI: Encryption: AES-XTS 128 [173352] GEOM_ELI: Integrity: HMAC/SHA1 [173352] GEOM_ELI: Crypto: hardware [173352] GEOM_ELI: Crypto READ request failed (error=3D22). md10.eli[READ(offset=3D818688, length=3D512 )] [173352] panic: crypto_dispatch() failed (error=3D22) [173352] cpuid =3D 20 [173352] time =3D 1523431733 [173352] KDB: stack backtrace: [173352] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00ae86d800 [173352] vpanic() at vpanic+0x18d/frame 0xfffffe00ae86d860 [173352] doadump() at doadump/frame 0xfffffe00ae86d8e0 [173352] g_eli_auth_run() at g_eli_auth_run+0x22b/frame 0xfffffe00ae86da00 [173352] g_eli_worker() at g_eli_worker+0x14c/frame 0xfffffe00ae86da70 [173352] fork_exit() at fork_exit+0x84/frame 0xfffffe00ae86dab0 [173352] fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00ae86dab0 [173352] --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- [173352] KDB: enter: panic #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=3D0x1) at /usr/src/sys/kern/kern_shutdown.c:361 #2 0xffffffff80434f4c in db_fncall_generic (addr=3D<optimized out>, rv=3D<optimized out>, nargs=3D<optimized out>, args=3D<optimized out>) at /usr/src/sys/ddb/db_command.c:609 #3 db_fncall (dummy1=3D<optimized out>, dummy2=3D<optimized out>, dummy3=3D<optimized out>, dummy4=3D<optimized out>) at /usr/src/sys/ddb/db_command.c:657 #4 0xffffffff80434a99 in db_command (last_cmdp=3D<optimized out>, cmd_table=3D<optimized out>, dopager=3D<optimized out>) at /usr/src/sys/ddb/db_command.c:481 #5 0xffffffff80434814 in db_command_loop () at /usr/src/sys/ddb/db_command.c:534 #6 0xffffffff80437a3f in db_trap (type=3D<optimized out>, code=3D<optimized out>) at /usr/src/sys/ddb/db_main.c:250 #7 0xffffffff80babf53 in kdb_trap (type=3D0x3, code=3D0xffff0ff0, tf=3D<optimized out>) at /usr/src/sys/kern/subr_kdb.c:697 #8 0xffffffff81024aa8 in trap (frame=3D0xfffffe00ae86d730) at /usr/src/sys/amd64/amd64/trap.c:548 #9 <signal handler called> #10 kdb_enter (why=3D0xffffffff8129f663 "panic", msg=3D<optimized out>) at /usr/src/sys/kern/subr_kdb.c:479 #11 0xffffffff80b66b5a in vpanic (fmt=3D<optimized out>, ap=3D0xfffffe00ae86d8a0) at /usr/src/sys/kern/kern_shutdown.c:826 #12 0xffffffff80b66920 in kassert_panic (fmt=3D0xffffffff825f243b "crypto_dispatch() failed (error=3D%d)") at /usr/src/sys/kern/kern_shutdown.c:723 #13 0xffffffff825ee10b in g_eli_auth_run (wr=3D0xfffff8003a580bc0, bp=3D<optimized out>) at /usr/src/sys/geom/eli/g_eli_integrity.c:537 #14 0xffffffff825e9b7c in g_eli_worker (arg=3D<optimized out>) at /usr/src/sys/geom/eli/g_eli.c:542 #15 0xffffffff80b26e34 in fork_exit (callout=3D0xffffffff825e9a30 <g_eli_worker>, arg=3D0xfffff8003a580bc0, frame=3D0xfffffe00ae86dac0) at /usr/src/sys/kern/kern_fork.c:1039 #16 <signal handler called> (kgdb) info registers rax 0x12 0x12 rbx 0xfffffe00ae86d968 0xfffffe00ae86d968 rcx 0x80 0x80 rdx 0xfffffe00ae86d6f0 0xfffffe00ae86d6f0 rsi 0x80 0x80 rdi 0xffffffff81deab08 0xffffffff81deab08 rbp 0xfffffe00ae86da00 0xfffffe00ae86da00 rsp 0xfffffe00ae86d8f0 0xfffffe00ae86d8f0 r8 0x1 0x1 r9 0x0 0x0 r10 0xffffffff81cdc698 0xffffffff81cdc698 r11 0x0 0x0 r12 0x1e0 0x1e0 r13 0xfffff8004362f428 0xfffff8004362f428 r14 0xfffff8004362f598 0xfffff8004362f598 r15 0x18f800 0x18f800 rip 0xffffffff825ee10b 0xffffffff825ee10b <g_eli_auth_run+= 555> eflags 0x82 [ SF ] cs 0x20 0x20 ss 0x28 0x28 ds <unavailable> es <unavailable> fs <unavailable> gs <unavailable> fs_base <unavailable> gs_base <unavailable> (kgdb) info locals sc =3D 0xfffff80136461c00 encr_secsize =3D 0x200 nsec =3D <optimized out> lsec =3D 0x2 plaindata =3D 0xfffff800051b1a00 "\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\2= 55\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\= 300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336= \336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\25= 5\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\3= 00\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\= 336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255= \336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\30= 0\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\3= 36\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\= 336\336\300\255\336\336\300\255\336\336\300\255\336"... data =3D <optimized out> auth =3D 0xfffff8004362f414 "\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\2= 55\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\= 300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336= \336\300\255\336\336\300\255\336\336\300\255\336\067" p =3D <optimized out> i =3D <error reading variable i (Cannot access memory at address 0x1)> decr_secsize =3D 0x200 dstoff =3D 0x18f800 error =3D 0x80 crp =3D 0xfffff8004362f428 data_secsize =3D <optimized out> crde =3D <optimized out> crda =3D <optimized out> authkey =3D <optimized out> (kgdb) info args wr =3D 0xfffff8003a580bc0 bp =3D <optimized out> (kgdb) p *crp $1 =3D { crp_next =3D { tqe_next =3D 0xdeadc0dedeadc0de, tqe_prev =3D 0xdeadc0dedeadc0de }, crp_task =3D { ta_link =3D { stqe_next =3D 0xdeadc0dedeadc0de }, ta_pending =3D 0xc0de, ta_priority =3D 0xdead, ta_func =3D 0xdeadc0dedeadc0de, ta_context =3D 0xdeadc0dedeadc0de }, crp_sid =3D 0x500000100000037, crp_ilen =3D 0x1f4, crp_olen =3D 0x1e0, crp_etype =3D 0x16, crp_flags =3D 0x60, { crp_buf =3D 0xfffff8004362f000 "", crp_mbuf =3D 0xfffff8004362f000, crp_uio =3D 0xfffff8004362f000 }, crp_opaque =3D 0xfffff803726ffc00, crp_desc =3D 0xfffff8004362f520, crp_callback =3D 0xffffffff825ee8f0 <g_eli_auth_read_done>, crp_tstamp =3D { sec =3D 0xdeadc0dedeadc0de, frac =3D 0xdeadc0dedeadc0de }, crp_seq =3D 0xdeadc0de, crp_retw_id =3D 0x17 } (kgdb) p *crp->crp_desc $3 =3D { crd_skip =3D 0x14, crd_len =3D 0x1e0, crd_inject =3D 0x0, crd_flags =3D 0x10, CRD_INI =3D { cri_alg =3D 0x7, cri_klen =3D 0x100, cri_mlen =3D 0xdeadc0de, cri_key =3D 0xfffff8004362f598 "=3D\031eR\340\275D\366\205\020\307,\304]\bP\207\202\207\061\347\070\344\26= 4\325\267\336\371~x\366\267\336\300\255\336\336\300\255\336\336\300\255\336= \336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\25= 5\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\3= 00\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\= 336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255= \336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\30= 0\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\3= 36\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\= 336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300= \255\336\336\300\255\336"..., cri_iv =3D "\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\2= 55\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\= 300\255\336\336\300\255\336\336\300\255\336\336\300\255\336\336\300\255\336= \336\300\255\336\336\300\255\336", cri_next =3D 0xdeadc0dedeadc0de }, crd_next =3D 0xfffff8004362f4a8 } (kgdb) p *crp->crp_desc->crd_next $4 =3D { crd_skip =3D 0x14, crd_len =3D 0x1e0, crd_inject =3D 0xdeadc0de, crd_flags =3D 0x16, CRD_INI =3D { cri_alg =3D 0x16, cri_klen =3D 0x100, cri_mlen =3D 0xdeadc0de, cri_key =3D 0xfffff8003a28ae00 "\214\352\255\370\"\214|\275\367=3D\005\331X\325\251\371\220LN\207\037sY\30= 5\274\033\346\200\217\343\272J\032H\021u[\024:\303\301\275\210\200\321\"\25= 1\071\251\022", cri_iv =3D "", cri_next =3D 0xdeadc0dedeadc0de }, crd_next =3D 0x0 } ---- --=20 Eitan Adler --=20 Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgnrpd51UkB6aZyYRxCL%2B-km4%2B=ke0v0uGrocHBAoc_eNQ>