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(ffff80002129a030,ffff80002e41da90,ffff80002e41dae0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002129a030,ffff80002e41da90,ffff80002e41dae0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e41db60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e41db60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x40902d86d60, count: -3 ddb{1}> show registers rdi 0x11 rsi 0x20019288 rbp 0xffff80002e41da80 rbx 0x11 rdx 0xffff800000d08040 rcx 0 rax 0xffff80002129a030 r8 0x7f7fffffc000 r9 0x1 r10 0x568529039e0ec78d r11 0x54c3537c9fe34e04 r12 0xfffffd8066d0bed8 r13 0xdeaf4152deaf4152 r14 0xffff800000db5400 r15 0x11 rip 0xffffffff81fa719f sys_msgrcv+0x2df cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002e41d9f0 ss 0 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.0) pid=228864 stat=onproc flags process=0 proc=4000000 pri=36, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff800022f1a038,0xffff80002129add8 process=0xffff80002129e5c8 user=0xffff80002e418000, vmspace=0xfffffd8067ad41f0 estcpu=34, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18050 227128 44516 0 2 0 syz-executor.1 18050 102165 44516 0 3 0x4000080 msgwait syz-executor.1 18050 348350 44516 0 3 0x4000080 msgwait syz-executor.1 18050 444683 44516 0 3 0x4000080 msgwait syz-executor.1 18050 349109 44516 0 3 0x4000080 msgwait syz-executor.1 74142 403924 59654 0 3 0x80 nanoslp syz-executor.6 74142 387440 59654 0 3 0x4000080 kqread syz-executor.6 74142 131946 59654 0 3 0x4000080 fsleep syz-executor.6 74142 149092 59654 0 3 0x4000080 fsleep syz-executor.6 25926 360787 359 0 7 0 syz-executor.0 25926 304808 359 0 3 0x4000080 msgwait syz-executor.0 25926 508177 359 0 3 0x4000080 msgwait syz-executor.0 25926 89058 359 0 3 0x4000080 msgwait syz-executor.0 25926 485149 359 0 3 0x4000080 fsleep syz-executor.0 *25926 228864 359 0 7 0x4000000 syz-executor.0 25926 102240 359 0 2 0x4000000 syz-executor.0 25926 133407 359 0 3 0x4000080 msgwait syz-executor.0 25926 328289 359 0 3 0x4000080 fsleep syz-executor.0 95895 308102 38605 0 3 0x80 nanoslp syz-executor.4 95895 451821 38605 0 3 0x4000080 ttyout syz-executor.4 95895 265767 38605 0 3 0x4000080 fsleep syz-executor.4 59654 478276 33625 0 3 0x82 nanoslp syz-executor.6 94269 62696 33625 0 3 0x82 piperd syz-executor.7 75591 249590 33625 0 3 0x82 piperd syz-executor.5 38605 454568 33625 0 3 0x82 nanoslp syz-executor.4 37779 253692 33625 0 3 0x82 piperd syz-executor.3 2832 316395 33625 0 3 0x82 piperd syz-executor.2 44516 196502 33625 0 3 0x82 nanoslp syz-executor.1 359 357765 33625 0 3 0x82 nanoslp syz-executor.0 33625 151795 69816 0 3 0x82 wait syz-fuzzer 33625 386225 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 119705 69816 0 3 0x4000082 wait syz-fuzzer 33625 515292 69816 0 3 0x4000082 wait syz-fuzzer 33625 52477 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 339298 69816 0 3 0x4000082 wait syz-fuzzer 33625 324956 69816 0 3 0x4000082 wait syz-fuzzer 33625 103437 69816 0 3 0x4000082 wait syz-fuzzer 33625 375068 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 114911 69816 0 3 0x4000082 wait syz-fuzzer 33625 183862 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 371417 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 216427 69816 0 3 0x4000082 wait syz-fuzzer 33625 70619 69816 0 3 0x4000082 kqread syz-fuzzer 33625 68142 69816 0 3 0x4000082 thrsleep syz-fuzzer 33625 364993 69816 0 3 0x4000082 thrsleep syz-fuzzer 69816 185775 83339 0 3 0x10008a sigsusp ksh 83339 12186 71941 0 3 0x9a kqread sshd 5599 318283 1 0 3 0x100083 ttyin getty 71941 105449 1 0 3 0x88 kqread sshd 95864 471472 62614 74 3 0x1100092 bpf pflogd 62614 476198 1 0 3 0x80 netio pflogd 41564 227982 64017 73 3 0x1100090 kqread syslogd 64017 8368 1 0 3 0x100082 netio syslogd 58774 487213 1 0 3 0x100080 kqread resolvd 41178 168267 92174 77 3 0x100092 kqread dhcpleased 77179 30991 92174 77 3 0x100092 kqread dhcpleased 92174 65095 1 0 3 0x80 kqread dhcpleased 28163 2510 0 0 3 0x14200 bored smr 2640 139111 0 0 2 0x14200 zerothread 93362 473053 0 0 3 0x14200 aiodoned aiodoned 7572 158015 0 0 3 0x14200 syncer update 11640 230545 0 0 3 0x14200 cleaner cleaner 28716 463825 0 0 3 0x14200 reaper reaper 40201 517374 0 0 3 0x14200 pgdaemon pagedaemon 6000 233137 0 0 3 0x14200 bored viomb 17217 439681 0 0 3 0x40014200 acpi0 acpi0 36452 86674 0 0 3 0x40014200 idle1 42065 56850 0 0 3 0x14200 bored softnet3 89166 63135 0 0 3 0x14200 bored softnet2 92010 214497 0 0 3 0x14200 bored softnet1 57662 453423 0 0 3 0x14200 bored softnet0 42410 172517 0 0 3 0x14200 bored systqmp 32404 495039 0 0 3 0x14200 bored systq 50495 148155 0 0 3 0x40014200 bored softclock 81703 159353 0 0 3 0x40014200 idle0 1 458893 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 25926 (syz-executor.0) thread 0xffff80002129a030 (228864) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82cb03c8) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3c3 sys/kern/sched_bsd.c:405 #3 sleep_finish+0x1ea sys/kern/kern_synch.c:416 #4 rw_enter+0x368 sys/kern/kern_rwlock.c:286 #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+0x23e sys/arch/amd64/amd64/trap.c:286 #9 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:341 #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:632 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6476K 6483K 78643K 11313 0 pcb 13 9K 9K 78643K 37 0 rtable 234 6K 6K 78643K 362 0 ifaddr 77 25K 25K 78643K 82 0 ifgroup 55 2K 2K 78643K 55 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 1485 0 iov 0 0K 18K 78643K 25 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1285 80K 80K 78643K 1374 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 0K 0K 78643K 153 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 81K 78643K 287 0 proc 68 91K 115K 78643K 554 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 2 0K 0K 78643K 18 0 in_multi 99 7K 7K 78643K 108 0 ether_multi 1 0K 0K 78643K 7 0 mrt 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 399 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 344 82K 96K 78643K 5360 0 UVM aobj 12 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 10 0 NDP 12 0K 2K 78643K 28 0 temp 60 5859K 5922K 78643K 4741 0 kqueue 13 20K 20K 78643K 28 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 76 0 73 2 0 2 2 0 8 1 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 52 0 37 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 361 0 361 2 2 0 1 0 8 0 tcpcb 776 54 0 48 4 0 4 4 0 8 3 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 227 0 217 7 0 7 7 0 8 6 nd6 136 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 10 0 10 1 0 1 1 0 8 1 pfstitem 24 28 0 0 1 0 1 1 0 8 0 pfstkey 128 28 0 0 1 0 1 1 0 8 0 pfstate 384 28 0 0 3 0 3 3 0 8 0 pfrule 1344 21 0 15 2 0 2 2 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 12 0 9 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 148 0 138 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1737 0 289 91 0 91 91 0 8 0 ffsino 272 1737 0 289 97 0 97 97 0 8 0 nchpl 144 2288 0 602 63 0 63 63 0 8 0 uvmvnodes 80 1881 0 0 39 0 39 39 0 8 0 vnodes 216 1881 0 0 105 0 105 105 0 8 0 namei 1024 8174 0 8174 2 1 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 7729 0 7729 9 1 8 8 0 8 8 plimitpl 152 63 0 45 1 0 1 1 0 8 0 sigapl 424 607 0 563 7 1 6 6 0 8 0 futexpl 64 1626 0 1621 1 0 1 1 0 8 0 knotepl 120 109 0 0 4 0 4 4 0 8 0 kqueuepl 216 29 0 20 1 0 1 1 0 8 0 pipepl 320 162 0 134 3 0 3 3 0 8 0 fdescpl 496 590 0 563 5 0 5 5 0 8 0 filepl 152 2965 0 2676 12 0 12 12 0 8 0 lockfpl 104 39 0 37 1 0 1 1 0 8 0 lockfspl 48 16 0 14 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 7 1 0 1 1 0 8 0 ucredpl 104 392 0 380 1 0 1 1 0 8 0 zombiepl 144 563 0 563 1 0 1 1 0 8 1 processpl 1072 607 0 563 4 0 4 4 0 8 0 procpl 696 955 0 879 8 0 8 8 0 8 0 sockpl 488 355 0 327 12 0 12 12 0 8 8 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 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 531 0 0 66 0 66 66 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 548 0 0 34 0 34 34 0 8 0 bufpl 288 4375 0 163 301 0 301 301 0 8 0 anonpl 24 257652 0 243468 110 0 110 110 0 186 20 amapchunkpl 152 18701 0 17740 45 0 45 45 0 158 6 amappl16 200 7928 0 7529 34 0 34 34 0 8 7 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 166 0 152 2 1 1 2 0 8 0 amappl13 176 15 0 15 1 1 0 1 0 8 0 amappl12 168 1260 0 1232 3 1 2 2 0 8 0 amappl11 160 93 0 79 1 0 1 1 0 8 0 amappl10 152 48 0 37 1 0 1 1 0 8 0 amappl9 144 204 0 201 2 1 1 2 0 8 0 amappl8 136 190 0 142 2 0 2 2 0 8 0 amappl7 128 62 0 46 1 0 1 1 0 8 0 amappl6 120 258 0 241 2 1 1 2 0 8 0 amappl5 112 153 0 143 1 0 1 1 0 8 0 amappl4 104 679 0 639 3 1 2 3 0 8 0 amappl3 96 3477 0 3375 4 1 3 3 0 8 0 amappl2 88 834 0 768 3 1 2 3 0 8 0 amappl1 80 10668 0 10126 23 8 15 23 0 8 2 amappl 88 4834 0 4586 7 0 7 7 0 92 1 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 590 0 563 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 590 0 563 1 0 1 1 0 8 0 vmmpekpl 168 10916 0 10868 3 0 3 3 0 8 0 vmmpepl 168 61319 0 59056 142 1 141 142 0 357 35 vmsppl 464 589 0 563 5 0 5 5 0 8 0 rwobjpl 56 26011 0 22601 51 2 49 49 0 8 0 pdppl 4096 1188 0 1126 110 40 70 78 0 8 8 pvpl 32 500175 0 480423 345 13 332 342 0 265 160 pmappl 248 589 0 563 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 748 0 43 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(ffffffff82bb2ff0) 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+0x23 __mp_lock(ffffffff82cb01c0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cb01c0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002afed100) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002afed100) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d201c7670c0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff80002129a030,ffff80002e41da90,ffff80002e41dae0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002129a030,ffff80002e41da90,ffff80002e41dae0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e41db60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e41db60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x40902d86d60, count: -3