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(ffff8000212d6868,ffff80002e439d98,ffff80002e439de0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d6868,ffff80002e439d98,ffff80002e439de0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e439e60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e439e60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a88dd3520, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002e439d80 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff8000212d6868 r8 0x7f7fffffc000 r9 0x1 r10 0x3c10531fa4e45f4c r11 0xdc75b315193cd9bb r12 0xfffffd8065cbdca8 r13 0xdeafbeaddeafbead r14 0xffff800000d13f00 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e439cf0 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.4) pid=269245 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000212d7b70,0xffff800021201080 process=0xffff800026dc10d8 user=0xffff80002e434000, vmspace=0xfffffd80708eda68 estcpu=2, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54962 14959 86530 32767 7 0x10 syz-executor.4 54962 388497 86530 32767 2 0x4000010 syz-executor.4 *54962 269245 86530 32767 7 0x4000010 syz-executor.4 54962 370784 86530 32767 2 0x4000010 syz-executor.4 79840 483489 17382 32767 2 0x10 syz-executor.3 79840 416495 17382 32767 3 0x4000090 fifow syz-executor.3 79840 484604 17382 32767 3 0x4000090 fsleep syz-executor.3 79840 209019 17382 32767 3 0x4000090 fsleep syz-executor.3 79840 73833 17382 32767 2 0x4000010 syz-executor.3 39861 304294 72132 32767 2 0x10 syz-executor.0 39861 302065 72132 32767 3 0x4000090 kqread syz-executor.0 39861 443618 72132 32767 3 0x4000090 kqread syz-executor.0 39861 307383 72132 32767 2 0x4000010 syz-executor.0 30163 163666 47186 32767 2 0x10 syz-executor.2 12468 406798 0 0 3 0x14200 bored sosplice 57018 128023 20759 32767 2 0x10 syz-executor.7 20759 3085 30557 0 3 0x82 wait syz-executor.7 47186 175355 18550 32767 3 0x90 nanoslp syz-executor.2 51120 227608 53746 32767 2 0x10 syz-executor.5 20318 139995 57802 32767 2 0x10 syz-executor.6 86530 473078 92710 32767 3 0x90 nanoslp syz-executor.4 57802 208611 30557 0 3 0x82 wait syz-executor.6 53746 58453 30557 0 3 0x82 wait syz-executor.5 92710 432488 30557 0 3 0x82 wait syz-executor.4 17382 335091 87432 32767 3 0x90 nanoslp syz-executor.3 87432 355050 30557 0 3 0x82 wait syz-executor.3 18550 250632 30557 0 3 0x82 wait syz-executor.2 72132 7830 51383 32767 3 0x90 nanoslp syz-executor.0 71404 433264 66305 32767 2 0x10 syz-executor.1 51383 72668 30557 0 3 0x82 wait syz-executor.0 66305 486336 30557 0 3 0x82 wait syz-executor.1 30557 409134 84000 0 3 0x82 wait syz-fuzzer 30557 453938 84000 0 3 0x4000082 thrsleep syz-fuzzer 30557 28321 84000 0 3 0x4000082 wait syz-fuzzer 30557 240861 84000 0 3 0x4000082 wait syz-fuzzer 30557 144011 84000 0 3 0x4000082 thrsleep syz-fuzzer 30557 196450 84000 0 3 0x4000082 wait syz-fuzzer 30557 503244 84000 0 3 0x4000082 wait syz-fuzzer 30557 400911 84000 0 3 0x4000082 wait syz-fuzzer 30557 144816 84000 0 3 0x4000082 wait syz-fuzzer 30557 123954 84000 0 3 0x4000082 thrsleep syz-fuzzer 30557 439799 84000 0 3 0x4000082 thrsleep syz-fuzzer 30557 176370 84000 0 3 0x4000082 wait syz-fuzzer 30557 177243 84000 0 3 0x4000082 kqread syz-fuzzer 30557 280402 84000 0 3 0x4000082 thrsleep syz-fuzzer 30557 412951 84000 0 3 0x4000082 thrsleep syz-fuzzer 84000 288589 19578 0 3 0x10008a sigsusp ksh 19578 167116 70623 0 3 0x9a kqread sshd 62270 219295 1 0 3 0x100083 ttyin getty 70623 480559 1 0 3 0x88 kqread sshd 34938 150820 40186 73 3 0x1100090 kqread syslogd 40186 435045 1 0 3 0x100082 netio syslogd 12587 213521 1 0 3 0x100080 kqread resolvd 4597 332067 54144 77 3 0x100092 kqread dhcpleased 97817 258174 54144 77 3 0x100092 kqread dhcpleased 54144 236174 1 0 3 0x80 kqread dhcpleased 11405 40467 0 0 3 0x14200 bored smr 43594 149458 0 0 2 0x14200 zerothread 14445 140321 0 0 3 0x14200 aiodoned aiodoned 16267 120832 0 0 3 0x14200 syncer update 34465 107658 0 0 3 0x14200 cleaner cleaner 99207 298457 0 0 3 0x14200 reaper reaper 84824 227317 0 0 3 0x14200 pgdaemon pagedaemon 18123 299954 0 0 3 0x14200 bored viomb 15147 153047 0 0 3 0x40014200 acpi0 acpi0 14130 31219 0 0 3 0x40014200 idle1 66314 161792 0 0 3 0x14200 bored softnet 31574 505473 0 0 3 0x14200 bored softnet 91849 92241 0 0 3 0x14200 bored softnet 89644 215026 0 0 3 0x14200 bored softnet 40205 515143 0 0 3 0x14200 bored systqmp 65571 117838 0 0 3 0x14200 bored systq 1472 145917 0 0 3 0x40014200 bored softclock 37294 517558 0 0 3 0x40014200 idle0 1 423054 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54962 (syz-executor.4) thread 0xffff8000212d6868 (269245) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c2ca98) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:405 #3 sleep_finish+0x180 sys/kern/kern_synch.c:417 #4 rw_enter+0x35a sys/kern/kern_rwlock.c:286 #5 uvmfault_lookup+0xc9 sys/uvm/uvm_fault.c:1773 #6 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:673 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #8 kpageflttrap+0x22e sys/arch/amd64/amd64/trap.c:284 #9 kerntrap+0xef sys/arch/amd64/amd64/trap.c:339 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x53 #12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 6409K 6421K 78643K 11287 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 345 0 ifaddr 73 24K 24K 78643K 75 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 29 0 iov 0 0K 1K 78643K 12 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1272 79K 79K 78643K 1351 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 25 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 109K 78643K 239 0 sigio 0 0K 0K 78643K 11 0 proc 56 78K 103K 78643K 473 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 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 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 355 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 288 82K 95K 78643K 3238 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 35 0 NDP 11 0K 2K 78643K 27 0 temp 90 5765K 5829K 78643K 4210 0 kqueue 13 20K 20K 78643K 29 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 45 0 41 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 431 0 414 6 4 2 6 0 8 1 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 794 0 794 3 3 0 2 0 8 0 tcpcb 776 59 0 55 4 3 1 4 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 159 0 152 4 2 2 4 0 8 1 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 22 0 12 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1658 0 226 90 0 90 90 0 8 0 ffsino 272 1658 0 226 96 0 96 96 0 8 0 nchpl 144 2066 0 392 63 0 63 63 0 8 0 uvmvnodes 80 1771 0 0 37 0 37 37 0 8 0 vnodes 216 1771 0 0 99 0 99 99 0 8 0 namei 1024 7180 0 7180 2 1 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 7136 0 7136 9 8 1 8 0 8 1 plimitpl 152 35 0 12 1 0 1 1 0 8 0 sigapl 424 522 0 469 7 0 7 7 0 8 0 futexpl 64 1543 0 1541 1 0 1 1 0 8 0 knotepl 120 112 0 0 4 0 4 4 0 8 0 kqueuepl 216 29 0 19 1 0 1 1 0 8 0 pipepl 320 154 0 126 3 0 3 3 0 8 0 fdescpl 496 504 0 471 7 2 5 6 0 8 0 filepl 152 2910 0 2668 15 4 11 15 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 7 1 0 1 1 0 8 0 ucredpl 104 324 0 306 1 0 1 1 0 8 0 zombiepl 144 471 0 469 1 0 1 1 0 8 0 processpl 1072 522 0 469 4 0 4 4 0 8 0 procpl 696 730 0 653 9 1 8 8 0 8 0 sockpl 488 635 0 607 21 15 6 21 0 8 2 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 277 0 0 35 0 35 35 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 332 0 0 21 0 21 21 0 8 0 bufpl 288 4118 0 145 284 0 284 284 0 8 0 anonpl 24 141246 0 128147 84 1 83 83 0 186 0 amapchunkpl 152 9496 0 8792 35 4 31 35 0 158 0 amappl16 200 2600 0 2273 23 1 22 22 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 143 0 132 2 1 1 2 0 8 0 amappl13 176 15 0 14 1 0 1 1 0 8 0 amappl12 168 388 0 385 1 0 1 1 0 8 0 amappl11 160 52 0 41 1 0 1 1 0 8 0 amappl10 152 41 0 30 1 0 1 1 0 8 0 amappl9 144 971 0 970 1 0 1 1 0 8 0 amappl8 136 163 0 114 2 0 2 2 0 8 0 amappl7 128 140 0 116 2 0 2 2 0 8 0 amappl6 120 173 0 161 2 1 1 2 0 8 0 amappl5 112 126 0 120 1 0 1 1 0 8 0 amappl4 104 462 0 431 2 1 1 2 0 8 0 amappl3 96 910 0 854 2 0 2 2 0 8 0 amappl2 88 846 0 772 3 1 2 3 0 8 0 amappl1 80 13812 0 13069 26 9 17 26 0 8 0 amappl 88 2770 0 2578 6 1 5 5 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 505 0 472 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 505 0 472 1 0 1 1 0 8 0 vmmpekpl 168 9990 0 9951 3 0 3 3 0 8 0 vmmpepl 168 55163 0 52549 134 4 130 134 0 357 8 vmsppl 440 504 0 472 5 0 5 5 0 8 0 rwobjpl 56 18484 0 15289 49 3 46 47 0 8 0 pdppl 4096 1017 0 944 113 32 81 89 0 8 8 pvpl 32 357920 0 338966 361 45 316 360 0 265 155 pmappl 248 504 0 472 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 685 0 37 19 0 19 19 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82bc1ff0) at x86_ipi_db+0x1a 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+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:144 syscall(ffff80002ca01d40) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002ca01d40) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8480, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff8000212d6868,ffff80002e439d98,ffff80002e439de0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d6868,ffff80002e439d98,ffff80002e439de0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e439e60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e439e60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a88dd3520, count: -3