kernel: protection fault trap, code=0 Stopped at witness_checkorder+0xb5: movl 0x20(%r14),%r15d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> show kasan No such command ddb{1}> trace witness_checkorder(deafbeaddeafbfc5,9,0) at witness_checkorder+0xb5 sys/kern/subr_witness.c:779 mtx_enter(deafbeaddeafbfb5) at mtx_enter+0x95 sys/kern/kern_lock.c:406 prsignal(deafbeaddeafbead,14) at prsignal+0x36 sys/kern/kern_sig.c:905 reaper(ffff800045ffd9f8) at reaper+0x2ec sys/kern/kern_exit.c:518 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a1f4310 rbx 0 rdx 0 rcx 0xffff800045ffd9f8 rax 0xffff80002999dffe r8 0x7f7fffffc000 r9 0x1 r10 0xf0f27b56edcb0722 r11 0x6639a1536282e5b6 r12 0xdeafbeaddeafbffe r13 0x9 r14 0xdeafbeaddeafbfc5 r15 0 rip 0xffffffff81561095 witness_checkorder+0xb5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a1f4270 ss 0x10 witness_checkorder+0xb5: movl 0x20(%r14),%r15d ddb{1}> show proc PROC (reaper) tid=298674 pid=18259 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fff9f0,0xffff800045ffcd10 process=0xffff800045ffb548 user=0xffff80002a1ef000, vmspace=0xffffffff83a09f50 estcpu=0, cpticks=16, pctcpu=0.3, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 51085 374630 43957 32767 2 0x10 0 syz-executor 51085 163458 43957 32767 3 0x10 0x4000080 fsleep syz-executor 33985 495422 39640 32767 2 0x10 0 syz-executor 33985 95801 39640 32767 7 0x10 0x4000000 syz-executor 33985 282689 39640 32767 3 0x10 0x4000080 fsleep syz-executor 34731 453546 25459 32767 3 0x10 0x80 nanoslp syz-executor 34731 449948 25459 32767 3 0x10 0x4000080 kqsel syz-executor 34731 288910 25459 32767 3 0x10 0x4000080 fsleep syz-executor 12540 413869 92322 32767 3 0x10 0x80 nanoslp syz-executor 92322 392673 45668 0 3 0x2 0x80 wait syz-executor 39640 303439 87902 32767 3 0x10 0x80 nanoslp syz-executor 87902 46163 45668 0 3 0x2 0x80 wait syz-executor 43957 167832 95567 32767 3 0x10 0x80 nanoslp syz-executor 95567 467514 45668 0 3 0x2 0x80 wait syz-executor 37059 89333 45668 0 3 0x2 0x80 wait syz-executor 69900 400969 70887 32767 3 0x10 0x80 nanoslp syz-executor 70887 383768 45668 0 3 0x2 0x80 wait syz-executor 25459 407324 47762 32767 3 0x10 0x80 nanoslp syz-executor 47762 263406 45668 0 3 0x2 0x80 wait syz-executor 10846 372502 55726 32767 3 0x10 0x80 wait syz-executor 55726 161231 45668 0 3 0x2 0x80 wait syz-executor 45668 357797 15733 0 2 0x2 0 syz-executor 15733 373363 70440 0 3 0x100002 0x88 sigsusp ksh 70440 277762 94085 0 3 0x10 0x88 kqread sshd-session 94085 111460 64535 0 3 0x12 0x80 kqread sshd-session 63926 437887 1 0 3 0x100003 0x80 ttyin getty 64535 297867 1 0 3 0 0x88 kqread sshd 38147 120888 67448 73 3 0x1100010 0x80 kqread syslogd 67448 480326 1 0 3 0x100002 0x80 sbwait syslogd 52567 321331 1 0 3 0x100000 0x80 kqread resolvd 64692 499174 66229 77 3 0x100012 0x80 kqread dhcpleased 9122 201991 66229 77 3 0x100012 0x80 kqread dhcpleased 66229 334590 1 0 3 0 0x80 kqread dhcpleased 79844 306729 0 0 3 0x14000 0x200 bored smr 20517 28145 0 0 2 0x14000 0x200 zerothread 67978 49551 0 0 3 0x14000 0x200 aiodoned aiodoned 81756 161453 0 0 3 0x14000 0x200 syncer update 81485 85736 0 0 3 0x14000 0x200 cleaner cleaner *18259 298674 0 0 7 0x14000 0x200 reaper 3769 219567 0 0 3 0x14000 0x200 pgdaemon pagedaemon 8087 298985 0 0 3 0x14000 0x200 bored viomb 25689 309002 0 0 3 0x14000 0x40000200 acpi0 acpi0 90045 442658 0 0 3 0x14000 0x40000200 idle1 57982 468216 0 0 3 0x14000 0x200 bored softnet1 36086 444585 0 0 3 0x14000 0x200 bored softnet0 53329 248046 0 0 3 0x14000 0x200 smrbar systqmp 81942 438701 0 0 3 0x14000 0x200 bored systq 8546 111154 0 0 3 0x14000 0x200 tmoslp softclockmp 84382 276184 0 0 3 0x14000 0x40000200 tmoslp softclock 97740 444018 0 0 3 0x14000 0x40000200 idle0 1 138447 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 18259 (reaper) thread 0xffff800045ffd9f8 (298674) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a49ec0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:369 #3 rw_do_enter_write+0x1dc sys/kern/kern_rwlock.c:298 #4 knote_processexit+0x2b sys/kern/kern_event.c:2235 #5 reaper+0x26d sys/kern/kern_exit.c:515 #6 proc_trampoline+0x10 Process 53329 (systqmp) thread 0xffff800045ffe298 (248046) shared rwlock systqmp r = 0 (0xffffffff839c26c8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11076 12020K 12034K 166960K 12298 0 pcb 17 14K 16K 166960K 19 0 rtable 217 6K 7K 166960K 1629 0 pf 29 16K 16K 166960K 115 0 ifaddr 38 7K 7K 166960K 216 0 ifgroup 46 2K 2K 166960K 218 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 154 0 ioctlops 0 0K 4K 166960K 89 0 iov 0 0K 16K 166960K 35 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1799 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 27 2K 3K 166960K 33 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 21 77K 125K 166960K 1172 0 sigio 0 0K 0K 166960K 9 0 proc 58 99K 179K 166960K 1736 0 subproc 63 3K 4K 166960K 459 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 89 0 in_multi 88 5K 6K 166960K 570 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 16 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1007 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 143K 177K 166960K 10089 0 UVM aobj 48 2K 2K 166960K 50 0 pinsyscall 42 84K 112K 166960K 3384 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 18 0 NDP 20 1K 2K 166960K 153 0 temp 46 9121K 9185K 166960K 9631 0 kqueue 14 20K 28K 166960K 104 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 173 0 170 2 1 1 2 0 8 0 rtentry 176 577 0 477 6 0 6 6 0 8 0 unpcb 144 277 0 262 2 0 2 2 0 8 1 syncache 336 13 0 13 1 0 1 1 0 8 1 tcpcb 736 267 0 262 7 3 4 7 0 8 3 arp 136 103 0 87 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 1 1 0 1 1 0 8 0 inpcb 328 916 0 907 12 3 9 12 0 8 7 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 152 153 0 131 1 0 1 1 0 8 0 kcovpl 48 51 0 44 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2336 0 1872 33 1 32 32 0 8 1 art_table 40 2337 0 1872 6 0 6 6 0 8 1 art_node 32 577 0 486 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 28 0 3 1 0 1 1 0 8 0 shmpl 120 47 0 2 2 0 2 2 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2175 0 593 100 0 100 100 0 8 0 ffsino 296 2175 0 593 122 0 122 122 0 8 0 nchpl 144 2877 0 1053 68 0 68 68 0 8 0 vnodes 216 2643 0 0 147 0 147 147 0 8 0 namei 1024 14974 0 14974 4 3 1 3 0 8 1 percpumem 16 93 0 43 1 0 1 1 0 8 0 kstatmem 264 109 0 86 2 0 2 2 0 8 0 scxspl 216 9099 0 9099 4 3 1 3 1 8 1 plimitpl 152 301 0 279 2 0 2 2 0 8 0 sigapl 424 1385 0 1335 7 0 7 7 0 8 0 knotepl 120 537 0 0 17 0 17 17 0 8 0 kqueuepl 224 152 0 141 1 0 1 1 0 8 0 pipepl 344 298 0 271 3 0 3 3 0 8 0 fdescpl 528 1369 0 1336 4 1 3 4 0 8 0 filepl 160 5444 0 5247 15 0 15 15 0 8 5 lockfpl 104 184 0 182 1 0 1 1 0 8 0 lockfspl 48 49 0 47 1 0 1 1 0 8 0 sessionpl 144 92 0 77 1 0 1 1 0 8 0 pgrppl 48 149 0 127 1 0 1 1 0 8 0 ucredpl 104 890 0 872 1 0 1 1 0 8 0 zombiepl 144 1339 0 1335 1 0 1 1 0 8 0 processpl 1240 1385 0 1335 5 0 5 5 0 8 0 procpl 664 2078 0 2023 7 0 7 7 0 8 1 sosppl 176 3 0 3 2 1 1 1 0 8 1 sockpl 752 1374 0 1347 17 6 11 17 0 8 7 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 128 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 36 0 0 5 0 5 5 0 8 0 mextrefs 64 38 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 1108 0 0 70 0 70 70 0 8 0 bufpl 272 2797 0 102 180 0 180 180 0 8 0 anonpl 32 7339 0 0 60 0 60 60 0 247 0 amapchunkpl 152 28497 0 27997 32 0 32 32 0 158 8 amappl16 200 2640 0 2620 14 9 5 14 0 8 2 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 908 0 907 1 0 1 1 0 8 0 amappl13 176 210 0 200 1 0 1 1 0 8 0 amappl12 168 1769 0 1737 2 0 2 2 0 8 0 amappl11 160 22 0 22 1 1 0 1 0 8 0 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 268 0 267 2 1 1 1 0 8 0 amappl8 136 263 0 261 1 0 1 1 0 8 0 amappl7 128 297 0 286 1 0 1 1 0 8 0 amappl6 120 589 0 588 1 0 1 1 0 8 0 amappl5 112 107 0 99 1 0 1 1 0 8 0 amappl4 104 406 0 389 1 0 1 1 0 8 0 amappl3 96 5285 0 5188 5 1 4 4 0 8 0 amappl2 88 1430 0 1353 3 0 3 3 0 8 1 amappl1 80 19480 0 18924 19 3 16 19 0 8 1 amappl 88 8573 0 8407 5 0 5 5 0 92 0 uvmvnodes 80 115 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 49 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1369 0 1336 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1369 0 1336 1 0 1 1 0 8 0 vmmpekpl 168 12622 0 12557 4 0 4 4 0 8 0 vmmpepl 168 98435 0 96544 113 5 108 113 0 357 14 vmsppl 488 1368 0 1335 7 1 6 6 0 8 0 rwobjpl 80 30299 0 29319 29 4 25 28 0 8 1 pdppl 4096 2745 0 2670 135 46 89 97 0 8 14 pvpl 32 14096 0 0 115 1 114 114 0 265 0 pmappl 256 1368 0 1335 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 564 0 56 15 0 15 15 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff839cbff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff83a496c0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a496c0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7f kd_claim sys/dev/kcov.c:628 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7f sys/dev/kcov.c:157 __mp_lock(ffffffff83a496c0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a496c0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 filt_procattach(ffffee8070747790) at filt_procattach+0x139 sys/kern/kern_event.c:375 kqueue_register(ffffee806fd222a0,ffff80002a35bfd0,0,ffff800045fe8020) at kqueue_register+0xc87 filter_attach sys/kern/kern_event.c:1027 [inline] kqueue_register(ffffee806fd222a0,ffff80002a35bfd0,0,ffff800045fe8020) at kqueue_register+0xc87 sys/kern/kern_event.c:1509 sys_kevent(ffff800045fe8020,ffff80002a35c330,ffff80002a35c280) at sys_kevent+0x3bc sys/kern/kern_event.c:1303 syscall(ffff80002a35c330) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a35c330) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x212866e2f40, count: -15 ddb{0}> machine ddbcpu 1 Stopped at witness_checkorder+0xb5: movl 0x20(%r14),%r15d ddb{1}> trace witness_checkorder(deafbeaddeafbfc5,9,0) at witness_checkorder+0xb5 sys/kern/subr_witness.c:779 mtx_enter(deafbeaddeafbfb5) at mtx_enter+0x95 sys/kern/kern_lock.c:406 prsignal(deafbeaddeafbead,14) at prsignal+0x36 sys/kern/kern_sig.c:905 reaper(ffff800045ffd9f8) at reaper+0x2ec sys/kern/kern_exit.c:518 end trace frame: 0x0, count: -4