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(ffff800022f5e030,ffff80002e45daa8,ffff80002e45daf0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022f5e030,ffff80002e45daa8,ffff80002e45daf0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e45db70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45db70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f6dd7fa7e0, count: -3 ddb{0}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002e45da90 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff800022f5e030 r8 0x7f7fffffc000 r9 0 r10 0xcb7e14269827a253 r11 0x3e5f0876be6ae5fa r12 0xfffffd8077e32eb0 r13 0xdead4110dead4110 r14 0xffff800000d50800 r15 0x18c rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e45da00 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.6) pid=271716 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff80002818cdd8,0xffff800022f5e868 process=0xffff800028d9e198 user=0xffff80002e458000, vmspace=0xfffffd806b92e6f0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37105 368427 43751 32767 2 0x10 syz-executor.6 *37105 271716 43751 32767 7 0x4000010 syz-executor.6 37105 379534 43751 32767 2 0x4000010 syz-executor.6 37105 7722 43751 32767 2 0x4000010 syz-executor.6 37105 34219 43751 32767 7 0x4000010 syz-executor.6 79000 334989 84178 32767 3 0x90 nanoslp syz-executor.7 79000 330205 84178 32767 3 0x4000090 kqread syz-executor.7 79000 259603 84178 32767 3 0x4000090 fsleep syz-executor.7 61216 380716 0 0 3 0x14200 bored sosplice 71286 297535 42707 32767 3 0x90 piperd syz-executor.2 84178 368270 32492 32767 3 0x90 nanoslp syz-executor.7 43751 415322 24976 32767 2 0x490 syz-executor.6 32492 199731 21266 0 3 0x82 wait syz-executor.7 24976 371164 21266 0 3 0x82 wait syz-executor.6 57628 401927 61662 32767 3 0x90 piperd syz-executor.3 36317 155926 13006 32767 3 0x90 piperd syz-executor.4 1424 216242 88091 32767 3 0x90 piperd syz-executor.5 89783 50668 65731 32767 3 0x90 piperd syz-executor.1 13006 516498 21266 0 3 0x82 wait syz-executor.4 88091 192994 21266 0 3 0x82 wait syz-executor.5 65731 159602 21266 0 3 0x82 wait syz-executor.1 47655 444444 89118 32767 3 0x90 piperd syz-executor.0 61662 344726 21266 0 3 0x82 wait syz-executor.3 42707 476467 21266 0 3 0x82 wait syz-executor.2 89118 180951 21266 0 3 0x82 wait syz-executor.0 21266 23386 46678 0 3 0x82 wait syz-fuzzer 21266 230743 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 291572 46678 0 3 0x4000082 wait syz-fuzzer 21266 287483 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 414715 46678 0 3 0x4000082 wait syz-fuzzer 21266 433230 46678 0 3 0x4000082 wait syz-fuzzer 21266 104153 46678 0 3 0x4000082 wait syz-fuzzer 21266 298701 46678 0 3 0x4000082 wait syz-fuzzer 21266 96215 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 344281 46678 0 3 0x4000082 wait syz-fuzzer 21266 457437 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 476652 46678 0 3 0x4000082 wait syz-fuzzer 21266 24917 46678 0 3 0x4000082 kqread syz-fuzzer 21266 153559 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 356319 46678 0 3 0x4000082 thrsleep syz-fuzzer 21266 140636 46678 0 3 0x4000082 thrsleep syz-fuzzer 46678 494534 71389 0 3 0x10008a sigsusp ksh 71389 434255 24156 0 3 0x9a kqread sshd 20005 172002 1 0 3 0x100083 ttyin getty 24156 96676 1 0 3 0x88 kqread sshd 64077 268868 66162 73 3 0x1100090 kqread syslogd 66162 508600 1 0 3 0x100082 netio syslogd 2889 97357 1 0 3 0x100080 kqread resolvd 60686 480180 7903 77 3 0x100092 kqread dhcpleased 59791 226953 7903 77 3 0x100092 kqread dhcpleased 7903 136885 1 0 3 0x80 kqread dhcpleased 93142 270725 0 0 3 0x14200 bored smr 77409 321233 0 0 2 0x14200 zerothread 62780 233058 0 0 3 0x14200 aiodoned aiodoned 54969 78762 0 0 3 0x14200 syncer update 96483 455490 0 0 3 0x14200 cleaner cleaner 95463 168075 0 0 3 0x14200 reaper reaper 41651 423411 0 0 3 0x14200 pgdaemon pagedaemon 79975 484091 0 0 3 0x14200 bored viomb 88324 397344 0 0 3 0x40014200 acpi0 acpi0 1063 158712 0 0 3 0x40014200 idle1 86475 492872 0 0 3 0x14200 bored softnet 45982 259995 0 0 3 0x14200 bored softnet 95385 420571 0 0 3 0x14200 bored softnet 47687 455387 0 0 3 0x14200 bored softnet 46715 259641 0 0 3 0x14200 bored systqmp 23197 89748 0 0 3 0x14200 bored systq 41618 402734 0 0 3 0x40014200 bored softclock 78059 62050 0 0 3 0x40014200 idle0 1 429355 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 37105 (syz-executor.6) thread 0xffff800022f5e030 (271716) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10217 6412K 6421K 78643K 11308 0 pcb 13 10K 12K 78643K 15 0 rtable 234 6K 6K 78643K 357 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 24K 78643K 68 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1409 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 162 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 20 73K 125K 78643K 623 0 sigio 0 0K 0K 78643K 7 0 proc 56 78K 115K 78643K 489 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 135 0 in_multi 99 6K 6K 78643K 103 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 175 784K 784K 78643K 175 0 exec 0 0K 1K 78643K 369 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 289 80K 96K 78643K 6012 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 53 0 NDP 11 0K 2K 78643K 27 0 temp 104 5769K 5833K 78643K 5280 0 kqueue 13 20K 26K 78643K 85 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 87 0 84 2 1 1 2 0 8 0 rtentry 112 112 0 2 4 0 4 4 0 8 0 unpcb 144 627 0 614 6 0 6 6 0 8 5 syncache 296 12 0 12 3 2 1 1 0 8 1 tcpqe 32 47 0 47 2 2 0 1 0 8 0 tcpcb 776 704 0 698 15 6 9 15 0 8 8 arp 120 18 0 0 1 0 1 1 0 8 0 ipq 40 3 0 3 1 1 0 1 0 8 0 ipqe 40 6 0 6 1 1 0 1 0 8 0 inpcb 368 1062 0 1053 16 6 10 16 0 8 8 nd6 48 25 0 1 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 454 0 2 29 0 29 29 0 8 0 art_table 32 455 0 2 4 0 4 4 0 8 0 art_node 16 111 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 16 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 160 0 150 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2185 0 754 90 0 90 90 0 8 0 ffsino 272 2185 0 754 96 0 96 96 0 8 0 nchpl 144 3091 0 1427 63 0 63 63 0 8 0 uvmvnodes 80 2298 0 0 47 0 47 47 0 8 0 vnodes 216 2298 0 0 128 0 128 128 0 8 0 namei 1024 11653 0 11653 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 9952 0 9952 9 2 7 8 0 8 7 plimitpl 152 69 0 46 1 0 1 1 0 8 0 sigapl 424 911 0 862 7 0 7 7 0 8 0 futexpl 64 5051 0 5050 1 0 1 1 0 8 0 knotepl 120 241 0 0 8 0 8 8 0 8 0 kqueuepl 216 247 0 238 5 0 5 5 0 8 4 pipepl 320 349 0 321 8 3 5 8 0 8 2 fdescpl 496 893 0 862 7 1 6 6 0 8 0 filepl 152 6955 0 6721 19 1 18 19 0 8 7 lockfpl 104 59 0 57 1 0 1 1 0 8 0 lockfspl 48 26 0 24 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 828 0 810 1 0 1 1 0 8 0 zombiepl 144 862 0 862 1 0 1 1 0 8 1 processpl 1072 911 0 862 5 1 4 5 0 8 0 procpl 696 1924 0 1854 9 1 8 8 0 8 0 sosppl 168 21 0 21 1 0 1 1 0 8 1 sockpl 488 1846 0 1820 26 14 12 25 0 8 8 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 270 0 0 34 0 34 34 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 342 0 0 22 0 22 22 0 8 0 bufpl 288 4757 0 140 330 0 330 330 0 8 0 anonpl 24 221817 0 208235 94 2 92 92 0 186 4 amapchunkpl 152 17877 0 17159 46 1 45 45 0 158 13 amappl16 200 3557 0 3198 22 0 22 22 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 145 0 133 2 1 1 2 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 397 0 392 1 0 1 1 0 8 0 amappl11 160 45 0 34 1 0 1 1 0 8 0 amappl10 152 33 0 25 2 1 1 1 0 8 0 amappl9 144 980 0 978 1 0 1 1 0 8 0 amappl8 136 206 0 157 2 0 2 2 0 8 0 amappl7 128 144 0 120 2 0 2 2 0 8 0 amappl6 120 175 0 163 2 1 1 2 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 478 0 450 2 1 1 2 0 8 0 amappl3 96 2103 0 2051 2 0 2 2 0 8 0 amappl2 88 1297 0 1218 3 1 2 3 0 8 0 amappl1 80 22709 0 21990 26 8 18 26 0 8 0 amappl 88 5513 0 5330 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 893 0 862 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 893 0 862 1 0 1 1 0 8 0 vmmpekpl 168 13507 0 13445 3 0 3 3 0 8 0 vmmpepl 168 90670 0 88150 148 9 139 148 0 357 9 vmsppl 440 892 0 862 5 0 5 5 0 8 0 rwobjpl 56 28498 0 24761 55 0 55 55 0 8 0 pdppl 4096 1793 0 1724 119 38 81 95 0 8 12 pvpl 32 503665 0 484355 324 14 310 323 0 265 143 pmappl 248 892 0 862 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 752 0 47 21 0 21 21 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff800022f5e030,ffff80002e45daa8,ffff80002e45daf0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022f5e030,ffff80002e45daa8,ffff80002e45daf0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e45db70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45db70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f6dd7fa7e0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d68ff0) 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 __mp_lock(ffffffff82c2c890) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c2c890) at __mp_lock+0x122 sys/kern/kern_lock.c:147 end trace frame: 0x0, count: -4