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(ffff8000212d5340,ffff8000247095b8,ffff800024709600) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d5340,ffff8000247095b8,ffff800024709600) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800024709680) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800024709680) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcfae0d7480, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff8000247095a0 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff8000212d5340 r8 0x7f7fffffc000 r9 0x1 r10 0x2851af1de28b5443 r11 0x9530d85fba257dc9 r12 0xfffffd807699ab68 r13 0xdead4110dead4110 r14 0xffff800000d3fe00 r15 0x57 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800024709510 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.7) pid=254762 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212d55f8,0xffff8000212d5098 process=0xffff800026b7e198 user=0xffff800024704000, vmspace=0xfffffd8066daea68 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80877 497878 2917 32767 3 0x90 nanoslp syz-executor.2 80877 209630 2917 32767 2 0x4000010 syz-executor.2 80877 483684 2917 32767 2 0x4000010 syz-executor.2 80877 495632 2917 32767 3 0x4000090 netio syz-executor.2 34966 312968 31846 32767 7 0x10 syz-executor.7 34966 445923 31846 32767 3 0x4000090 fsleep syz-executor.7 *34966 254762 31846 32767 7 0x4000010 syz-executor.7 34966 457182 31846 32767 2 0x4000010 syz-executor.7 5156 75093 13384 32767 3 0x90 nanoslp syz-executor.5 5156 244376 13384 32767 3 0x4000090 netio syz-executor.5 5156 124122 13384 32767 3 0x4000090 fsleep syz-executor.5 5156 416583 13384 32767 3 0x4000090 fsleep syz-executor.5 27838 92930 0 0 3 0x14200 bored sosplice 31846 267222 24939 32767 3 0x90 nanoslp syz-executor.7 65178 70591 72302 32767 3 0x90 piperd syz-executor.1 24939 303641 94090 0 3 0x82 wait syz-executor.7 67852 346730 65661 32767 3 0x90 piperd syz-executor.6 13384 176065 18037 32767 3 0x90 nanoslp syz-executor.5 65661 203884 94090 0 3 0x82 wait syz-executor.6 2917 74047 72738 32767 3 0x90 nanoslp syz-executor.2 72302 170612 94090 0 3 0x82 wait syz-executor.1 18037 392457 94090 0 3 0x82 wait syz-executor.5 39718 343998 53471 32767 3 0x90 piperd syz-executor.4 72738 6243 94090 0 3 0x82 wait syz-executor.2 53471 192371 94090 0 3 0x82 wait syz-executor.4 33074 402240 87983 32767 3 0x90 piperd syz-executor.3 87983 298006 94090 0 3 0x82 wait syz-executor.3 87725 265503 32617 32767 3 0x90 piperd syz-executor.0 32617 319313 94090 0 3 0x82 wait syz-executor.0 94090 289703 10340 0 3 0x82 wait syz-fuzzer 94090 53073 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 115768 10340 0 3 0x4000082 wait syz-fuzzer 94090 38225 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 496439 10340 0 3 0x4000082 wait syz-fuzzer 94090 97601 10340 0 3 0x4000082 wait syz-fuzzer 94090 234060 10340 0 3 0x4000082 wait syz-fuzzer 94090 146759 10340 0 3 0x4000082 wait syz-fuzzer 94090 170923 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 294525 10340 0 3 0x4000082 wait syz-fuzzer 94090 269294 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 449496 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 231898 10340 0 3 0x4000082 thrsleep syz-fuzzer 94090 72930 10340 0 3 0x4000082 wait syz-fuzzer 94090 96807 10340 0 3 0x4000082 kqread syz-fuzzer 10340 369470 21665 0 3 0x10008a sigsusp ksh 21665 145807 26276 0 3 0x9a kqread sshd 99036 367754 1 0 3 0x100083 ttyin getty 26276 12302 1 0 3 0x88 kqread sshd 33925 502839 10133 73 3 0x1100090 kqread syslogd 10133 291707 1 0 3 0x100082 netio syslogd 6594 243678 1 0 3 0x100080 kqread resolvd 96846 118871 72557 77 3 0x100092 kqread dhcpleased 15092 322620 72557 77 3 0x100092 kqread dhcpleased 72557 8514 1 0 3 0x80 kqread dhcpleased 40703 227334 0 0 3 0x14200 bored smr 47204 458917 0 0 2 0x14200 zerothread 43754 215163 0 0 3 0x14200 aiodoned aiodoned 21625 435187 0 0 3 0x14200 syncer update 72217 157516 0 0 3 0x14200 cleaner cleaner 67735 108833 0 0 3 0x14200 reaper reaper 52879 220451 0 0 3 0x14200 pgdaemon pagedaemon 97756 245718 0 0 3 0x14200 bored viomb 89350 88865 0 0 3 0x40014200 acpi0 acpi0 90412 491422 0 0 3 0x40014200 idle1 76356 101984 0 0 3 0x14200 bored softnet 90768 108462 0 0 3 0x14200 bored softnet 93877 375190 0 0 3 0x14200 bored softnet 67651 419687 0 0 3 0x14200 bored softnet 86601 361582 0 0 3 0x14200 bored systqmp 67289 77692 0 0 3 0x14200 bored systq 85624 295668 0 0 3 0x40014200 bored softclock 56110 322141 0 0 3 0x40014200 idle0 1 484298 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 34966 (syz-executor.7) thread 0xffff8000212d5340 (254762) 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 10200 6410K 6421K 78643K 11290 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 354 0 ifaddr 73 24K 24K 78643K 75 0 sysctl 2 0K 0K 78643K 6 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 30 0 iov 0 0K 24K 78643K 148 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 80K 78643K 1303 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 262 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 21 77K 121K 78643K 780 0 sigio 0 0K 0K 78643K 5 0 proc 56 78K 115K 78643K 515 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 49 0 in_multi 99 6K 6K 78643K 122 0 ether_multi 1 0K 0K 78643K 8 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 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 437 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 298 80K 85K 78643K 7193 0 UVM aobj 94 3K 4K 78643K 96 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 11 0K 2K 78643K 27 0 temp 121 5777K 5841K 78643K 5393 0 kqueue 12 18K 26K 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 72 0 69 1 0 1 1 0 8 0 rtentry 112 112 0 2 4 0 4 4 0 8 0 unpcb 144 1194 0 1177 12 9 3 6 0 8 2 syncache 296 17 0 17 3 2 1 1 0 8 1 tcpqe 32 89 0 89 3 3 0 1 0 8 0 tcpcb 776 249 0 244 7 2 5 5 0 8 3 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 12 0 12 1 1 0 1 0 8 0 inpcb 368 594 0 584 10 3 7 7 0 8 5 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 455 0 2 29 0 29 29 0 8 0 art_table 32 456 0 2 4 0 4 4 0 8 0 art_node 16 111 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 18 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 258 0 248 1 0 1 1 0 8 0 shmpl 112 93 0 2 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2386 0 954 90 0 90 90 0 8 0 ffsino 272 2386 0 954 96 0 96 96 0 8 0 nchpl 144 3666 0 1999 63 0 63 63 0 8 0 uvmvnodes 80 2499 0 0 51 0 51 51 0 8 0 vnodes 216 2499 0 0 139 0 139 139 0 8 0 namei 1024 12338 0 12338 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 14990 0 14990 11 8 3 8 0 8 3 plimitpl 152 176 0 152 2 0 2 2 0 8 1 sigapl 424 1063 0 1013 7 0 7 7 0 8 0 futexpl 64 7400 0 7397 1 0 1 1 0 8 0 knotepl 120 108 0 0 4 0 4 4 0 8 0 kqueuepl 216 177 0 169 3 2 1 3 0 8 0 pipepl 320 310 0 282 8 5 3 8 0 8 0 fdescpl 496 1045 0 1013 7 2 5 6 0 8 0 filepl 152 6593 0 6351 21 6 15 16 0 8 5 lockfpl 104 191 0 189 1 0 1 1 0 8 0 lockfspl 48 36 0 34 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 474 0 456 1 0 1 1 0 8 0 zombiepl 144 1013 0 1013 1 0 1 1 0 8 1 processpl 1072 1063 0 1013 5 1 4 5 0 8 0 procpl 696 2414 0 2341 10 2 8 9 0 8 0 sosppl 168 8 0 8 2 1 1 1 0 8 1 sockpl 488 1862 0 1832 52 39 13 25 0 8 8 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 366 0 0 45 0 45 45 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 422 0 0 26 0 26 26 0 8 0 bufpl 288 5602 0 143 390 0 390 390 0 8 0 anonpl 24 265569 0 252137 104 14 90 103 0 186 0 amapchunkpl 152 26145 0 25433 46 2 44 44 0 158 13 amappl16 200 4531 0 4169 31 9 22 31 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 138 0 127 2 1 1 2 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 386 0 384 1 0 1 1 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 36 0 28 1 0 1 1 0 8 0 amappl9 144 977 0 976 1 0 1 1 0 8 0 amappl8 136 209 0 150 3 0 3 3 0 8 0 amappl7 128 147 0 125 2 0 2 2 0 8 0 amappl6 120 176 0 161 2 1 1 2 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 499 0 468 2 1 1 2 0 8 0 amappl3 96 2649 0 2594 2 0 2 2 0 8 0 amappl2 88 1442 0 1364 3 1 2 3 0 8 0 amappl1 80 26252 0 25513 26 8 18 26 0 8 0 amappl 88 6694 0 6502 7 1 6 6 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 95 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1045 0 1013 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1045 0 1013 1 0 1 1 0 8 0 vmmpekpl 168 13764 0 13699 4 0 4 4 0 8 0 vmmpepl 168 105725 0 103104 143 8 135 138 0 357 5 vmsppl 440 1044 0 1013 5 0 5 5 0 8 0 rwobjpl 56 33538 0 29489 61 2 59 59 0 8 0 pdppl 4096 2097 0 2026 123 42 81 93 0 8 10 pvpl 32 572077 0 552763 353 39 314 353 0 265 142 pmappl 248 1044 0 1013 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 826 0 48 23 0 23 23 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 __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 syscall(ffff80002bdddae0) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002bdddae0) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe5640, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff8000212d5340,ffff8000247095b8,ffff800024709600) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d5340,ffff8000247095b8,ffff800024709600) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800024709680) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800024709680) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcfae0d7480, count: -3