uvm_fault(0xfffffd807f00c870, 0x8f, 0, 1) -> e kernel: page fault trap, code=0 Stopped at wsmuxclose+0x75: cmpq %r12,0x90(%r15) ddb{1}> ddb{1}> set $lines = 0 ddb{1}> show panic kernel page fault uvm_fault(0xfffffd807f00c870, 0x8f, 0, 1) -> e wsmuxclose(4501,1,2000,ffff800020b42270) at wsmuxclose+0x75 wsmux_do_close sys/dev/wscons/wsmux.c:307 [inline] wsmuxclose(4501,1,2000,ffff800020b42270) at wsmuxclose+0x75 sys/dev/wscons/wsmux.c:277 end trace frame: 0xffff800020c377d0, count: 0 ddb{1}> trace wsmuxclose(4501,1,2000,ffff800020b42270) at wsmuxclose+0x75 wsmux_do_close sys/dev/wscons/wsmux.c:307 [inline] wsmuxclose(4501,1,2000,ffff800020b42270) at wsmuxclose+0x75 sys/dev/wscons/wsmux.c:277 spec_close(ffff800020c377e0) at spec_close+0x3a0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd8071b0e3f8,1,fffffd807f7c79c0,ffff800020b42270) at VOP_CLOSE+0x70 sys/kern/vfs_vops.c:174 vn_closefile(fffffd806710f608,ffff800020b42270) at vn_closefile+0x160 vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd806710f608,ffff800020b42270) at vn_closefile+0x160 sys/kern/vfs_vnops.c:575 fdrop(fffffd806710f608,ffff800020b42270) at fdrop+0xe1 sys/kern/kern_descrip.c:1260 closef(fffffd806710f608,ffff800020b42270) at closef+0x129 sys/kern/kern_descrip.c:1244 fdrelease(ffff800020b42270,3) at fdrelease+0xd9 sys/kern/kern_descrip.c:744 sys_close(ffff800020b42270,ffff800020c37a98,ffff800020c37a80) at sys_close+0xae sys/kern/kern_descrip.c:762syscall(ffff800020c37b30) at syscall+0x5ac Xsyscall(6,0,ffffffffffffff0b,0,1,a6930c010d8) at Xsyscall+0x128 end of kernel end trace frame: 0xa6ba4271fd0, count: -10 ddb{1}> show registers rdi 0xffffffff810ec6b5 wsmuxclose+0x75 rsi 0x1d26 __ALIGN_SIZE+0xd26 rbp 0xffff800020c37760 rbx 0 rdx 0x1d27 __ALIGN_SIZE+0xd27 rcx 0xffff800000b47000 rax 0xffff800000b47000 r8 0xffffffff81316aa3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x60ff10afdc5997bc r12 0xffff800000026f00 r13 0 r14 0xffff800000026f50 r15 0xffffffffffffffff rip 0xffffffff810ec6b5 wsmuxclose+0x75 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020c37720 ss 0x10 wsmuxclose+0x75: cmpq %r12,0x90(%r15) ddb{1}> show proc PROC (syz-executor.0) pid=203736 stat=onproc flags process=0 proc=4000000 pri=0, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020b432d8,0xffffffff8235c6f0 process=0xffff800020b44010 user=0xffff800020c32000, vmspace=0xfffffd807f00c870 estcpu=26, cpticks=2, pctcpu=0.96 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12625 298316 89956 0 2 0 syz-executor.0 12625 49829 89956 0 3 0x4000080 fsleep syz-executor.0 *12625 203736 89956 0 7 0x4000000 syz-executor.0 70603 146273 1 0 3 0x100083 ttyin getty 99710 456785 8866 0 2 0x2 syz-executor.1 29910 377631 0 0 3 0x14200 bored sosplice 89956 465091 8866 0 2 0x482 syz-executor.0 8866 235550 46125 0 3 0x82 thrsleep syz-fuzzer 8866 283672 46125 0 7 0x4000482 syz-fuzzer 8866 435155 46125 0 2 0x4000482 syz-fuzzer 8866 109764 46125 0 3 0x4000082 thrsleep syz-fuzzer 8866 375806 46125 0 3 0x4000082 thrsleep syz-fuzzer 8866 305773 46125 0 3 0x4000082 thrsleep syz-fuzzer 8866 213144 46125 0 3 0x4000082 kqread syz-fuzzer 8866 168843 46125 0 3 0x4000082 thrsleep syz-fuzzer 8866 40947 46125 0 3 0x4000082 thrsleep syz-fuzzer 8866 446146 46125 0 3 0x4000082 thrsleep syz-fuzzer 46125 21808 90114 0 3 0x10008a pause ksh 90114 198234 44050 0 3 0x92 select sshd 44050 82148 1 0 3 0x80 select sshd 45423 76239 74588 73 2 0x100090 syslogd 74588 491840 1 0 3 0x100082 netio syslogd 40503 478585 1 77 3 0x100090 poll dhclient 13046 302221 1 0 3 0x80 poll dhclient 64105 415468 0 0 3 0x14200 pgzero zerothread 95001 127100 0 0 3 0x14200 aiodoned aiodoned 25378 207205 0 0 2 0x14200 update 53306 166842 0 0 3 0x14200 cleaner cleaner 99964 358044 0 0 3 0x14200 reaper reaper 862 360464 0 0 3 0x14200 pgdaemon pagedaemon 52634 338888 0 0 3 0x14200 bored crynlk 1084 139505 0 0 3 0x14200 bored crypto 71597 492670 0 0 3 0x40014200 acpi0 acpi0 31522 395523 0 0 3 0x40014200 idle1 54984 328200 0 0 3 0x14200 bored softnet 94266 232179 0 0 2 0x14200 systqmp 98717 20195 0 0 3 0x14200 bored systq 7999 339269 0 0 3 0x40014200 bored softclock 26328 201058 0 0 3 0x40014200 idle0 1 207925 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12625 (syz-executor.0) thread 0xffff800020b42270 (203736) exclusive kernel_lock &kernel_lock r = 2 (0xffffffff82348720) locked @ /syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/trap.c:161 #0 witness_lock+0x58a sys/kern/subr_witness.c:1205 #1 ___mp_acquire_count+0x67 sys/kern/kern_lock.c:231 #2 mi_switch+0x3b0 sys/kern/sched_bsd.c:436 #3 sleep_finish+0x110 sys/kern/kern_synch.c:312 #4 sleep_finish_all+0x34 sleep_finish_timeout sys/kern/kern_synch.c:336 [inline] #4 sleep_finish_all+0x34 sys/kern/kern_synch.c:157 #5 tsleep+0x1bc #6 pckbc_enqueue_cmd+0x29d sys/dev/ic/pckbc.c:923 #7 pckbd_enable+0x125 sys/dev/pckbc/pckbd.c:481 #8 wskbd_mux_close+0x98 sys/dev/wscons/wskbd.c:891 #9 wsmuxclose+0xb5 wsmux_do_close sys/dev/wscons/wsmux.c:313 [inline] #9 wsmuxclose+0xb5 sys/dev/wscons/wsmux.c:277 #10 spec_close+0x3a0 sys/kern/spec_vnops.c:553 #11 VOP_CLOSE+0x70 sys/kern/vfs_vops.c:174 #12 vn_closefile+0x160 vn_close sys/kern/vfs_vnops.c:289 [inline] #12 vn_closefile+0x160 sys/kern/vfs_vnops.c:575 #13 fdrop+0xe1 sys/kern/kern_descrip.c:1260 #14 closef+0x129 sys/kern/kern_descrip.c:1244 #15 fdrelease+0xd9 sys/kern/kern_descrip.c:744 #16 sys_close+0xae sys/kern/kern_descrip.c:762 #17 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #17 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #18 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9520 6372K 6372K 78643K 11069 0 0 pcb 23 9K 11K 78643K 728 0 0 rtable 100 3K 4K 78643K 710 0 0 ifaddr 57 13K 14K 78643K 232 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 35 0 0 iov 0 0K 24K 78643K 138 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1193 75K 75K 78643K 2285 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 20 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 163 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 5 13K 25K 78643K 1517 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 42 38K 70K 78643K 658 0 0 subproc 64 65538K 67586K 78643K 442 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 190 0 0 in_multi 33 2K 2K 78643K 238 0 0 ether_multi 1 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 335 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 91 21K 30K 78643K 5848 0 0 UVM aobj 54 2K 2K 78643K 61 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 48 0 0 NDP 11 0K 0K 78643K 78 0 0 temp 162 2363K 2429K 78643K 7454 0 0 kqueue 0 0K 0K 78643K 11 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 15 0 11 1 0 1 1 0 8 0 inpcbpl 280 680 0 673 1 0 1 1 0 8 0 plimitpl 152 59 0 52 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 140 0 100 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 244 0 240 1 0 1 1 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 ppxss 1128 20 0 20 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 667 0 479 12 0 12 12 0 8 0 art_table 32 668 0 479 2 0 2 2 0 8 0 art_node 16 139 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 12 4 3 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 161 0 151 1 0 1 1 0 8 0 shmpl 112 59 0 7 3 1 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4256 0 2838 46 0 46 46 0 8 0 ffsino 272 4256 0 2838 95 0 95 95 0 8 0 nchpl 144 6600 0 4988 61 0 61 61 0 8 0 uvmvnodes 72 4609 0 0 84 0 84 84 0 8 0 vnodes 200 4609 0 0 243 0 243 243 0 8 0 namei 1024 20549 0 20549 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 17665 0 17665 10 9 1 5 0 8 1 sigapl 432 1653 0 1640 2 0 2 2 0 8 0 futexpl 56 15466 0 15465 1 0 1 1 0 8 0 knotepl 112 590 0 563 4 3 1 2 0 8 0 kqueuepl 104 490 0 488 1 0 1 1 0 8 0 pipepl 112 1166 0 1147 3 2 1 2 0 8 0 fdescpl 488 1654 0 1640 3 1 2 3 0 8 0 filepl 152 10589 0 10492 9 4 5 7 0 8 1 lockfpl 104 594 0 594 5 4 1 1 0 8 1 lockfspl 32 972 0 972 5 4 1 1 0 8 1 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 46 0 36 1 0 1 1 0 8 0 ucredpl 96 3110 0 3103 1 0 1 1 0 8 0 zombiepl 144 1640 0 1640 2 1 1 1 0 8 1 processpl 840 1669 0 1640 4 0 4 4 0 8 0 procpl 600 5010 0 4970 4 0 4 4 0 8 0 srpgc 64 66 0 66 1 1 0 1 0 8 0 sosppl 128 22 0 22 7 6 1 1 0 8 1 sockpl 384 1366 0 1349 7 4 3 4 0 8 1 mcl64k 65536 511 0 0 64 0 64 64 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 109 0 0 12 0 12 12 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 672 0 0 37 0 37 37 0 8 0 bufpl 256 7634 0 1025 414 0 414 414 0 8 0 anonpl 16 178701 0 170807 82 33 49 49 0 125 14 amapchunkpl 152 10252 0 10167 30 21 9 9 0 158 4 amappl16 192 8536 0 8119 69 39 30 33 0 8 8 amappl15 184 1066 0 1064 1 0 1 1 0 8 0 amappl14 176 386 0 384 2 1 1 1 0 8 0 amappl13 168 56 0 52 1 0 1 1 0 8 0 amappl12 160 13 0 13 2 2 0 1 0 8 0 amappl11 152 228 0 219 1 0 1 1 0 8 0 amappl10 144 750 0 746 2 1 1 1 0 8 0 amappl9 136 330 0 326 1 0 1 1 0 8 0 amappl8 128 233 0 204 2 1 1 2 0 8 0 amappl7 120 65 0 58 1 0 1 1 0 8 0 amappl6 112 83 0 71 1 0 1 1 0 8 0 amappl5 104 1292 0 1280 1 0 1 1 0 8 0 amappl4 96 304 0 278 2 1 1 2 0 8 0 amappl3 88 189 0 184 1 0 1 1 0 8 0 amappl2 80 14796 0 14743 2 0 2 2 0 8 0 amappl1 72 44605 0 44182 24 14 10 19 0 8 0 amappl 72 5316 0 5283 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 60 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1654 0 1640 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1654 0 1640 1 0 1 1 0 8 0 vmmpekpl 168 17994 0 17974 2 0 2 2 0 8 0 vmmpepl 168 184140 0 182768 122 47 75 76 0 357 10 vmsppl 360 1653 0 1640 2 0 2 2 0 8 0 pdppl 4096 3315 0 3280 6 1 5 6 0 8 0 pvpl 32 502365 0 490962 207 80 127 127 0 265 35 pmappl 224 1653 0 1640 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 653 0 4 19 0 19 19 0 8 0