kernel: protection fault trap, code=0 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace sys_msgrcv(ffff800022ce15f8,ffff80002e43bcf0,ffff80002e43bd40) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022ce15f8,ffff80002e43bcf0,ffff80002e43bd40) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e43bdc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e43bdc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18477596060, count: -3 ddb{1}> show registers rdi 0x1008 __ALIGN_SIZE+0x8 rsi 0x20002488 rbp 0xffff80002e43bce0 rbx 0x1008 __ALIGN_SIZE+0x8 rdx 0 rcx 0xffff800022ce15f8 rax 0xffff800020d58ff0 r8 0x7f7fffffc000 r9 0x1 r10 0x4fb77472c51f5f10 r11 0x949377592f2402ae r12 0xfffffd807257acf8 r13 0xdead4110dead4110 r14 0xffff800000d3f900 r15 0x1c0 rip 0xffffffff81a0702f sys_msgrcv+0x2df cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002e43bc50 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.3) pid=450712 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800022d07b70,0xffff800022ce0048 process=0xffff80002856a9f8 user=0xffff80002e436000, vmspace=0xfffffd807effa910 estcpu=34, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3178 138090 84413 32767 2 0x10 syz-executor.2 83575 326482 71369 32767 7 0x10 syz-executor.3 *83575 450712 71369 32767 7 0x4000010 syz-executor.3 83575 79652 71369 32767 2 0x4000010 syz-executor.3 83575 480511 71369 32767 2 0x4000010 syz-executor.3 83575 495185 71369 32767 2 0x4000010 syz-executor.3 60730 106907 17826 32767 2 0x10 syz-executor.4 60730 171911 17826 32767 3 0x4000090 fsleep syz-executor.4 60730 58245 17826 32767 3 0x4000090 fsleep syz-executor.4 60730 161974 17826 32767 3 0x4000090 ttyin syz-executor.4 66649 361550 41449 32767 2 0x10 syz-executor.6 50418 17542 3613 32767 2 0x10 syz-executor.5 50418 420513 3613 32767 3 0x4000090 ttyretype syz-executor.5 54806 477709 48959 32767 3 0x90 nanoslp syz-executor.1 54806 164111 48959 32767 3 0x4000090 kqread syz-executor.1 54806 456448 48959 32767 3 0x4000090 kqread syz-executor.1 54806 76977 48959 32767 3 0x4000090 kqread syz-executor.1 54806 358755 48959 32767 3 0x4000090 fsleep syz-executor.1 63339 450949 0 0 3 0x14200 bored sosplice 71369 322835 76052 32767 3 0x90 nanoslp syz-executor.3 76052 25192 33163 0 3 0x82 wait syz-executor.3 84413 448268 20601 32767 3 0x90 nanoslp syz-executor.2 41449 211861 8339 32767 3 0x90 nanoslp syz-executor.6 3613 58592 14020 32767 3 0x90 nanoslp syz-executor.5 68923 308458 52290 32767 3 0x90 piperd syz-executor.7 14020 392760 33163 0 3 0x82 wait syz-executor.5 52290 120886 33163 0 3 0x82 wait syz-executor.7 8339 391909 33163 0 3 0x82 wait syz-executor.6 17826 130672 86570 32767 3 0x90 nanoslp syz-executor.4 86570 92011 33163 0 3 0x82 wait syz-executor.4 48959 414526 38454 32767 3 0x90 nanoslp syz-executor.1 20601 194506 33163 0 3 0x82 wait syz-executor.2 38454 163460 33163 0 3 0x82 wait syz-executor.1 91625 2788 85666 32767 3 0x90 piperd syz-executor.0 85666 82579 33163 0 3 0x82 wait syz-executor.0 33163 416911 72662 0 3 0x82 wait syz-fuzzer 33163 28698 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 521989 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 216082 72662 0 3 0x4000082 wait syz-fuzzer 33163 85042 72662 0 3 0x4000082 kqread syz-fuzzer 33163 407140 72662 0 3 0x4000082 wait syz-fuzzer 33163 230405 72662 0 3 0x4000082 wait syz-fuzzer 33163 398964 72662 0 3 0x4000082 wait syz-fuzzer 33163 436047 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 139094 72662 0 3 0x4000082 wait syz-fuzzer 33163 175549 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 502287 72662 0 3 0x4000082 wait syz-fuzzer 33163 58205 72662 0 3 0x4000082 wait syz-fuzzer 33163 190195 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 244597 72662 0 3 0x4000082 thrsleep syz-fuzzer 33163 424788 72662 0 3 0x4000082 thrsleep syz-fuzzer 72662 419287 75900 0 3 0x10008a sigsusp ksh 75900 464550 50125 0 3 0x9a kqread sshd 78710 135574 1 0 3 0x100083 ttyin getty 50125 223361 1 0 3 0x88 kqread sshd 99254 66471 29019 73 3 0x1100090 kqread syslogd 29019 442385 1 0 3 0x100082 netio syslogd 68584 386765 1 0 3 0x100080 kqread resolvd 25065 489342 95863 77 3 0x100092 kqread dhcpleased 24720 178492 95863 77 3 0x100092 kqread dhcpleased 95863 144645 1 0 3 0x80 kqread dhcpleased 75445 168687 0 0 3 0x14200 bored smr 50087 409890 0 0 2 0x14200 zerothread 70078 233688 0 0 3 0x14200 aiodoned aiodoned 99688 506583 0 0 3 0x14200 syncer update 62210 267811 0 0 3 0x14200 cleaner cleaner 82789 369479 0 0 3 0x14200 reaper reaper 65757 91154 0 0 3 0x14200 pgdaemon pagedaemon 57351 38517 0 0 3 0x14200 bored viomb 82447 48873 0 0 3 0x40014200 acpi0 acpi0 84679 139557 0 0 3 0x40014200 idle1 86406 22245 0 0 3 0x14200 bored softnet3 17553 47191 0 0 3 0x14200 bored softnet2 71409 2349 0 0 3 0x14200 bored softnet1 50266 301861 0 0 3 0x14200 bored softnet0 14942 248386 0 0 3 0x14200 bored systqmp 96780 435464 0 0 3 0x14200 bored systq 91039 237214 0 0 3 0x40014200 bored softclock 53456 15097 0 0 3 0x40014200 idle0 1 392224 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 83575 (syz-executor.3) thread 0xffff800022ce15f8 (450712) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d779c8) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x440 sys/kern/sched_bsd.c:420 #3 sleep_finish+0x184 sys/kern/kern_synch.c:411 #4 rw_enter+0x341 sys/kern/kern_rwlock.c:285 #5 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1773 #6 uvm_fault_check+0x3e sys/uvm/uvm_fault.c:673 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #8 kpageflttrap+0x252 sys/arch/amd64/amd64/trap.c:279 #9 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:332 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x57 #12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 6408K 6419K 78643K 11271 0 pcb 13 8K 8K 78643K 13 0 rtable 236 6K 6K 78643K 417 0 pf 29 8K 8K 78643K 33 0 ifaddr 44 15K 15K 78643K 54 0 ifgroup 50 2K 2K 78643K 58 0 counters 60 35K 35K 78643K 64 0 ioctlops 0 0K 2K 78643K 31 0 iov 1 8K 12K 78643K 30 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1280 80K 80K 78643K 1466 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 505 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 109K 78643K 1154 0 proc 56 78K 103K 78643K 541 0 subproc 104 6K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 88 0 in_multi 99 7K 7K 78643K 121 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 103 466K 466K 78643K 103 0 exec 0 0K 1K 78643K 416 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 347 84K 93K 78643K 13221 0 UVM aobj 85 3K 3K 78643K 88 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 58 0 NDP 11 0K 2K 78643K 33 0 temp 68 5866K 5930K 78643K 6593 0 kqueue 15 19K 29K 78643K 80 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 47 0 44 1 0 1 1 0 8 0 rtentry 112 134 0 23 4 0 4 4 0 8 0 unpcb 144 341 0 326 6 5 1 6 0 8 0 syncache 296 7 0 7 2 2 0 1 0 8 0 tcpqe 32 235 0 235 2 2 0 1 0 8 0 tcpcb 808 304 0 300 19 18 1 8 0 8 0 arp 120 22 0 4 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 368 505 0 498 20 19 1 7 0 8 0 nd6 136 31 0 6 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 548 0 88 29 0 29 29 0 8 0 art_table 32 549 0 88 4 0 4 4 0 8 0 art_node 16 133 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 16 1 0 1 1 0 8 0 semupl 112 48 0 48 1 1 0 1 0 8 0 semapl 112 450 0 440 1 0 1 1 0 8 0 shmpl 112 85 0 3 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2694 0 1254 91 0 91 91 0 8 0 ffsino 272 2694 0 1254 97 0 97 97 0 8 0 nchpl 144 4092 0 2453 63 0 63 63 0 8 0 uvmvnodes 80 2833 0 0 58 0 58 58 0 8 0 vnodes 216 2833 0 0 158 0 158 158 0 8 0 namei 1024 15966 0 15966 3 2 1 3 0 8 1 percpumem 16 45 0 2 1 0 1 1 0 8 0 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 12802 0 12802 9 8 1 8 0 8 1 plimitpl 152 525 0 500 5 3 2 2 0 8 0 sigapl 424 1449 0 1396 7 0 7 7 0 8 0 futexpl 64 9702 0 9699 1 0 1 1 0 8 0 knotepl 120 106 0 0 4 0 4 4 0 8 0 kqueuepl 216 264 0 254 5 4 1 5 0 8 0 pipepl 320 254 0 226 8 5 3 8 0 8 0 fdescpl 496 1431 0 1396 7 2 5 6 0 8 0 filepl 152 7899 0 7656 19 9 10 15 0 8 0 lockfpl 104 12 0 10 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 104 3153 0 3135 1 0 1 1 0 8 0 zombiepl 144 1396 0 1396 1 0 1 1 0 8 1 processpl 1072 1449 0 1396 4 0 4 4 0 8 0 procpl 696 3149 0 3069 10 2 8 9 0 8 0 sosppl 168 9 0 9 1 1 0 1 0 8 0 sockpl 488 937 0 912 36 32 4 20 0 8 0 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 15 0 0 2 0 2 2 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 273 0 0 35 0 35 35 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 298 0 0 18 0 18 18 0 8 0 bufpl 288 5092 0 141 354 0 354 354 0 8 0 anonpl 24 280130 0 269757 82 15 67 76 0 186 0 amapchunkpl 152 42400 0 41524 48 10 38 40 0 158 1 amappl16 200 6790 0 6527 18 3 15 17 0 8 0 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 158 0 144 2 1 1 2 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 2141 0 2103 2 0 2 2 0 8 0 amappl11 160 60 0 50 1 0 1 1 0 8 0 amappl10 152 29 0 18 1 0 1 1 0 8 0 amappl9 144 211 0 208 2 1 1 2 0 8 0 amappl8 136 262 0 203 3 0 3 3 0 8 0 amappl7 128 80 0 63 1 0 1 1 0 8 0 amappl6 120 268 0 252 2 1 1 2 0 8 0 amappl5 112 157 0 151 1 0 1 1 0 8 0 amappl4 104 652 0 615 2 0 2 2 0 8 0 amappl3 96 8486 0 8390 4 1 3 4 0 8 0 amappl2 88 1666 0 1600 4 2 2 3 0 8 0 amappl1 80 13640 0 13114 22 9 13 22 0 8 0 amappl 88 12684 0 12440 7 0 7 7 0 92 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 87 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1431 0 1396 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1431 0 1396 1 0 1 1 0 8 0 vmmpekpl 168 15631 0 15573 3 0 3 3 0 8 0 vmmpepl 168 104841 0 102530 121 14 107 112 0 357 1 vmsppl 464 1430 0 1396 6 1 5 5 0 8 0 rwobjpl 56 35305 0 31118 63 3 60 60 0 8 0 pdppl 4096 2870 0 2792 166 84 82 88 0 8 4 pvpl 32 782184 0 765836 365 146 219 364 0 265 73 pmappl 248 1430 0 1396 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 847 0 125 21 0 21 21 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82b66ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 sys/dev/kcov.c:158 __mp_lock(ffffffff82d777c0) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d777c0) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff800028567840) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800028567840) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fc24c889060, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff800022ce15f8,ffff80002e43bcf0,ffff80002e43bd40) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022ce15f8,ffff80002e43bcf0,ffff80002e43bd40) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e43bdc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e43bdc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18477596060, count: -3