uvm_fault(0xfffffd807f00cb40, 0x9f, 0, 2) -> e kernel: page fault trap, code=0 Stopped at wsmux_detach_sc+0xcc: movq %rcx,0(%rax) ddb{1}> ddb{1}> set $lines = 0 ddb{1}> show panic kernel page fault uvm_fault(0xfffffd807f00cb40, 0x9f, 0, 2) -> e wsmux_detach_sc(ffff80000064dc00) at wsmux_detach_sc+0xcc sys/dev/wscons/wsmux.c:696 end trace frame: 0xffff800020c3adf0, count: 0 ddb{1}> trace wsmux_detach_sc(ffff80000064dc00) at wsmux_detach_sc+0xcc sys/dev/wscons/wsmux.c:696 wsmouseopen(4400,1,2000,ffff800020b42bd0) at wsmouseopen+0xe9 sys/dev/wscons/wsmouse.c:325 spec_open(ffff800020c3ae70) at spec_open+0x217 sys/kern/spec_vnops.c:158 VOP_OPEN(fffffd8078f0ba08,1,fffffd807f7c79c0,ffff800020b42bd0) at VOP_OPEN+0x76 sys/kern/vfs_vops.c:153vn_open(ffff800020c3b060,1,160) at vn_open+0x4c6 doopenat(ffff800020b42bd0,ffffff9c,20000040,0,160,ffff800020c3b2a0) at doopenat+0x2be sys/kern/vfs_syscalls.c:1045 syscall(ffff800020c3b350) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3b350) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffa9,0,3,f6b4e6ea0d8) at Xsyscall+0x128 end of kernel end trace frame: 0xf6d7db49100, count: -8 ddb{1}> show registers rdi 0xffffffff8116eb69 spllower+0x79 rsi 0xa68 rbp 0xffff800020c3ad90 rbx 0 rdx 0xa69 rcx 0xffffffffffffffff rax 0x9f r8 0xffffffff814bb755 setrunnable+0x95 r9 0x5 r10 0x4 r11 0xbeb56372b6d3a5e3 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 0xffff800020c3ad60 ss 0x10 wsmux_detach_sc+0xcc: movq %rcx,0(%rax) ddb{1}> show proc PROC (syz-executor.0) pid=117985 stat=onproc flags process=0 proc=4000000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b42270,0xffffffff8235c6f0 process=0xffff800020b449e8 user=0xffff800020c36000, vmspace=0xfffffd807f00cb40 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19534 235194 61870 0 7 0 syz-executor.0 19534 522379 61870 0 2 0x4000000 syz-executor.0 *19534 117985 61870 0 7 0x4000000 syz-executor.0 81654 62096 0 0 3 0x14200 bored sosplice 99346 185317 46494 0 3 0x2 biowait syz-executor.1 61870 458420 46494 0 3 0x82 nanosleep syz-executor.0 46494 171111 15761 0 3 0x82 thrsleep syz-fuzzer 46494 390868 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 341694 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 276966 15761 0 3 0x4000082 kqread syz-fuzzer 46494 512161 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 156692 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 96096 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 317154 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 335311 15761 0 3 0x4000082 thrsleep syz-fuzzer 46494 345976 15761 0 3 0x4000082 thrsleep syz-fuzzer 15761 352872 85264 0 3 0x10008a pause ksh 85264 47963 95230 0 3 0x92 select sshd 46707 468195 1 0 3 0x100083 ttyin getty 95230 185086 1 0 3 0x80 select sshd 64838 442077 85230 73 2 0x100090 syslogd 85230 185917 1 0 3 0x100082 netio syslogd 88923 329105 1 77 3 0x100090 poll dhclient 22102 439630 1 0 3 0x80 poll dhclient 31778 282261 0 0 3 0x14200 pgzero zerothread 25247 227077 0 0 3 0x14200 aiodoned aiodoned 35118 142175 0 0 3 0x14200 syncer update 16465 266838 0 0 3 0x14200 cleaner cleaner 18856 457083 0 0 3 0x14200 reaper reaper 94489 86127 0 0 3 0x14200 pgdaemon pagedaemon 58574 21706 0 0 3 0x14200 bored crynlk 83118 299893 0 0 3 0x14200 bored crypto 88388 364774 0 0 3 0x40014200 acpi0 acpi0 88402 500249 0 0 3 0x40014200 idle1 52898 159990 0 0 3 0x14200 bored softnet 80712 354819 0 0 3 0x14200 bored systqmp 81274 240982 0 0 3 0x14200 bored systq 40009 343617 0 0 3 0x40014200 bored softclock 83651 35404 0 0 3 0x40014200 idle0 1 406264 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 19534 (syz-executor.0) thread 0xffff800020b42bd0 (117985) 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 Process 99346 (syz-executor.1) thread 0xffff800020b24008 (185317) exclusive rrwlock inode r = 0 (0xfffffd806e4ffe68) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_ihash.c:140 #0 witness_lock+0x58a sys/kern/subr_witness.c:1205 #1 _rw_enter+0x44d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 ufs_ihashins+0x67 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13d sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1c3 sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0x10f sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0x76 sys/kern/vfs_vops.c:445 #8 domkdirat+0x12d sys/kern/vfs_syscalls.c:2881 #9 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #9 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806a1f3b38) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x58a sys/kern/subr_witness.c:1205 #1 _rw_enter+0x44d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:598 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387 #6 namei+0x4b2 sys/kern/vfs_lookup.c:224 #7 domkdirat+0x81 sys/kern/vfs_syscalls.c:2866 #8 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9490 6362K 6362K 78643K 10698 0 0 pcb 23 9K 10K 78643K 244 0 0 rtable 100 3K 4K 78643K 212 0 0 ifaddr 46 11K 12K 78643K 69 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 19 0 0 iov 0 0K 12K 78643K 19 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 76K 77K 78643K 1425 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 16 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 37 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 5 13K 25K 78643K 400 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 42 38K 70K 78643K 318 0 0 subproc 64 65538K 69634K 78643K 84 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 92 0 0 in_multi 33 2K 2K 78643K 61 0 0 ether_multi 1 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 213 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 86 20K 21K 78643K 2013 0 0 UVM aobj 30 2K 2K 78643K 32 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 2 0 0 NDP 8 0K 0K 78643K 18 0 0 temp 130 2359K 2423K 78643K 3839 0 0 kqueue 0 0K 0K 78643K 6 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 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 212 0 205 1 0 1 1 0 8 0 plimitpl 152 14 0 7 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 19 0 19 1 1 0 1 0 8 0 tcpcb 544 77 0 73 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 5 0 5 2 2 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 4 1 0 1 1 0 8 0 semapl 112 33 0 23 1 0 1 1 0 8 0 shmpl 112 30 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2145 0 735 46 0 46 46 0 8 0 ffsino 272 2145 0 735 95 0 95 95 0 8 0 nchpl 144 2934 0 1312 61 0 61 61 0 8 0 uvmvnodes 72 2239 0 0 41 0 41 41 0 8 0 vnodes 200 2239 0 0 118 0 118 118 0 8 0 namei 1024 7710 0 7709 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 6931 0 6930 8 7 1 5 0 8 0 sigapl 432 567 0 554 2 0 2 2 0 8 0 futexpl 56 4106 0 4106 1 0 1 1 0 8 1 knotepl 112 163 0 136 2 1 1 2 0 8 0 kqueuepl 104 104 0 102 1 0 1 1 0 8 0 pipepl 112 338 0 315 2 1 1 1 0 8 0 fdescpl 488 568 0 554 3 1 2 3 0 8 0 filepl 152 3103 0 3002 6 1 5 5 0 8 1 lockfpl 104 107 0 107 2 1 1 1 0 8 1 lockfspl 32 150 0 150 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 543 0 536 1 0 1 1 0 8 0 zombiepl 144 554 0 554 2 1 1 1 0 8 1 processpl 840 583 0 554 4 0 4 4 0 8 0 procpl 600 1432 0 1392 4 0 4 4 0 8 0 sosppl 128 9 0 9 2 1 1 1 0 8 1 sockpl 384 434 0 417 3 0 3 3 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 126 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 142 0 0 9 0 9 9 0 8 0 bufpl 256 5661 0 1021 290 0 290 290 0 8 0 anonpl 16 56068 0 48507 44 8 36 38 0 125 5 amapchunkpl 152 3006 0 2918 10 5 5 9 0 158 0 amappl16 192 2061 0 1666 24 1 23 23 0 8 3 amappl15 184 189 0 184 1 0 1 1 0 8 0 amappl14 176 192 0 188 2 1 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 12 0 10 2 1 1 1 0 8 0 amappl11 152 177 0 168 1 0 1 1 0 8 0 amappl10 144 458 0 453 1 0 1 1 0 8 0 amappl9 136 349 0 346 1 0 1 1 0 8 0 amappl8 128 134 0 115 1 0 1 1 0 8 0 amappl7 120 39 0 34 1 0 1 1 0 8 0 amappl6 112 238 0 229 1 0 1 1 0 8 0 amappl5 104 127 0 116 1 0 1 1 0 8 0 amappl4 96 265 0 243 2 1 1 2 0 8 0 amappl3 88 145 0 139 1 0 1 1 0 8 0 amappl2 80 4270 0 4220 2 0 2 2 0 8 0 amappl1 72 20939 0 20509 24 14 10 19 0 8 0 amappl 72 1639 0 1605 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 31 0 2 1 0 1 1 0 8 0 uaddrrnd 24 568 0 554 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 568 0 554 1 0 1 1 0 8 0 vmmpekpl 168 8446 0 8426 2 0 2 2 0 8 0 vmmpepl 168 66004 0 64650 92 27 65 71 0 357 3 vmsppl 360 567 0 554 2 0 2 2 0 8 0 pdppl 4096 1143 0 1108 6 1 5 6 0 8 0 pvpl 32 183380 0 172829 120 20 100 105 0 265 13 pmappl 224 567 0 554 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 441 0 4 13 0 13 13 0 8 0