Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2022 18:47:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262894] Kernel Panic (page fault) with 13.1-BETA2 in g_eli & httpd
Message-ID:  <bug-262894-227-3THN9S2Xr5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262894-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262894-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262894

--- Comment #33 from Alexander Motin <mav@FreeBSD.org> ---
We've managed to get full dump:

Fatal trap 12: page fault while in kernel mode
cpuid =3D 3; apic id =3D 03
fault virtual address   =3D 0xfffff80e00000004
fault code              =3D supervisor read data, page not present
instruction pointer     =3D 0x20:0xffffffff80f1cdcd
stack pointer           =3D 0x28:0xfffffe0148413c00
frame pointer           =3D 0x28:0xfffffe0148413ca0
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 3655 (g_eli[3] gptid/e420)
trap number             =3D 12
panic: page fault
cpuid =3D 3
time =3D 1650468037
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0148413=
9c0
vpanic() at vpanic+0x17f/frame 0xfffffe0148413a10
panic() at panic+0x43/frame 0xfffffe0148413a70
trap_fatal() at trap_fatal+0x385/frame 0xfffffe0148413ad0
trap_pfault() at trap_pfault+0x4f/frame 0xfffffe0148413b30
calltrap() at calltrap+0x8/frame 0xfffffe0148413b30
--- trap 0xc, rip =3D 0xffffffff80f1cdcd, rsp =3D 0xfffffe0148413c00, rbp =
=3D
0xfffffe0148413ca0 ---
aesni_crypt_xts() at aesni_crypt_xts+0x17d/frame 0xfffffe0148413ca0
aesni_decrypt_xts() at aesni_decrypt_xts+0xe/frame 0xfffffe0148413cc0
aesni_cipher_crypt() at aesni_cipher_crypt+0x2f1/frame 0xfffffe0148413d70
aesni_process() at aesni_process+0x159/frame 0xfffffe0148413dc0
crypto_dispatch() at crypto_dispatch+0x118/frame 0xfffffe0148413df0
g_eli_crypto_run() at g_eli_crypto_run+0x178/frame 0xfffffe0148413e90
g_eli_worker() at g_eli_worker+0x328/frame 0xfffffe0148413ef0
fork_exit() at fork_exit+0x7e/frame 0xfffffe0148413f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0148413f30
--- trap 0x80af60b4, rip =3D 0, rsp =3D 0, rbp =3D 0 ---

(kgdb) bt
#0  __curthread () at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/amd64/include/pcp=
u_aux.h:55
#1  doadump (textdump=3Dtextdump@entry=3D1) at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/kern/kern_shutdow=
n.c:399
#2  0xffffffff80b164c1 in kern_reboot (howto=3D260) at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/kern/kern_shutdow=
n.c:487
#3  0xffffffff80b1693e in vpanic (fmt=3D0xffffffff811b9599 "%s", ap=3D<opti=
mized
out>)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/kern/kern_shutdow=
n.c:920
#4  0xffffffff80b16743 in panic (fmt=3D<unavailable>)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/kern/kern_shutdow=
n.c:844
#5  0xffffffff81042855 in trap_fatal (frame=3D0xfffffe0148413b40,
eva=3D18446735337746071556)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/amd64/amd64/trap.=
c:944
#6  0xffffffff810428af in trap_pfault (frame=3D0xfffffe0148413b40,
usermode=3Dfalse, signo=3D<optimized out>, ucode=3D<optimized out>)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/amd64/amd64/trap.=
c:763
#7  <signal handler called>
#8  aesni_crypt_xts_block8 (key_schedule=3D<optimized out>, from=3D<optimiz=
ed out>,
to=3D<optimized out>, rounds=3D<optimized out>,=20
    tweak=3D<optimized out>, do_encrypt=3D<optimized out>)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i_wrap.c:358
#9  aesni_crypt_xts (rounds=3D<optimized out>, data_schedule=3D0xfffff8000e=
d94140,
tweak_schedule=3D<optimized out>, len=3D<optimized out>,=20
    from=3D<optimized out>, from@entry=3D0xfffff80e00000004 <error: Cannot =
access
memory at address 0xfffff80e00000004>,=20
    to=3D<optimized out>, to@entry=3D0xfffff80e00000004 <error: Cannot acce=
ss
memory at address 0xfffff80e00000004>,=20
    iv=3D0xfffffe0148413d30 "", do_encrypt=3D0) at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i_wrap.c:411
#10 0xffffffff80f1d3ee in aesni_decrypt_xts (rounds=3D12,
data_schedule=3D0xfffff8000ed94140, tweak_schedule=3D0xfffff8000ed94160, le=
n=3D32,=20
    from=3Dfrom@entry=3D0xfffff80e00000004 <error: Cannot access memory at =
address
0xfffff80e00000004>,=20
    to=3Dto@entry=3D0xfffff80e00000004 <error: Cannot access memory at addr=
ess
0xfffff80e00000004>, iv=3D0xfffffe0148413d30 "")
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i_wrap.c:442
#11 0xffffffff80f16ce1 in aesni_cipher_crypt (ses=3D0xfffff8000ed94048,
crp=3Dcrp@entry=3D0xfffff801e7e1fe38, csp=3D<optimized out>,=20
    csp@entry=3D0xfffff8000ed94008) at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i.c:788
#12 0xffffffff80f166e9 in aesni_cipher_process (ses=3D<optimized out>,
crp=3D0xfffff801e7e1fe38)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i.c:687
#13 aesni_process (dev=3D<optimized out>, crp=3D0xfffff801e7e1fe38, hint=3D=
<optimized
out>)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/crypto/aesni/aesn=
i.c:379
#14 0xffffffff80e3b078 in crypto_dispatch (crp=3Dcrp@entry=3D0xfffff801e7e1=
fe38)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/opencrypto/crypto=
.c:1498
#15 0xffffffff80a3f678 in g_eli_crypto_run (wr=3Dwr@entry=3D0xfffff803e1bb4=
440,
bp=3Dbp@entry=3D0xfffff806c34978d0)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/geom/eli/g_eli_pr=
ivacy.c:343
#16 0xffffffff80a38378 in g_eli_worker (arg=3Darg@entry=3D0xfffff803e1bb444=
0)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/geom/eli/g_eli.c:=
708
#17 0xffffffff80ad223e in fork_exit (callout=3D0xffffffff80a38050 <g_eli_wo=
rker>,
arg=3D0xfffff803e1bb4440, frame=3D0xfffffe0148413f40)
    at
/data/workspace/TrueNAS_13.0_Nightlies/freenas/_BE/os/sys/kern/kern_fork.c:=
1093
#18 <signal handler called>

I haven't touched crypto code for a while, so going to look into what's
interesting there slowly.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262894-227-3THN9S2Xr5>