From owner-freebsd-hackers@freebsd.org Thu Apr 12 00:36:50 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0411F9F1F5 for ; Thu, 12 Apr 2018 00:36:50 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EDE16E7B5 for ; Thu, 12 Apr 2018 00:36:50 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x22d.google.com with SMTP id y23so1183365ywy.4 for ; Wed, 11 Apr 2018 17:36:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=fSICTGZVYuFy4zNVxcFHYV/IxRbyVqJ+cII3uTKuTqQ=; b=N33TH+N0UMOiwAc/YCu0kRML8sHEVFHTTohxS4EJQcnYR/i6Jd673/hblxMtlAtQu2 FI3O4QV/cM+RHYlUa0g3dltiAaKwkufBMqUAXtp0egkT7OWHoKKbXXsBJpInAH6QYbGZ W7Q6B4tLyYqsKTCB7JXQfRYxBQD6v4mBfgMLU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=fSICTGZVYuFy4zNVxcFHYV/IxRbyVqJ+cII3uTKuTqQ=; b=NkEs+MWW6+Qp9KkNvbsaxIz0g4uHNiFkVSRzASeFJZpIA4XMgS3uxSEFWCDaP+hkRW ZHiH31t66QNLm7zigzBNhQHE6b8vXlKy2yUPAHVevLP3l8RZvgheABZxDYJT3DDgkv+K DLeJlzSIppcYJ/ee5V1ymTrjnFeJN3KMa6eOEknSC+6xfVDoJTK5e4v+Q/TO5WnnER2E 9Ld2VjbbcY81a1RhoVHKr6dhpnJPinU0jqkX0OP/n8Udq78svFnJxA3tEvl2BWuhCLMX bUfj1LZvC4J9EOGW8J40KW/dvpdQJmmke87cck+eFrvjHjyPZrYGhwg4Qqs6sSK4jL/n QXDw== X-Gm-Message-State: ALQs6tCMHFTYwN2H/4Ng3+49NYTlvRR6Vb/W8B85Frs9GqP9Nkbd7v+M OsM1PiEAxYmE+88mgTK3LxuCUuujv+RFrlftbc2WahYn X-Google-Smtp-Source: AIpwx4+A8SP9nXSMB6Rm6DI+ujpXYHDf7HT9A8BYqNGDax+6PMJ+JuQrseidV5fDfILOjMLjPG9VNcQrC73FX41TS0M= X-Received: by 10.13.219.3 with SMTP id d3mr2960451ywe.182.1523493409239; Wed, 11 Apr 2018 17:36:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:98c3:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 17:36:18 -0700 (PDT) From: Eitan Adler Date: Wed, 11 Apr 2018 17:36:18 -0700 Message-ID: Subject: Crypto READ request failed (error=22). md10.eli[READ(offset=818688, length=512 To: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 00:36:50 -0000 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, rv=3D, nargs=3D, args=3D) at /usr/src/sys/ddb/db_command.c:609 #3 db_fncall (dummy1=3D, dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:657 #4 0xffffffff80434a99 in db_command (last_cmdp=3D, cmd_table=3D, dopager=3D) 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, code=3D) at /usr/src/sys/ddb/db_main.c:250 #7 0xffffffff80babf53 in kdb_trap (type=3D0x3, code=3D0xffff0ff0, tf=3D) 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 #10 kdb_enter (why=3D0xffffffff8129f663 "panic", msg=3D) at /usr/src/sys/kern/subr_kdb.c:479 #11 0xffffffff80b66b5a in vpanic (fmt=3D, 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) at /usr/src/sys/geom/eli/g_eli_integrity.c:537 #14 0xffffffff825e9b7c in g_eli_worker (arg=3D) at /usr/src/sys/geom/eli/g_eli.c:542 #15 0xffffffff80b26e34 in fork_exit (callout=3D0xffffffff825e9a30 , arg=3D0xfffff8003a580bc0, frame=3D0xfffffe00ae86dac0) at /usr/src/sys/kern/kern_fork.c:1039 #16 (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 eflags 0x82 [ SF ] cs 0x20 0x20 ss 0x28 0x28 ds es fs gs fs_base gs_base (kgdb) info locals sc =3D 0xfffff80136461c00 encr_secsize =3D 0x200 nsec =3D 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 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 i =3D decr_secsize =3D 0x200 dstoff =3D 0x18f800 error =3D 0x80 crp =3D 0xfffff8004362f428 data_secsize =3D crde =3D crda =3D authkey =3D (kgdb) info args wr =3D 0xfffff8003a580bc0 bp =3D (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 , 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