uvm_fault(0xfffffd807f00c168, 0x9f, 0, 2) -> e kernel: page fault trap, code=0 Stopped at wsmux_detach_sc+0xcc: movq %rcx,0(%rax) ddb{0}> ddb{0}> set $lines = 0 ddb{0}> show panic kernel page fault uvm_fault(0xfffffd807f00c168, 0x9f, 0, 2) -> e wsmux_detach_sc(ffff80000064dc00) at wsmux_detach_sc+0xcc sys/dev/wscons/wsmux.c:696 end trace frame: 0xffff800020c433e0, count: 0 ddb{0}> trace wsmux_detach_sc(ffff80000064dc00) at wsmux_detach_sc+0xcc sys/dev/wscons/wsmux.c:696 wsmouseopen(4400,9,2000,ffff800020b42bd0) at wsmouseopen+0xe9 sys/dev/wscons/wsmouse.c:325 spec_open(ffff800020c43460) at spec_open+0x217 sys/kern/spec_vnops.c:158 VOP_OPEN(fffffd807e7b2e80,9,fffffd807f7c7ae0,ffff800020b42bd0) at VOP_OPEN+0x76 sys/kern/vfs_vops.c:153vn_open(ffff800020c43650,9,0) at vn_open+0x4c6 doopenat(ffff800020b42bd0,ffffff9c,200000c0,8,0,ffff800020c43890) at doopenat+0x2be sys/kern/vfs_syscalls.c:1045 syscall(ffff800020c43940) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c43940) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffaf,0,4,4d347dfd010) at Xsyscall+0x128 end of kernel end trace frame: 0x4d58b07a490, count: -8 ddb{0}> show registers rdi 0xffffffff8116eb69 spllower+0x79 rsi 0x637 rbp 0xffff800020c43380 rbx 0 rdx 0x638 rcx 0xffffffffffffffff rax 0x9f r8 0 r9 0 r10 0xffff800020c37d20 r11 0x34a572b9bbd5fd7e r12 0xffff800000026db8 r13 0x1760 __ALIGN_SIZE+0x760 r14 0xffff80000064dc00 r15 0x1 rip 0xffffffff810ec4fc wsmux_detach_sc+0xcc cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff800020c43350 ss 0x10 wsmux_detach_sc+0xcc: movq %rcx,0(%rax) ddb{0}> show proc PROC (syz-executor.0) pid=333905 stat=onproc flags process=0 proc=4000000 pri=0, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020b42270,0xffffffff8235c6f0 process=0xffff800020b446a0 user=0xffff800020c3e000, vmspace=0xfffffd807f00c168 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88654 376657 78383 0 2 0 syz-executor.0 *88654 333905 78383 0 7 0x4000000 syz-executor.0 99555 366358 757 0 2 0 syz-executor.1 99555 77423 757 0 7 0x4000000 syz-executor.1 5437 166032 1 0 3 0x100083 ttyin getty 78383 251002 77671 0 3 0x82 nanosleep syz-executor.0 43824 496495 0 0 3 0x14200 bored sosplice 757 62743 77671 0 3 0x82 nanosleep syz-executor.1 77671 29956 34623 0 3 0x82 thrsleep syz-fuzzer 77671 203267 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 232636 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 474956 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 82269 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 158934 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 55201 34623 0 3 0x4000082 kqread syz-fuzzer 77671 16408 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 419402 34623 0 3 0x4000082 thrsleep syz-fuzzer 77671 471994 34623 0 3 0x4000082 thrsleep syz-fuzzer 34623 349091 53579 0 3 0x10008a pause ksh 53579 114566 58919 0 3 0x92 select sshd 58919 103039 1 0 3 0x80 select sshd 4220 508283 2991 73 2 0x100090 syslogd 2991 464983 1 0 3 0x100082 netio syslogd 16688 318016 1 77 3 0x100090 poll dhclient 22271 297842 1 0 3 0x80 poll dhclient 89685 329616 0 0 2 0x14200 zerothread 11221 257668 0 0 3 0x14200 aiodoned aiodoned 42558 518563 0 0 3 0x14200 syncer update 91059 178002 0 0 3 0x14200 cleaner cleaner 68120 395433 0 0 3 0x14200 reaper reaper 24271 113200 0 0 3 0x14200 pgdaemon pagedaemon 19070 156382 0 0 3 0x14200 bored crynlk 42241 173965 0 0 3 0x14200 bored crypto 77922 64438 0 0 3 0x40014200 acpi0 acpi0 60148 319681 0 0 3 0x40014200 idle1 90482 27538 0 0 3 0x14200 bored softnet 19727 490160 0 0 3 0x14200 bored systqmp 71887 130004 0 0 3 0x14200 bored systq 66039 61549 0 0 3 0x40014200 bored softclock 64027 352744 0 0 3 0x40014200 idle0 1 311293 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 88654 (syz-executor.0) thread 0xffff800020b42bd0 (333905) exclusive kernel_lock &kernel_lock r = 1 (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 pms_change_state+0x1d3 sys/dev/pckbc/pms.c:839 #8 pms_disable+0x39 sys/dev/pckbc/pms.c:874 #9 wsmouse_mux_close+0x3f sys/dev/wscons/wsmouse.c:571 #10 wsmux_detach_sc+0x9b sys/dev/wscons/wsmux.c:693 #11 wsmouseopen+0xe9 sys/dev/wscons/wsmouse.c:325 #12 spec_open+0x217 sys/kern/spec_vnops.c:158 #13 VOP_OPEN+0x76 sys/kern/vfs_vops.c:153 #14 vn_open+0x4c6 sys/kern/vfs_vnops.c:174 #15 doopenat+0x2be sys/kern/vfs_syscalls.c:1045 #16 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #16 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #17 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9508 6360K 6360K 78643K 10945 0 0 pcb 23 9K 11K 78643K 596 0 0 rtable 100 3K 4K 78643K 408 0 0 ifaddr 52 12K 13K 78643K 151 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 24 0 0 iov 0 0K 24K 78643K 105 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 76K 78643K 1937 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 0K 78643K 112 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 1119 0 0 sigio 0 0K 0K 78643K 10 0 0 proc 42 38K 70K 78643K 486 0 0 subproc 64 65538K 69634K 78643K 176 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 150 0 0 in_multi 33 2K 2K 78643K 119 0 0 ether_multi 1 0K 0K 78643K 6 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 230 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 87 20K 29K 78643K 4364 0 0 UVM aobj 81 3K 3K 78643K 88 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 25 0 0 NDP 10 0K 0K 78643K 45 0 0 temp 156 2367K 3002K 78643K 5955 0 0 kqueue 0 0K 0K 78643K 18 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 3 1 0 1 1 0 8 0 inpcbpl 280 515 0 508 1 0 1 1 0 8 0 plimitpl 152 27 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 68 0 28 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 174 0 170 1 0 1 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 16 0 16 7 6 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 308 0 123 12 0 12 12 0 8 0 art_table 32 309 0 123 2 0 2 2 0 8 0 art_node 16 67 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 7 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 110 0 100 1 0 1 1 0 8 0 shmpl 112 86 0 7 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3547 0 2137 46 0 46 46 0 8 0 ffsino 272 3547 0 2137 96 1 95 95 0 8 0 nchpl 144 5362 0 3751 61 0 61 61 0 8 0 uvmvnodes 72 3748 0 0 69 0 69 69 0 8 0 vnodes 200 3748 0 0 198 0 198 198 0 8 0 namei 1024 15566 0 15566 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 13579 0 13579 14 12 2 6 0 8 2 sigapl 432 1278 0 1264 2 0 2 2 0 8 0 futexpl 56 12359 0 12359 1 0 1 1 0 8 1 knotepl 112 395 0 368 3 2 1 2 0 8 0 kqueuepl 104 381 0 379 1 0 1 1 0 8 0 pipepl 112 876 0 855 4 3 1 2 0 8 0 fdescpl 488 1279 0 1264 3 1 2 3 0 8 0 filepl 152 7793 0 7694 7 2 5 5 0 8 1 lockfpl 104 400 0 399 2 1 1 1 0 8 0 lockfspl 32 664 0 663 2 1 1 1 0 8 0 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 37 0 27 1 0 1 1 0 8 0 ucredpl 96 2095 0 2088 1 0 1 1 0 8 0 zombiepl 144 1264 0 1264 2 1 1 1 0 8 1 processpl 840 1294 0 1264 4 0 4 4 0 8 0 procpl 600 3691 0 3650 4 0 4 4 0 8 0 srpgc 64 18 0 18 1 1 0 1 0 8 0 sosppl 128 27 0 27 6 5 1 1 0 8 1 sockpl 384 1051 0 1034 5 2 3 4 0 8 1 mcl64k 65536 511 0 0 64 13 51 64 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 114 0 0 14 1 13 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 585 0 0 37 0 37 37 0 8 0 bufpl 256 7168 0 1019 385 0 385 385 0 8 0 anonpl 16 138236 0 130617 97 53 44 48 0 125 11 amapchunkpl 152 7365 0 7274 18 10 8 9 0 158 3 amappl16 192 7205 0 6802 86 57 29 33 0 8 8 amappl15 184 8 0 6 1 0 1 1 0 8 0 amappl14 176 5 0 5 3 3 0 1 0 8 0 amappl13 168 32 0 29 1 0 1 1 0 8 0 amappl12 160 467 0 464 1 0 1 1 0 8 0 amappl11 152 191 0 182 1 0 1 1 0 8 0 amappl10 144 149 0 149 3 3 0 1 0 8 0 amappl9 136 359 0 356 1 0 1 1 0 8 0 amappl8 128 169 0 145 1 0 1 1 0 8 0 amappl7 120 48 0 40 1 0 1 1 0 8 0 amappl6 112 57 0 50 1 0 1 1 0 8 0 amappl5 104 130 0 119 1 0 1 1 0 8 0 amappl4 96 801 0 778 1 0 1 1 0 8 0 amappl3 88 641 0 634 1 0 1 1 0 8 0 amappl2 80 11539 0 11477 2 0 2 2 0 8 0 amappl1 72 36141 0 35708 24 14 10 19 0 8 0 amappl 72 3934 0 3898 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 87 0 7 2 0 2 2 0 8 0 uaddrrnd 24 1279 0 1264 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1279 0 1264 1 0 1 1 0 8 0 vmmpekpl 168 14662 0 14639 2 0 2 2 0 8 0 vmmpepl 168 141069 0 139639 131 60 71 75 0 357 7 vmsppl 360 1278 0 1264 2 0 2 2 0 8 0 pdppl 4096 2565 0 2528 6 1 5 6 0 8 0 pvpl 32 376211 0 365537 187 71 116 123 0 265 29 pmappl 224 1278 0 1264 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 628 0 19 18 0 18 18 0 8 0