kernel: protection fault trap, code=0 Stopped at witness_checkorder+0xb5: movl 0x20(%r14),%r15d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> 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:904 reaper(ffff8000ffffdc90) at reaper+0x2ec sys/kern/kern_exit.c:516 end trace frame: 0x0, count: -4 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a1f4070 rbx 0 rdx 0 rcx 0xffff8000ffffdc90 rax 0xffffffff839d3ffe cpu_info_full_primary+0x1ffe r8 0x7f7fffffc000 r9 0 r10 0xab1471664adc1ac8 r11 0xc3e928cf0b57f6ac r12 0xdeafbeaddeafbffe r13 0x9 r14 0xdeafbeaddeafbfc5 r15 0 rip 0xffffffff828c2a85 witness_checkorder+0xb5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a1f3fd0 ss 0x10 witness_checkorder+0xb5: movl 0x20(%r14),%r15d ddb{0}> show proc PROC (reaper) tid=80613 pid=80502 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffffc88,0xffff8000ffffda08 process=0xffff8000ffffb9c0 user=0xffff80002a1ef000, vmspace=0xffffffff83aa1be0 estcpu=1, cpticks=17, pctcpu=0.5, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77187 118029 33811 32767 2 0x10 syz-executor 77187 413886 33811 32767 3 0x4000090 fsleep syz-executor 77187 278810 33811 32767 3 0x4000090 fsleep syz-executor 85384 207510 91372 32767 2 0x10 syz-executor 85384 396875 91372 32767 3 0x4000090 fsleep syz-executor 85384 495095 91372 32767 3 0x4000090 lockf syz-executor 85384 226507 91372 32767 3 0x4000090 fsleep syz-executor 64750 35077 73273 32767 2 0x10 syz-executor 64750 374090 73273 32767 2 0x4000010 syz-executor 64750 329454 73273 32767 3 0x4000090 fsleep syz-executor 76724 423431 71959 32767 2 0x10 syz-executor 76724 208514 71959 32767 3 0x4000090 sbwait syz-executor 76724 486910 71959 32767 3 0x4000090 fsleep syz-executor 66541 242130 63688 32767 3 0x90 nanoslp syz-executor 66541 441639 63688 32767 3 0x4000090 pipewr syz-executor 66541 443713 63688 32767 3 0x4000090 pipewr syz-executor 63688 164862 8740 32767 2 0x10 syz-executor 8740 429744 22660 0 3 0x82 wait syz-executor 91372 232023 3051 32767 2 0x10 syz-executor 3051 414851 22660 0 3 0x82 wait syz-executor 71959 357860 79801 32767 2 0x10 syz-executor 54422 350237 20672 32767 3 0x90 wait syz-executor 72908 33408 87121 32767 2 0x10 syz-executor 33811 337415 12268 32767 3 0x90 nanoslp syz-executor 73273 376215 25247 32767 7 0x10 syz-executor 79801 485400 22660 0 3 0x82 wait syz-executor 87121 84475 22660 0 3 0x82 wait syz-executor 20672 76122 22660 0 3 0x82 wait syz-executor 12268 81416 22660 0 3 0x82 wait syz-executor 25247 289272 22660 0 3 0x82 wait syz-executor 22660 477762 25967 0 3 0x82 nanoslp syz-executor 25967 427147 92761 0 3 0x10008a sigsusp ksh 92761 53010 79516 0 3 0x98 kqread sshd-session 79516 418302 27389 0 3 0x92 kqread sshd-session 18423 491823 1 0 3 0x100083 ttyin getty 27389 400089 1 0 3 0x88 kqread sshd 30617 81140 21743 73 3 0x1100090 kqread syslogd 21743 333326 1 0 3 0x100082 sbwait syslogd 20860 352035 1 0 3 0x100080 kqread resolvd 82949 302013 408 77 3 0x100092 kqread dhcpleased 68425 81160 408 77 3 0x100092 kqread dhcpleased 408 501892 1 0 3 0x80 kqread dhcpleased 15014 463052 0 0 3 0x14200 bored smr 89136 27523 0 0 2 0x14200 zerothread 25588 421805 0 0 3 0x14200 aiodoned aiodoned 91649 98226 0 0 3 0x14200 syncer update 22566 219906 0 0 3 0x14200 cleaner cleaner *80502 80613 0 0 7 0x14200 reaper 44129 142811 0 0 3 0x14200 pgdaemon pagedaemon 88364 428181 0 0 3 0x14200 bored viomb 72672 176425 0 0 3 0x40014200 acpi0 acpi0 44317 431058 0 0 3 0x40014200 idle1 33108 215121 0 0 3 0x14200 bored softnet1 25502 331924 0 0 3 0x14200 bored softnet0 867 475042 0 0 3 0x14200 bored systqmp 23432 103962 0 0 3 0x14200 bored systq 69428 496009 0 0 3 0x14200 tmoslp softclockmp 47139 246854 0 0 3 0x40014200 tmoslp softclock 61834 216028 0 0 3 0x40014200 idle0 1 508569 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80502 (reaper) thread 0xffff8000ffffdc90 (80613) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83b17c80) #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:513 #6 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11053 12017K 12034K 166960K 12153 0 pcb 17 12K 12K 166960K 17 0 rtable 215 6K 7K 166960K 428 0 pf 29 16K 16K 166960K 35 0 ifaddr 38 6K 7K 166960K 52 0 ifgroup 46 2K 2K 166960K 58 0 sysctl 1 1K 9K 166960K 6 0 counters 68 36K 37K 166960K 74 0 ioctlops 0 0K 4K 166960K 37 0 iov 0 0K 10K 166960K 16 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1545 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 18 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 22 81K 113K 166960K 383 0 sigio 0 0K 0K 166960K 2 0 proc 58 99K 131K 166960K 590 0 subproc 63 3K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 59 0 in_multi 88 6K 7K 166960K 131 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 406 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 244 152K 169K 166960K 4911 0 UVM aobj 12 2K 2K 166960K 12 0 pinsyscall 43 86K 107K 166960K 1518 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 10 0K 2K 166960K 33 0 temp 34 9118K 9139K 166960K 4500 0 kqueue 15 22K 28K 166960K 93 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 59 0 55 1 0 1 1 0 8 0 rtentry 176 134 0 35 6 0 6 6 0 8 0 unpcb 144 161 0 144 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 223 0 217 7 0 7 7 0 8 6 arp 136 22 0 6 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 2 0 2 1 0 1 1 0 8 1 inpcb 328 473 0 462 7 0 7 7 0 8 6 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 152 31 0 10 1 0 1 1 0 8 0 kcovpl 48 14 0 7 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 556 0 147 30 0 30 30 0 8 3 art_table 40 557 0 147 5 0 5 5 0 8 0 art_node 32 134 0 44 1 0 1 1 0 8 0 semapl 72 16 0 6 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1970 0 496 93 0 93 93 0 8 0 ffsino 296 1970 0 496 114 0 114 114 0 8 0 nchpl 144 2454 0 752 64 0 64 64 0 8 0 vnodes 216 2105 0 0 117 0 117 117 0 8 0 namei 1024 7863 0 7863 1 0 1 1 0 8 1 percpumem 16 52 0 3 1 0 1 1 0 8 0 kstatmem 264 29 0 6 2 0 2 2 0 8 0 scxspl 216 7958 0 7958 8 1 7 7 1 8 7 plimitpl 152 204 0 181 2 0 2 2 0 8 0 sigapl 424 663 0 612 7 0 7 7 0 8 0 knotepl 120 273 0 0 9 0 9 9 0 8 0 kqueuepl 224 193 0 182 5 0 5 5 0 8 4 pipepl 344 159 0 131 3 0 3 3 0 8 0 fdescpl 528 647 0 613 3 0 3 3 0 8 0 filepl 160 3291 0 3080 14 0 14 14 0 8 2 lockfpl 104 137 0 131 1 0 1 1 0 8 0 lockfspl 48 32 0 28 1 0 1 1 0 8 0 sessionpl 144 41 0 25 1 0 1 1 0 8 0 pgrppl 48 55 0 32 1 0 1 1 0 8 0 ucredpl 104 782 0 764 1 0 1 1 0 8 0 zombiepl 144 614 0 612 1 0 1 1 0 8 0 processpl 1232 663 0 612 5 0 5 5 0 8 0 procpl 664 1003 0 941 7 0 7 7 0 8 1 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 696 0 664 11 0 11 11 0 8 7 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 125 0 0 16 0 16 16 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 356 0 0 23 0 23 23 0 8 0 bufpl 272 2535 0 102 163 0 163 163 0 8 0 anonpl 32 5088 0 0 42 0 42 42 0 246 0 amapchunkpl 152 14422 0 13874 25 0 25 25 0 158 2 amappl16 200 1864 0 1843 5 3 2 5 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 435 0 434 1 0 1 1 0 8 0 amappl13 176 122 0 112 1 0 1 1 0 8 0 amappl12 168 886 0 853 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 269 0 269 1 1 0 1 0 8 0 amappl8 136 99 0 98 1 0 1 1 0 8 0 amappl7 128 156 0 145 1 0 1 1 0 8 0 amappl6 120 169 0 167 1 0 1 1 0 8 0 amappl5 112 97 0 89 1 0 1 1 0 8 0 amappl4 104 270 0 255 1 0 1 1 0 8 0 amappl3 96 2756 0 2628 5 1 4 4 0 8 0 amappl2 88 543 0 486 2 0 2 2 0 8 0 amappl1 80 11675 0 11119 16 0 16 16 0 8 3 amappl 88 4154 0 3973 5 0 5 5 0 92 0 uvmvnodes 80 106 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 647 0 613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 647 0 613 1 0 1 1 0 8 0 vmmpekpl 168 7157 0 7110 3 0 3 3 0 8 0 vmmpepl 168 49788 0 47843 104 0 104 104 0 357 13 vmsppl 488 646 0 612 7 1 6 6 0 8 0 rwobjpl 80 16989 0 16036 24 0 24 24 0 8 3 pdppl 4096 1301 0 1224 107 22 85 91 0 8 8 pvpl 32 12706 0 0 104 1 103 104 0 265 0 pmappl 256 646 0 612 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 457 0 25 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> 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:904 reaper(ffff8000ffffdc90) at reaper+0x2ec sys/kern/kern_exit.c:516 end trace frame: 0x0, count: -4 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff80002999dff0) 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+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 syscall(ffff80002f376a90) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002f376a90) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7676dfb1e890, count: -6