kernel: protection fault trap, code=0 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sys_msgrcv(ffff800022d7c2a0,ffff80002e4a3c98,ffff80002e4a3ce0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022d7c2a0,ffff80002e4a3c98,ffff80002e4a3ce0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e4a3d60) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4a3d60) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a46438f200, count: -3 ddb{0}> show registers rdi 0x1b rsi 0x20003b08 rbp 0xffff80002e4a3c80 rbx 0x1b rdx 0 rcx 0 rax 0xffff800022d7c2a0 r8 0x7f7fffffc000 r9 0 r10 0xef4e3bec79bd4824 r11 0x12a47f6177ff7053 r12 0xfffffd80763fde10 r13 0xdeafbeaddeafbead r14 0xffff800000c04000 r15 0x1b rip 0xffffffff8222a11f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e4a3bf0 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.7) pid=484848 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800022d7c540,0xffff800022d7ca90 process=0xffff8000212a5930 user=0xffff80002e49e000, vmspace=0xfffffd806ef7c458 estcpu=3, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79465 188702 73187 32767 7 0x10 syz-executor.7 *79465 484848 73187 32767 7 0x4000010 syz-executor.7 79465 20069 73187 32767 2 0x4000010 syz-executor.7 79465 264537 73187 32767 2 0x4000010 syz-executor.7 79465 181476 73187 32767 2 0x4000010 syz-executor.7 79465 243178 73187 32767 2 0x4000010 syz-executor.7 96494 112373 56782 32767 2 0x10 syz-executor.4 96494 287478 56782 32767 3 0x4000090 fsleep syz-executor.4 29672 495551 87263 32767 2 0x10 syz-executor.0 29672 139036 87263 32767 2 0x4000010 syz-executor.0 29672 199244 87263 32767 2 0x4000010 syz-executor.0 2897 442387 7066 32767 2 0x10 syz-executor.2 53245 109915 4572 32767 3 0x90 nanoslp syz-executor.5 53245 199587 4572 32767 2 0x4000010 syz-executor.5 53245 114462 4572 32767 3 0x4000090 fsleep syz-executor.5 37829 263005 54626 32767 2 0x10 syz-executor.1 37829 389560 54626 32767 3 0x4000090 fsleep syz-executor.1 37829 205504 54626 32767 3 0x4000090 fsleep syz-executor.1 55572 457327 16398 32767 2 0x10 syz-executor.3 55572 5845 16398 32767 2 0x4000010 syz-executor.3 55572 473772 16398 32767 3 0x4000090 fsleep syz-executor.3 20829 395948 19586 32767 2 0x4081010 syz-executor.6 20829 86409 19586 32767 2 0x4081010 syz-executor.6 20829 381050 19586 32767 3 0x4003010 suspend syz-executor.6 20829 436569 19586 32767 2 0x4081010 syz-executor.6 19586 373604 73349 32767 2 0x10 syz-executor.6 73187 150671 9336 32767 3 0x90 nanoslp syz-executor.7 73349 108418 12208 0 3 0x82 wait syz-executor.6 9336 106302 12208 0 3 0x82 wait syz-executor.7 4572 407463 67897 32767 3 0x90 nanoslp syz-executor.5 54626 174835 99822 32767 2 0x10 syz-executor.1 56782 93623 3333 32767 3 0x90 nanoslp syz-executor.4 67897 83540 12208 0 3 0x82 wait syz-executor.5 7066 196373 63856 32767 3 0x90 nanoslp syz-executor.2 3333 153967 12208 0 3 0x82 wait syz-executor.4 63856 207514 12208 0 3 0x82 wait syz-executor.2 16398 99625 56303 32767 3 0x90 nanoslp syz-executor.3 99822 433742 12208 0 3 0x82 wait syz-executor.1 87263 339507 88469 32767 2 0x10 syz-executor.0 56303 354134 12208 0 3 0x82 wait syz-executor.3 88469 347311 12208 0 3 0x82 wait syz-executor.0 12208 178470 60913 0 3 0x82 wait syz-fuzzer 12208 207417 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 118772 60913 0 3 0x4000082 wait syz-fuzzer 12208 488671 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 334735 60913 0 3 0x4000082 wait syz-fuzzer 12208 292963 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 409490 60913 0 3 0x4000082 wait syz-fuzzer 12208 170367 60913 0 3 0x4000082 wait syz-fuzzer 12208 431125 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 447257 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 410089 60913 0 3 0x4000082 wait syz-fuzzer 12208 46378 60913 0 3 0x4000082 wait syz-fuzzer 12208 259545 60913 0 3 0x4000082 thrsleep syz-fuzzer 12208 362155 60913 0 3 0x4000082 wait syz-fuzzer 12208 321441 60913 0 3 0x4000082 kqread syz-fuzzer 60913 269195 18724 0 3 0x10008a sigsusp ksh 18724 504401 91998 0 3 0x9a kqread sshd 71138 342984 1 0 3 0x100083 ttyin getty 91998 387249 1 0 3 0x88 kqread sshd 21616 310542 52273 73 2 0x1100010 syslogd 52273 255540 1 0 3 0x100082 netio syslogd 60803 495699 1 0 3 0x100080 kqread resolvd 2641 505782 99263 77 3 0x100092 kqread dhcpleased 71713 204971 99263 77 3 0x100092 kqread dhcpleased 99263 56185 1 0 3 0x80 kqread dhcpleased 86201 191936 0 0 3 0x14200 bored smr 96772 363472 0 0 2 0x14200 zerothread 89962 390750 0 0 3 0x14200 aiodoned aiodoned 68646 120011 0 0 3 0x14200 syncer update 48489 88870 0 0 3 0x14200 cleaner cleaner 95444 25309 0 0 3 0x14200 reaper reaper 89228 397173 0 0 3 0x14200 pgdaemon pagedaemon 79988 307507 0 0 3 0x14200 bored viomb 18751 21517 0 0 3 0x40014200 acpi0 acpi0 47350 458115 0 0 3 0x40014200 idle1 2146 297934 0 0 3 0x14200 bored softnet 94207 99864 0 0 3 0x14200 bored softnet 1033 481585 0 0 3 0x14200 bored softnet 71778 433306 0 0 3 0x14200 bored softnet 23612 213440 0 0 3 0x14200 bored systqmp 54107 448282 0 0 3 0x14200 bored systq 21090 207441 0 0 3 0x40014200 bored softclock 63991 347939 0 0 3 0x40014200 idle0 1 252551 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 79465 (syz-executor.7) thread 0xffff800022d7c2a0 (484848) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829ee4c8) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:415 #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:277 #9 kerntrap+0xef sys/arch/amd64/amd64/trap.c:332 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x53 #12 syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] #12 syscall+0x438 sys/arch/amd64/amd64/trap.c:599 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 6408K 6420K 78643K 11275 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 343 0 ifaddr 71 16K 16K 78643K 73 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 27 0 iov 0 0K 0K 78643K 1 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1284 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 26 97K 117K 78643K 164 0 proc 56 78K 115K 78643K 469 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 25 122K 122K 78643K 25 0 exec 0 0K 1K 78643K 347 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 316 80K 80K 78643K 2688 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 27 0 temp 95 4683K 4746K 78643K 3986 0 kqueue 13 20K 20K 78643K 25 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 33 0 30 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 56 0 41 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 110 0 110 1 1 0 1 0 8 0 tcpcb 776 8 0 4 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 57 0 50 1 0 1 1 0 8 0 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 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1497 0 67 90 0 90 90 0 8 0 ffsino 272 1497 0 67 96 0 96 96 0 8 0 nchpl 144 1793 0 123 63 0 63 63 0 8 1 uvmvnodes 80 1610 0 0 33 0 33 33 0 8 0 vnodes 216 1610 0 0 90 0 90 90 0 8 0 namei 1024 6104 0 6104 2 0 2 2 0 8 2 percpumem 16 42 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5841 0 5841 2 1 1 2 0 8 1 plimitpl 152 32 0 9 1 0 1 1 0 8 0 sigapl 424 446 0 392 7 0 7 7 0 8 0 futexpl 64 367 0 362 1 0 1 1 0 8 0 knotepl 120 104 0 0 4 0 4 4 0 8 0 kqueuepl 216 88 0 79 5 0 5 5 0 8 4 pipepl 320 125 0 97 3 0 3 3 0 8 0 fdescpl 496 429 0 392 7 1 6 6 0 8 1 filepl 152 1887 0 1586 12 0 12 12 0 8 0 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 81 0 63 1 0 1 1 0 8 0 zombiepl 144 393 0 392 1 0 1 1 0 8 0 processpl 1072 446 0 392 4 0 4 4 0 8 0 procpl 672 531 0 445 8 0 8 8 0 8 0 sockpl 488 146 0 121 4 0 4 4 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 280 0 0 35 0 35 35 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 342 0 0 22 0 22 22 0 8 0 bufpl 288 4010 0 139 277 0 277 277 0 8 0 anonpl 24 125991 0 113561 76 1 75 75 0 186 0 amapchunkpl 152 7520 0 6800 28 0 28 28 0 158 0 amappl16 200 2530 0 2228 18 0 18 18 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 138 0 124 2 0 2 2 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 396 0 393 1 0 1 1 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 30 0 20 1 0 1 1 0 8 0 amappl9 144 954 0 953 2 1 1 1 0 8 0 amappl8 136 151 0 109 2 0 2 2 0 8 0 amappl7 128 130 0 108 2 0 2 2 0 8 0 amappl6 120 150 0 141 1 0 1 1 0 8 0 amappl5 112 124 0 116 1 0 1 1 0 8 0 amappl4 104 434 0 408 2 0 2 2 0 8 1 amappl3 96 639 0 571 2 0 2 2 0 8 0 amappl2 88 772 0 688 3 0 3 3 0 8 1 amappl1 80 11857 0 11021 22 2 20 22 0 8 2 amappl 88 2240 0 2026 5 0 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 429 0 392 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 429 0 392 1 0 1 1 0 8 0 vmmpekpl 168 8898 0 8836 3 0 3 3 0 8 0 vmmpepl 168 47501 0 44571 135 0 135 135 0 357 7 vmsppl 368 428 0 392 4 0 4 4 0 8 0 rwobjpl 56 16218 0 13145 45 1 44 44 0 8 0 pdppl 4096 865 0 784 109 22 87 91 0 8 6 pvpl 32 306498 0 287803 271 1 270 270 0 265 119 pmappl 248 428 0 392 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 676 0 24 19 0 19 19 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff800022d7c2a0,ffff80002e4a3c98,ffff80002e4a3ce0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022d7c2a0,ffff80002e4a3c98,ffff80002e4a3ce0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e4a3d60) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4a3d60) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a46438f200, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) 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+0x2f kd_curproc sys/dev/kcov.c:578 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2f sys/dev/kcov.c:148 __mp_lock(ffffffff829ee2c0) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829ee2c0) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff80002b059490) at syscall+0x424 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b059490) at syscall+0x424 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc40f0, count: -7