*cpu1: uvm_fault(0xffffffff8354a888, 0xffff8000294d4bc2, 0, 2) -> d ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x78b18d9c42b0, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a030750 rbx 0 rdx 0 rcx 0xffff80002a0507b0 rax 0x34 r8 0xffff80002a030680 r9 0xffff80002a0304fc r10 0x97ad2078f8a68f5b r11 0x50f080661a5abe17 r12 0 r13 0 r14 0xffff80002a0507b0 r15 0 rip 0xffffffff827d73ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002a0306d0 ss 0x10 savectx+0xae: movl $0,%gs:0x680 ddb{0}> show proc PROC (syz-executor) tid=139477 pid=56572 tcnt=1 stat=onproc flags process=2 proc=0 runpri=24, usrpri=72, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a0502a0,0xffff800029fd9968 process=0xffff8000ffff8da8 user=0xffff80002a02b000, vmspace=0xfffffd80092fe000 estcpu=22, cpticks=0, pctcpu=0.12, user=2, sys=76, intr=3 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3208 364992 44936 0 2 0 syz-executor 3208 187040 44936 0 2 0x4000000 syz-executor 92379 69809 40638 0 2 0 syz-executor 92379 256731 40638 0 3 0x4000080 fifor syz-executor 2635 170722 36109 0 2 0 syz-executor 2635 161109 36109 0 3 0x4000080 fsleep syz-executor 2635 427412 36109 0 3 0x4000080 fsleep syz-executor 33829 506194 18533 60928 3 0x90 nanoslp syz-executor 33829 75278 18533 60928 3 0x4000090 lockf syz-executor 33829 479466 18533 60928 3 0x4000090 fsleep syz-executor 50158 165759 29624 0 3 0x80 nanoslp syz-executor 50158 426806 29624 0 3 0x4000080 kqsel syz-executor 50158 66082 29624 0 3 0x4000080 fsleep syz-executor 50158 467211 29624 0 3 0x4000080 fsleep syz-executor 92998 212823 0 0 3 0x14200 acct acct 56576 86686 56572 0 3 0x82 wait syz-executor 18533 225373 56572 0 3 0x82 nanoslp syz-executor 36109 320590 56572 0 3 0x82 nanoslp syz-executor 29624 308094 56572 0 3 0x82 nanoslp syz-executor 44936 315706 56572 0 3 0x82 nanoslp syz-executor 40638 36526 56572 0 3 0x82 nanoslp syz-executor 75881 59732 56572 0 3 0x82 nanoslp syz-executor 80092 265538 1 0 3 0x100083 ttyin getty 70670 100930 0 0 3 0x14200 bored sosplice 10248 392167 0 0 3 0x14280 nfsidl nfsio 22988 134755 0 0 3 0x14280 nfsidl nfsio 1263 333512 0 0 3 0x14280 nfsidl nfsio 17722 22215 0 0 3 0x14280 nfsidl nfsio 94148 77624 0 0 3 0x14280 nfsidl nfsio 41275 46081 0 0 3 0x14280 nfsidl nfsio 59500 23417 0 0 3 0x14280 nfsidl nfsio 14698 169281 0 0 3 0x14280 nfsidl nfsio 50473 351195 0 0 3 0x14280 nfsidl nfsio 40387 63495 0 0 3 0x14280 nfsidl nfsio 15595 234320 0 0 3 0x14280 nfsidl nfsio 39812 343555 0 0 3 0x14280 nfsidl nfsio 18066 399841 0 0 3 0x14280 nfsidl nfsio 33956 57920 0 0 3 0x14280 nfsidl nfsio 65621 19058 0 0 3 0x14280 nfsidl nfsio 21154 34527 0 0 3 0x14280 nfsidl nfsio 17117 328274 0 0 3 0x14280 nfsidl nfsio 67034 198010 0 0 3 0x14280 nfsidl nfsio 51004 487455 0 0 3 0x14280 nfsidl nfsio 20374 425135 0 0 3 0x14280 nfsidl nfsio *56572 139477 27955 0 7 0x2 syz-executor 27955 27234 75582 0 3 0x10008a sigsusp ksh 75582 296354 28059 0 3 0x98 kqread sshd-session 28059 356862 10302 0 3 0x92 kqread sshd-session 10302 82359 1 0 3 0x88 kqread sshd 62571 437579 24750 74 3 0x1100092 bpf pflogd 24750 406765 1 0 3 0x80 sbwait pflogd 60454 141252 85626 73 7 0x1100010 syslogd 85626 478077 1 0 3 0x100082 sbwait syslogd 74597 182639 1 0 3 0x100080 kqread resolvd 92847 522901 4099 77 3 0x100092 kqread dhcpleased 76244 164003 4099 77 3 0x100092 kqread dhcpleased 4099 71468 1 0 3 0x80 kqread dhcpleased 63773 11508 0 0 3 0x14200 bored smr 32859 140812 0 0 3 0x14200 pgzero zerothread 76007 324703 0 0 3 0x14200 aiodoned aiodoned 8186 507654 0 0 3 0x14200 syncer update 13594 456977 0 0 3 0x14200 cleaner cleaner 7826 201279 0 0 3 0x14200 reaper reaper 11836 175179 0 0 3 0x14200 pgdaemon pagedaemon 2670 32027 0 0 3 0x14200 bored viomb 13996 121210 0 0 3 0x40014200 acpi0 acpi0 30731 458640 0 0 3 0x40014200 idle1 40571 152092 0 0 3 0x14200 bored softnet3 64871 117726 0 0 3 0x14200 bored softnet2 5658 349982 0 0 3 0x14200 bored softnet1 23845 383972 0 0 3 0x14200 bored softnet0 94960 288606 0 0 3 0x14200 bored systqmp 83269 130025 0 0 3 0x14200 bored systq 52248 441751 0 0 3 0x14200 tmoslp softclockmp 16658 391496 0 0 3 0x40014200 tmoslp softclock 26971 411855 0 0 3 0x40014200 idle0 1 204418 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &kq->kq_lock r = 0 (0xfffffd806f745448) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 kqueue_register+0x128c sys/kern/kern_event.c:1402 #4 pselregister+0x135 sys/kern/sys_generic.c:763 #5 dopselect+0x503 sys/kern/sys_generic.c:656 #6 sys_pselect+0x263 sys/kern/sys_generic.c:592 #7 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #7 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #8 Xsyscall+0x128 Process 60454 (syslogd) thread 0xffff8000ffffd450 (141252) exclusive rrwlock inode r = 0 (0xfffffd806e4dd3d0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vn_write+0x18d sys/kern/vfs_vnops.c:405 #6 dofilewritev+0x23c sys/kern/sys_generic.c:380 #7 sys_writev+0xd8 sys/kern/sys_generic.c:327 #8 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83561d10) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 vn_write+0x4e sys/kern/vfs_vnops.c:393 #2 dofilewritev+0x23c sys/kern/sys_generic.c:380 #3 sys_writev+0xd8 sys/kern/sys_generic.c:327 #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 10119K 10420K 166960K 11727 0 pcb 17 14K 16K 166960K 149 0 rtable 213 6K 7K 166960K 875 0 pf 37 18K 22K 166960K 102 0 ifaddr 43 7K 8K 166960K 126 0 ifgroup 55 2K 2K 166960K 137 0 sysctl 1 0K 1K 166960K 2 0 counters 64 36K 36K 166960K 112 0 ioctlops 0 0K 4K 166960K 1521 0 iov 0 0K 16K 166960K 22 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1398 88K 88K 166960K 1834 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 17 61K 93K 166960K 720 0 sigio 0 0K 0K 166960K 2 0 proc 72 91K 140K 166960K 1042 0 subproc 104 6K 6K 166960K 312 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 70 0 in_multi 96 7K 7K 166960K 294 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 610 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 253 74K 94K 166960K 7444 0 UVM aobj 45 2K 2K 166960K 46 0 pinsyscall 42 84K 106K 166960K 2237 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 22 0 NDP 12 0K 2K 166960K 86 0 temp 76 6820K 6886K 166960K 30538 0 kqueue 14 22K 28K 166960K 90 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 121 0 118 2 1 1 2 0 8 0 rtentry 112 299 0 201 4 0 4 4 0 8 0 unpcb 144 309 0 290 3 0 3 3 0 8 2 syncache 336 9 0 9 4 3 1 1 0 8 1 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 808 219 0 211 10 2 8 8 0 8 6 arp 120 52 0 34 1 0 1 1 0 8 0 inpcb 336 844 0 828 12 5 7 7 0 8 4 nd6 136 77 0 52 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 2 1 1 0 8 1 kcovpl 48 24 0 16 1 0 1 1 0 8 0 ppxss 1168 7 0 7 3 2 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 1 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 2 0 0 1 0 1 1 0 8 0 pfstitem 24 75 0 38 1 0 1 1 0 8 0 pfstkey 128 77 0 40 2 0 2 2 0 8 0 pfstate 376 76 0 39 5 0 5 5 0 8 0 pfrule 1344 26 0 20 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1214 0 790 31 2 29 29 0 8 1 art_table 32 1215 0 790 4 0 4 4 0 8 0 art_node 16 298 0 211 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 2 0 1 1 0 1 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 43 0 1 2 0 2 2 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2200 0 659 97 0 97 97 0 8 0 ffsino 272 2200 0 659 103 0 103 103 0 8 0 nchpl 144 2943 0 2367 63 40 23 63 0 8 0 uvmvnodes 80 2664 0 0 55 0 55 55 0 8 0 vnodes 216 2664 0 0 148 0 148 148 0 8 0 namei 1024 10895 0 10895 5 4 1 2 0 8 1 percpumem 16 70 0 24 1 0 1 1 0 8 0 kstatmem 264 72 0 48 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 17037 0 17037 10 8 2 8 1 8 2 plimitpl 152 197 0 178 1 0 1 1 0 8 0 sigapl 424 1015 0 944 9 0 9 9 0 8 0 futexpl 64 5602 0 5597 3 2 1 1 0 8 0 knotepl 120 580 0 0 17 0 17 17 0 8 0 kqueuepl 216 195 0 184 5 0 5 5 0 8 4 pipepl 320 191 0 164 3 0 3 3 0 8 0 fdescpl 496 975 0 944 6 1 5 5 0 8 0 filepl 152 4870 0 4610 18 5 13 14 0 8 2 lockfpl 104 134 0 129 1 0 1 1 0 8 0 lockfspl 48 57 0 53 1 0 1 1 0 8 0 sessionpl 144 44 0 35 1 0 1 1 0 8 0 pgrppl 48 69 0 52 1 0 1 1 0 8 0 ucredpl 104 582 0 568 1 0 1 1 0 8 0 zombiepl 144 947 0 944 1 0 1 1 0 8 0 processpl 1160 1015 0 944 6 0 6 6 0 8 0 procpl 648 1613 0 1533 8 0 8 8 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 664 1288 0 1250 15 6 9 9 0 8 4 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 250 0 0 32 0 32 32 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 367 0 0 22 0 22 22 0 8 0 bufpl 280 7614 0 1336 449 0 449 449 0 8 0 anonpl 24 237669 0 232605 90 8 82 89 0 185 42 amapchunkpl 152 24541 0 23935 45 6 39 45 0 158 13 amappl16 200 5647 0 5607 18 13 5 15 0 8 1 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 159 0 147 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 1885 0 1854 4 2 2 3 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 157 0 157 2 1 1 1 0 8 1 amappl8 136 21 0 18 1 0 1 1 0 8 0 amappl7 128 146 0 134 1 0 1 1 0 8 0 amappl6 120 329 0 327 1 0 1 1 0 8 0 amappl5 112 201 0 188 1 0 1 1 0 8 0 amappl4 104 386 0 367 1 0 1 1 0 8 0 amappl3 96 4526 0 4405 5 1 4 4 0 8 0 amappl2 88 955 0 884 2 0 2 2 0 8 0 amappl1 80 11381 0 10810 16 2 14 16 0 8 0 amappl 88 6892 0 6703 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 45 0 1 1 0 1 1 0 8 0 uaddrrnd 24 975 0 944 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 975 0 944 1 0 1 1 0 8 0 vmmpekpl 168 9978 0 9939 3 0 3 3 0 8 0 vmmpepl 168 70081 0 68178 103 14 89 97 0 357 3 vmsppl 440 974 0 944 6 2 4 5 0 8 0 rwobjpl 56 27004 0 23324 55 2 53 53 0 8 0 pdppl 4096 1957 0 1888 135 62 73 85 0 8 4 pvpl 32 47785 0 0 386 1 385 385 0 265 0 pmappl 248 974 0 944 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 465 0 82 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x78b18d9c42b0, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_const_cmp8(f4240,461a8a) at __sanitizer_cov_trace_const_cmp8+0x14 sys/dev/kcov.c:240 acpitimer_delay(1) at acpitimer_delay+0x120 sys/dev/acpi/acpitimer.c:122 comcnputc(800,2c) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(2c) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(2c) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff830922ce) at db_printf+0x9b fault(ffffffff8303e3c8) at fault+0xa7 sys/arch/amd64/amd64/trap.c:157 kpageflttrap(ffff80002a0684c0,ffff8000294d4bc2) at kpageflttrap+0x385 sys/arch/amd64/amd64/trap.c:290 kerntrap(ffff80002a0684c0) at kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b end trace frame: 0xffff80002a068780, count: 0 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_const_cmp8(f4240,461a8a) at __sanitizer_cov_trace_const_cmp8+0x14 sys/dev/kcov.c:240 acpitimer_delay(1) at acpitimer_delay+0x120 sys/dev/acpi/acpitimer.c:122 comcnputc(800,2c) at comcnputc+0x29b sys/dev/ic/com.c:1269 cnputc(2c) at cnputc+0x61 sys/dev/cons.c:218 db_putchar(2c) at db_putchar+0x65c sys/ddb/db_output.c:155 kprintf() at kprintf+0x2aba sys/kern/subr_prf.c:1065 db_printf(ffffffff830922ce) at db_printf+0x9b fault(ffffffff8303e3c8) at fault+0xa7 sys/arch/amd64/amd64/trap.c:157 kpageflttrap(ffff80002a0684c0,ffff8000294d4bc2) at kpageflttrap+0x385 sys/arch/amd64/amd64/trap.c:290 kerntrap(ffff80002a0684c0) at kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b memset() at memset+0x49 ffs_write(ffff80002a068860) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806e298998,ffff80002a068a80,3,fffffd807f7d3b60) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd80722161c8,ffff80002a068a80,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000ffffd450,e,ffff80002a068a80,0,ffff80002a068b40) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff8000ffffd450,ffff80002a068bf0,ffff80002a068b40) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002a068bf0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a068bf0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c34d5633990, count: -22