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(ffff800022cda038,ffff80002a3fbe08,ffff80002a3fbe50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022cda038,ffff80002a3fbe08,ffff80002a3fbe50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002a3fbed0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a3fbed0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9a34a82eb0, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002a3fbdf0 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff800022cda038 r8 0x7f7fffffc000 r9 0x1 r10 0x4936a20094700d68 r11 0x812684ae35e8dde9 r12 0xfffffd8064d8eeb0 r13 0xdead4110dead4110 r14 0xffff800000d1b800 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a3fbd60 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.7) pid=186317 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=66, nice=20 forw=0xffffffffffffffff, list=0xffff800022cda5a8,0xffff800021243b70 process=0xffff8000299d9d68 user=0xffff80002a3f6000, vmspace=0xfffffd806c52a370 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22043 418866 77971 32767 2 0x10 syz-executor.6 22043 95009 77971 32767 7 0x4000010 syz-executor.6 84145 258340 50119 32767 2 0x10 syz-executor.2 84145 260512 50119 32767 2 0x4000010 syz-executor.2 52367 514520 55305 32767 2 0x10 syz-executor.5 52367 494579 55305 32767 3 0x4000090 lockf syz-executor.5 52367 425429 55305 32767 2 0x4000010 syz-executor.5 26372 9070 7562 32767 2 0x10 syz-executor.7 *26372 186317 7562 32767 7 0x4000010 syz-executor.7 26372 223630 7562 32767 3 0x4000090 fsleep syz-executor.7 26372 145798 7562 32767 2 0x4000010 syz-executor.7 14884 99162 73537 32767 2 0x10 syz-executor.4 14884 17004 73537 32767 3 0x4000090 fsleep syz-executor.4 71091 511796 0 0 3 0x14200 bored sosplice 55305 299973 66086 32767 3 0x90 nanoslp syz-executor.5 77971 228069 48546 32767 3 0x90 nanoslp syz-executor.6 50119 343584 50195 32767 3 0x90 nanoslp syz-executor.2 30764 135147 40226 32767 3 0x90 nanoslp syz-executor.1 48546 26767 30304 0 3 0x82 wait syz-executor.6 7562 457930 57671 32767 2 0x10 syz-executor.7 50195 360443 30304 0 3 0x82 wait syz-executor.2 57671 97069 30304 0 3 0x82 wait syz-executor.7 66086 303149 30304 0 3 0x82 wait syz-executor.5 77317 415888 42193 32767 2 0x10 syz-executor.3 40226 192463 30304 0 3 0x82 wait syz-executor.1 73537 480719 82770 32767 3 0x90 nanoslp syz-executor.4 42193 272159 30304 0 3 0x82 wait syz-executor.3 82770 385215 30304 0 3 0x82 wait syz-executor.4 6236 518950 90320 32767 2 0x10 syz-executor.0 90320 523872 30304 0 3 0x82 wait syz-executor.0 30304 202155 14028 0 3 0x82 wait syz-fuzzer 30304 432590 14028 0 3 0x4000082 nanoslp syz-fuzzer 30304 334757 14028 0 3 0x4000082 wait syz-fuzzer 30304 438881 14028 0 3 0x4000082 thrsleep syz-fuzzer 30304 522936 14028 0 3 0x4000082 thrsleep syz-fuzzer 30304 376462 14028 0 3 0x4000082 wait syz-fuzzer 30304 115319 14028 0 3 0x4000082 wait syz-fuzzer 30304 275045 14028 0 3 0x4000082 wait syz-fuzzer 30304 436870 14028 0 3 0x4000082 wait syz-fuzzer 30304 205213 14028 0 3 0x4000082 wait syz-fuzzer 30304 172025 14028 0 3 0x4000082 thrsleep syz-fuzzer 30304 417370 14028 0 3 0x4000082 wait syz-fuzzer 30304 399047 14028 0 3 0x4000082 thrsleep syz-fuzzer 30304 286782 14028 0 3 0x4000082 thrsleep syz-fuzzer 30304 229757 14028 0 3 0x4000082 kqread syz-fuzzer 14028 13469 80007 0 3 0x10008a sigsusp ksh 80007 4078 39426 0 3 0x9a kqread sshd 4971 328106 1 0 3 0x100083 ttyin getty 39426 277701 1 0 3 0x88 kqread sshd 11086 244123 17442 73 3 0x1100090 kqread syslogd 17442 273456 1 0 3 0x100082 netio syslogd 95846 436276 1 0 3 0x100080 kqread resolvd 53261 368220 35691 77 3 0x100092 kqread dhcpleased 43197 493634 35691 77 3 0x100092 kqread dhcpleased 35691 242832 1 0 3 0x80 kqread dhcpleased 86449 517598 0 0 3 0x14200 bored smr 6426 251129 0 0 2 0x14200 zerothread 36915 398864 0 0 3 0x14200 aiodoned aiodoned 57803 370899 0 0 3 0x14200 syncer update 90876 80573 0 0 3 0x14200 cleaner cleaner 76832 86268 0 0 3 0x14200 reaper reaper 92939 463769 0 0 3 0x14200 pgdaemon pagedaemon 84447 504366 0 0 3 0x14200 bored viomb 71891 500441 0 0 3 0x40014200 acpi0 acpi0 22217 432140 0 0 3 0x40014200 idle1 5456 332765 0 0 3 0x14200 bored softnet 76956 425182 0 0 3 0x14200 bored softnet 89062 233094 0 0 3 0x14200 bored softnet 34232 420970 0 0 3 0x14200 bored softnet 4030 63015 0 0 3 0x14200 bored systqmp 1632 54614 0 0 3 0x14200 bored systq 81100 329949 0 0 3 0x40014200 bored softclock 84872 144388 0 0 3 0x40014200 idle0 1 478735 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 22043 (syz-executor.6) thread 0xffff800022d24b28 (95009) exclusive rwlock amaplk r = 0 (0xfffffd8069d27f68) #0 witness_lock+0x44d #1 uvm_fault_check+0x419 sys/uvm/uvm_fault.c:783 #2 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #3 upageflttrap+0x85 sys/arch/amd64/amd64/trap.c:186 #4 usertrap+0x204 sys/arch/amd64/amd64/trap.c:438 #5 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd806b9777e0) #0 witness_lock+0x44d #1 uvmfault_lookup+0xc9 sys/uvm/uvm_fault.c:1773 #2 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:673 #3 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #4 upageflttrap+0x85 sys/arch/amd64/amd64/trap.c:186 #5 usertrap+0x204 sys/arch/amd64/amd64/trap.c:438 #6 recall_trap+0x8 Process 26372 (syz-executor.7) thread 0xffff800022cda038 (186317) 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 10194 6409K 6421K 78643K 11284 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 351 0 ifaddr 73 24K 24K 78643K 75 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 27 0 iov 0 0K 4K 78643K 12 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1286 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 79 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 117K 78643K 237 0 sigio 0 0K 0K 78643K 1 0 proc 56 78K 115K 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 ip_moptions 0 0K 0K 78643K 54 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 363 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 295 83K 83K 78643K 3323 0 UVM aobj 15 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 27 0 temp 91 5769K 5834K 78643K 4338 0 kqueue 12 18K 20K 78643K 31 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 37 0 34 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 327 0 314 10 1 9 10 0 8 8 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 377 0 377 2 1 1 1 0 8 1 tcpcb 776 22 0 17 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 107 0 99 2 0 2 2 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 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 4 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 77 0 67 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1581 0 151 90 0 90 90 0 8 0 ffsino 272 1581 0 151 96 0 96 96 0 8 0 nchpl 144 1963 0 290 63 0 63 63 0 8 0 uvmvnodes 80 1694 0 0 35 0 35 35 0 8 0 vnodes 216 1694 0 0 95 0 95 95 0 8 0 namei 1024 7068 0 7068 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 6789 0 6789 2 1 1 2 0 8 1 plimitpl 152 32 0 9 1 0 1 1 0 8 0 sigapl 424 531 0 478 7 0 7 7 0 8 0 futexpl 64 1143 0 1141 1 0 1 1 0 8 0 knotepl 120 132 0 0 4 0 4 4 0 8 0 kqueuepl 216 116 0 108 1 0 1 1 0 8 0 pipepl 320 146 0 118 3 0 3 3 0 8 0 fdescpl 496 513 0 479 7 1 6 6 0 8 0 filepl 152 2378 0 2140 19 1 18 19 0 8 8 lockfpl 104 18 0 14 1 0 1 1 0 8 0 lockfspl 48 7 0 4 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 104 102 0 84 1 0 1 1 0 8 0 zombiepl 144 479 0 478 1 0 1 1 0 8 0 processpl 1072 531 0 478 4 0 4 4 0 8 0 procpl 696 771 0 696 10 1 9 9 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 488 477 0 453 34 23 11 34 0 8 8 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 278 0 0 35 0 35 35 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 328 0 0 21 0 21 21 0 8 0 bufpl 288 4136 0 144 286 0 286 286 0 8 0 anonpl 24 143931 0 131380 81 2 79 80 0 186 0 amapchunkpl 152 9312 0 8588 31 0 31 31 0 158 1 amappl16 200 2692 0 2415 19 0 19 19 0 8 0 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 151 0 137 2 1 1 2 0 8 0 amappl13 176 13 0 11 1 0 1 1 0 8 0 amappl12 168 413 0 409 1 0 1 1 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 36 0 26 1 0 1 1 0 8 0 amappl9 144 969 0 968 1 0 1 1 0 8 0 amappl8 136 158 0 114 2 0 2 2 0 8 0 amappl7 128 141 0 122 2 0 2 2 0 8 0 amappl6 120 160 0 150 2 1 1 2 0 8 0 amappl5 112 120 0 114 1 0 1 1 0 8 0 amappl4 104 476 0 450 2 1 1 2 0 8 0 amappl3 96 926 0 866 2 0 2 2 0 8 0 amappl2 88 882 0 804 3 1 2 3 0 8 0 amappl1 80 13940 0 13168 26 8 18 26 0 8 1 amappl 88 2839 0 2640 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 513 0 479 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 513 0 479 1 0 1 1 0 8 0 vmmpekpl 168 9995 0 9928 4 0 4 4 0 8 0 vmmpepl 168 55838 0 53169 140 0 140 140 0 357 16 vmsppl 440 512 0 479 5 0 5 5 0 8 0 rwobjpl 56 18575 0 15487 48 3 45 47 0 8 0 pdppl 4096 1033 0 958 117 36 81 91 0 8 6 pvpl 32 361983 0 343433 361 26 335 361 0 265 179 pmappl 248 512 0 479 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 690 0 39 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 __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 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f uvm_pmr_getpages(1,0,0,1,0,1,c6e0567849f83d1b,fffffd80681fe1c8) at uvm_pmr_getpages+0xf21 sys/uvm/uvm_pmemrange.c:1208 uvm_pagealloc(0,0,fffffd80681fe1c8,2) at uvm_pagealloc+0x1a4 sys/uvm/uvm_page.c:910 uvm_fault_lower(ffff80002e43d660,ffff80002e43d698,ffff80002e43d5e0,0) at uvm_fault_lower+0x1aa uvm_fault(fffffd806b9776f0,d58cf132000,0,2) at uvm_fault+0x238 upageflttrap(ffff80002e43d7e0,d58cf132000) at upageflttrap+0x85 sys/arch/amd64/amd64/trap.c:186 usertrap(ffff80002e43d7e0) at usertrap+0x204 sys/arch/amd64/amd64/trap.c:438 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xd58d4b249c0, count: -13 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff800022cda038,ffff80002a3fbe08,ffff80002a3fbe50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800022cda038,ffff80002a3fbe08,ffff80002a3fbe50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002a3fbed0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a3fbed0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9a34a82eb0, count: -3