*cpu1: uvm_fault(0xffffee006cef93e8, 0x98, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x776f253fbb50, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002c3b1110 rbx 0 rdx 0 rcx 0xffff80003c3ec2c0 rax 0x33 r8 0xffff80002c3b1040 r9 0 r10 0x9c867c2de0326c7f r11 0xc63c901536a34185 r12 0 r13 0 r14 0xffff80003c3ec2c0 r15 0 rip 0xffffffff815e33ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80002c3b1090 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb{0}> show proc PROC (syz-executor) tid=35827 pid=2221 tcnt=1 stat=onproc flags process=0 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c3ec028,0xffff80003c3ed790 process=0xffff800045feb9d8 user=0xffff80002c3ac000, vmspace=0xffffee006cd2b3f0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 2304 109023 71076 0 2 0x40 0 syz-executor * 2221 35827 71304 0 7 0 0 syz-executor 88987 235258 26123 0 2 0 0 syz-executor 88987 273934 26123 0 3 0 0x4000080 fsleep syz-executor 88987 493426 26123 0 3 0 0x4000080 fsleep syz-executor 17153 123181 66541 0 2 0 0 syz-executor 17153 393697 66541 0 3 0 0x4000080 fsleep syz-executor 17153 418353 66541 0 3 0 0x4000080 fsleep syz-executor 26546 301983 67180 0 2 0 0 syz-executor 26546 231028 67180 0 3 0 0x4000080 fsleep syz-executor 26546 468288 67180 0 2 0 0x4000000 syz-executor 14191 44500 63934 0 2 0 0 syz-executor 14191 269409 63934 0 2 0 0x4000000 syz-executor 60599 342898 58496 0 2 0 0 syz-executor 60599 355369 58496 0 7 0 0x4000000 syz-executor 60599 183013 58496 0 3 0 0x4000080 fsleep syz-executor 60599 99799 58496 0 3 0 0x4000080 fsleep syz-executor 7056 131125 41690 0 3 0 0x80 nanoslp syz-executor 7056 78941 41690 0 3 0 0x4000080 fsleep syz-executor 7056 276471 41690 0 3 0 0x4000080 fsleep syz-executor 7056 412292 41690 0 3 0 0x4000080 kqread syz-executor 71076 230579 29498 0 3 0x82 0 ppwait syz-executor 56701 128430 0 0 3 0x14000 0x200 acct acct 26123 330144 29498 0 3 0x2 0x80 nanoslp syz-executor 66541 246073 29498 0 3 0x2 0x80 nanoslp syz-executor 67180 14170 29498 0 3 0x2 0x80 nanoslp syz-executor 63934 182970 29498 0 3 0x2 0x80 nanoslp syz-executor 58496 471598 29498 0 3 0x2 0x80 nanoslp syz-executor 71304 222395 29498 0 3 0x2 0x80 nanoslp syz-executor 41690 305227 29498 0 3 0x2 0x80 nanoslp syz-executor 29498 27898 27866 0 3 0x2 0x80 kqread syz-executor 27866 260992 49636 0 3 0x100002 0x88 sigsusp ksh 49636 489227 30455 0 3 0x10 0x88 kqread sshd-session 30455 145692 95352 0 3 0x12 0x80 kqread sshd-session 37200 346978 1 0 3 0x100003 0x80 ttyin getty 95352 174156 1 0 3 0 0x88 kqread sshd 47693 11381 94436 74 3 0x1100012 0x80 bpf pflogd 94436 121266 1 0 3 0 0x80 sbwait pflogd 37079 377177 15076 73 3 0x1100010 0x80 kqread syslogd 15076 145394 1 0 3 0x100002 0x80 sbwait syslogd 81981 440439 1 0 3 0x100000 0x80 kqread resolvd 98818 418858 92700 77 3 0x100012 0x80 kqread dhcpleased 14072 492286 92700 77 3 0x100012 0x80 kqread dhcpleased 92700 401293 1 0 3 0 0x80 kqread dhcpleased 6289 336227 0 0 3 0x14000 0x200 bored smr 36821 425342 0 0 2 0x14000 0x200 zerothread 38908 490434 0 0 3 0x14000 0x200 aiodoned aiodoned 29446 16259 0 0 3 0x14000 0x200 syncer update 41022 320364 0 0 3 0x14000 0x200 cleaner cleaner 97652 207250 0 0 3 0x14000 0x200 reaper reaper 7714 216105 0 0 3 0x14000 0x200 pgdaemon pagedaemon 64326 258459 0 0 3 0x14000 0x200 bored viomb 77045 333126 0 0 3 0x14000 0x40000200 acpi0 acpi0 21864 375618 0 0 3 0x14000 0x40000200 idle1 94383 153339 0 0 3 0x14000 0x200 bored softnet1 26324 9433 0 0 3 0x14000 0x200 bored softnet0 90710 199400 0 0 3 0x14000 0x200 bored systqmp 59457 520166 0 0 3 0x14000 0x200 bored systq 16582 100458 0 0 3 0x14000 0x200 tmoslp softclockmp 28214 168653 0 0 3 0x14000 0x40000200 tmoslp softclock 77025 498319 0 0 3 0x14000 0x40000200 idle0 1 168599 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &newfdp->fd_fd.fd_fplock r = 0 (0xffff800045fec6e0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 fdrelease+0x8e fd_getfile sys/kern/kern_descrip.c:238 [inline] #2 fdrelease+0x8e sys/kern/kern_descrip.c:754 #3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #4 Xsyscall+0x128 Process 2221 (syz-executor) thread 0xffff80003c3ec2c0 (35827) exclusive rwlock fdlock r = 0 (0xffff800045fec6a0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 sys_close+0xd0 sys/kern/kern_descrip.c:779 #3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #4 Xsyscall+0x128 exclusive mutex &newfdp->fd_fd.fd_fplock r = 0 (0xffff800045fec6e0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 fdrelease+0x8e fd_getfile sys/kern/kern_descrip.c:238 [inline] #2 fdrelease+0x8e sys/kern/kern_descrip.c:754 #3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #4 Xsyscall+0x128 Process 60599 (syz-executor) thread 0xffff800045fe6550 (355369) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83b2de00) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11065 12089K 12290K 166960K 12348 0 pcb 17 16K 21K 166960K 167 0 rtable 205 14K 15K 166960K 514 0 pf 37 18K 19K 166960K 70 0 ifaddr 38 6K 7K 166960K 69 0 ifgroup 59 2K 2K 166960K 93 0 sysctl 4 1K 9K 166960K 11 0 counters 72 37K 37K 166960K 90 0 ioctlops 0 0K 4K 166960K 1571 0 iov 0 0K 16K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1354 85K 86K 166960K 1771 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 89K 166960K 407 0 sigio 0 0K 0K 166960K 2 0 proc 74 131K 164K 166960K 700 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 18 0 in_multi 77 5K 6K 166960K 148 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 452 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 159K 168K 166960K 5180 0 UVM aobj 10 2K 2K 166960K 10 0 pinsyscall 43 86K 102K 166960K 1675 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 13 0K 2K 166960K 46 0 temp 75 9128K 9171K 166960K 15854 0 kqueue 14 22K 28K 166960K 56 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 28 0 0 1 0 1 1 0 8 0 rtpcb 120 50 0 47 1 0 1 1 0 8 0 rtentry 176 159 0 71 6 0 6 6 0 8 1 unpcb 144 129 0 112 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 27 0 23 1 0 1 1 0 8 0 arp 136 26 0 12 1 0 1 1 0 8 0 inpcb 328 423 0 416 10 1 9 10 0 8 8 nd6 152 40 0 22 1 0 1 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1192 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfosfp 40 1429 0 1428 5 1 4 5 0 8 3 pfosfpen 112 1429 0 1428 21 1 20 21 0 8 19 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 16 0 1 1 0 1 1 0 8 0 pfstkey 128 18 0 3 1 0 1 1 0 8 0 pfstate 448 17 0 2 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 645 0 281 29 0 29 29 0 8 3 art_table 40 646 0 281 5 0 5 5 0 8 0 art_node 32 159 0 79 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semapl 72 2 0 1 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1947 0 472 93 0 93 93 0 8 0 ffsino 296 1947 0 472 114 0 114 114 0 8 0 nchpl 144 2437 0 719 64 0 64 64 0 8 0 vnodes 216 2364 0 0 132 0 132 132 0 8 0 namei 1024 8575 0 8575 2 1 1 2 0 8 1 percpumem 16 61 0 9 1 0 1 1 0 8 0 kstatmem 264 49 0 18 3 0 3 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 10277 0 10277 4 3 1 3 1 8 1 plimitpl 152 123 0 104 1 0 1 1 0 8 0 sigapl 424 715 0 666 7 1 6 7 0 8 0 knotepl 120 514 0 0 16 0 16 16 0 8 0 kqueuepl 224 68 0 57 1 0 1 1 0 8 0 pipepl 344 152 0 125 3 0 3 3 0 8 0 fdescpl 528 698 0 666 3 0 3 3 0 8 0 filepl 160 3508 0 3286 17 0 17 17 0 8 7 lockfpl 104 113 0 109 1 0 1 1 0 8 0 lockfspl 48 48 0 44 1 0 1 1 0 8 0 sessionpl 144 35 0 26 1 0 1 1 0 8 0 pgrppl 48 50 0 33 1 0 1 1 0 8 0 ucredpl 104 378 0 365 1 0 1 1 0 8 0 zombiepl 144 666 0 666 1 0 1 1 0 8 1 processpl 1232 715 0 666 5 1 4 5 0 8 0 procpl 664 1064 0 1002 6 0 6 6 0 8 0 sockpl 752 614 0 587 14 3 11 14 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 147 0 0 10 0 10 10 0 8 0 bufpl 272 3901 0 107 253 0 253 253 0 8 0 anonpl 32 7545 0 0 61 0 61 61 0 247 0 amapchunkpl 152 15275 0 14811 25 0 25 25 0 158 5 amappl16 200 2347 0 2321 18 7 11 15 0 8 9 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 483 0 481 1 0 1 1 0 8 0 amappl13 176 161 0 148 1 0 1 1 0 8 0 amappl12 168 1025 0 996 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 65 0 50 1 0 1 1 0 8 0 amappl9 144 277 0 277 1 1 0 1 0 8 0 amappl8 136 115 0 113 1 0 1 1 0 8 0 amappl7 128 155 0 141 1 0 1 1 0 8 0 amappl6 120 217 0 216 1 0 1 1 0 8 0 amappl5 112 99 0 88 1 0 1 1 0 8 0 amappl4 104 297 0 276 1 0 1 1 0 8 0 amappl3 96 2777 0 2685 3 0 3 3 0 8 0 amappl2 88 799 0 722 2 0 2 2 0 8 0 amappl1 80 11786 0 11187 14 0 14 14 0 8 1 amappl 88 4359 0 4204 4 0 4 4 0 92 0 uvmvnodes 80 102 0 0 3 0 3 3 0 8 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 698 0 666 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 698 0 666 1 0 1 1 0 8 0 vmmpekpl 168 7447 0 7403 3 0 3 3 0 8 0 vmmpepl 168 53048 0 51115 96 0 96 96 0 357 10 vmsppl 488 697 0 666 5 0 5 5 0 8 0 rwobjpl 80 18053 0 17022 27 0 27 27 0 8 1 pdppl 4096 1403 0 1332 101 28 73 83 0 8 2 pvpl 32 14632 0 0 119 1 118 118 0 265 0 pmappl 256 697 0 666 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 525 0 33 15 0 15 15 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace savectx() at savectx+0xae end of kernel end trace frame: 0x776f253fbb50, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 x86_bus_space_io_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:682 acpitimer_delay(1) at acpitimer_delay+0x76 acpitimer_read sys/dev/acpi/acpitimer.c:142 [inline] acpitimer_delay(1) at acpitimer_delay+0x76 sys/dev/acpi/acpitimer.c:120 comcnputc(800,6e) at comcnputc+0x29b sys/dev/ic/com.c:1274 cnputc(6e) at cnputc+0x67 sys/dev/cons.c:218 db_putchar(6e) at db_putchar+0x36d sys/ddb/db_output.c:155 kprintf() at kprintf+0x223 sys/kern/subr_prf.c:723 db_printf(ffffffff8354ca01) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,0,ffff80002a2bbf40) at db_ktrap+0xe3 db_printtrap sys/arch/amd64/amd64/db_interface.c:99 [inline] db_ktrap(6,0,ffff80002a2bbf40) at db_ktrap+0xe3 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff80002a2bbf40) at kerntrap+0x243 sys/arch/amd64/amd64/trap.c:519 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dovutimens(ffff800045fe6550,ffffee0062305950,ffff80002a2bc120) at dovutimens+0x368 sys/kern/vfs_syscalls.c:2691 end trace frame: 0xffff80002a2bc190, count: 0 ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 x86_bus_space_io_read_4(b008,0) at x86_bus_space_io_read_4+0x37 sys/arch/amd64/amd64/bus_space.c:682 acpitimer_delay(1) at acpitimer_delay+0x76 acpitimer_read sys/dev/acpi/acpitimer.c:142 [inline] acpitimer_delay(1) at acpitimer_delay+0x76 sys/dev/acpi/acpitimer.c:120 comcnputc(800,6e) at comcnputc+0x29b sys/dev/ic/com.c:1274 cnputc(6e) at cnputc+0x67 sys/dev/cons.c:218 db_putchar(6e) at db_putchar+0x36d sys/ddb/db_output.c:155 kprintf() at kprintf+0x223 sys/kern/subr_prf.c:723 db_printf(ffffffff8354ca01) at db_printf+0x9b sys/kern/subr_prf.c:-1 db_ktrap(6,0,ffff80002a2bbf40) at db_ktrap+0xe3 db_printtrap sys/arch/amd64/amd64/db_interface.c:99 [inline] db_ktrap(6,0,ffff80002a2bbf40) at db_ktrap+0xe3 sys/arch/amd64/amd64/db_interface.c:128 kerntrap(ffff80002a2bbf40) at kerntrap+0x243 sys/arch/amd64/amd64/trap.c:519 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b dovutimens(ffff800045fe6550,ffffee0062305950,ffff80002a2bc120) at dovutimens+0x368 sys/kern/vfs_syscalls.c:2691 sys_futimes(ffff800045fe6550,ffff80002a2bc270,ffff80002a2bc1c0) at sys_futimes+0x208 sys/kern/vfs_syscalls.c:2733 syscall(ffff80002a2bc270) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2bc270) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1c8096d2cd0, count: -17