syzbot


netbsd boot error: fault in supervisor mode

Status: fixed on 2022/04/19 15:06
Reported-by: syzbot+8628fc57e2ce939b23e5@syzkaller.appspotmail.com
Fix commit: e86caeaead15 cgd(4): Omit technically-correct-but-broken adiantum dependency again.
First crash: 964d, last: 964d

Sample crash report:
[   1.0000000] fatal privileged instruction fault in supervisor mode
[   1.0000000] trap type 0 code 0 rip 0xffffffff802525c9 cs 0x8 rflags 0x10246 cr2 0 ilevel 0x8 rsp 0xffffffff86c62370
[   1.0000000] curlwp 0xffffffff8686abc0 pid 0.0 lowest kstack 0xffffffff86c5b2c0
kernel: privileged instruction fault trap, code=0
Stopped in pid 0.0 (system) at  netbsd:fpu_kern_leave+0x5e9:    fxsavel
fpu_kern_leave() at netbsd:fpu_kern_leave+0x5e9 xrstor sys/arch/amd64/compile/obj/GENERIC_SYZKALLER/./x86/cpufunc.h:480 [inline]
fpu_kern_leave() at netbsd:fpu_kern_leave+0x5e9 fpu_area_restore sys/arch/x86/x86/fpu.c:294 [inline]
fpu_kern_leave() at netbsd:fpu_kern_leave+0x5e9 sys/arch/x86/x86/fpu.c:425
aesni_probe() at netbsd:aesni_probe+0x559 sys/crypto/aes/arch/x86/aes_ni.c:305
aes_selftest() at netbsd:aes_selftest+0x6f sys/crypto/aes/aes_selftest.c:547
aes_modcmd() at netbsd:aes_modcmd+0x75d aes_select sys/crypto/aes/aes_impl.c:108 [inline]
aes_modcmd() at netbsd:aes_modcmd+0x75d sys/crypto/aes/aes_impl.c:136
module_do_builtin() at netbsd:module_do_builtin+0x1739 sys/kern/kern_module.c:940
module_do_builtin() at netbsd:module_do_builtin+0xe67 sys/kern/kern_module.c:925
module_do_builtin() at netbsd:module_do_builtin+0xe67 sys/kern/kern_module.c:925
module_init_class() at netbsd:module_init_class+0x393 sys/kern/kern_module.c:596
main() at netbsd:main+0xab7 configure sys/kern/init_main.c:775 [inline]
main() at netbsd:main+0xab7 sys/kern/init_main.c:550
ds          a918
es          6773
fs          2360
gs          6e14
rdi         5
rsi         4
rbp         ffffffff86c623c0
rbx         0
rdx         0
rcx         1910
rax         7
r8          10
--db_more--

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/02 09:04 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kmsan netbsd boot error: fault in supervisor mode
2022/04/02 09:04 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kmsan netbsd boot error: fault in supervisor mode
2022/04/02 09:04 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kmsan netbsd boot error: fault in supervisor mode
2022/04/02 08:15 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kubsan netbsd boot error: fault in supervisor mode
2022/04/02 08:15 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kubsan netbsd boot error: fault in supervisor mode
2022/04/02 08:15 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd-kubsan netbsd boot error: fault in supervisor mode
2022/04/02 07:53 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd netbsd boot error: fault in supervisor mode
2022/04/02 07:53 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd netbsd boot error: fault in supervisor mode
2022/04/02 07:53 netbsd 862c3a89c264 79a2a8fc .config console log report ci2-netbsd netbsd boot error: fault in supervisor mode
* Struck through repros no longer work on HEAD.