uvm_fault: wsmouseclose

Status: upstream: reported on 2026/08/22 19:46
Reported-by: syzbot+9985de43de34a4748277@syzkaller.appspotmail.com
First crash: 9d00h, last: 9d00h

Sample crash report:
uvm_fault(0xfffff6805eec0a28, 0x98, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      wsmouseclose+0x7f:      movq    0x98(%r14),%r15
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
wsmouseclose(4400,1,2000,ffff80002a75aa78) at wsmouseclose+0x7f sys/dev/wscons/wsmouse.c:342
spec_close(ffff80003a4cf2f0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffff68073354cb0,1,fffff68007ffd340,ffff80002a75aa78) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffff680768b0178,ffff80002a75aa78) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff680768b0178,ffff80002a75aa78) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a75aa78) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a75aa78,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a75aa78,ffff80003a4cf650,ffff80003a4cf5a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003a4cf650) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003a4cf650) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x6f958c5bc9d0, count: 4
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: uvm_fault(0xfffff6805eec0a28, 0x98, 0, 1) -> e
ddb> show kasan
No such command
ddb> trace
wsmouseclose(4400,1,2000,ffff80002a75aa78) at wsmouseclose+0x7f sys/dev/wscons/wsmouse.c:342
spec_close(ffff80003a4cf2f0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffff68073354cb0,1,fffff68007ffd340,ffff80002a75aa78) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffff680768b0178,ffff80002a75aa78) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff680768b0178,ffff80002a75aa78) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a75aa78) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a75aa78,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a75aa78,ffff80003a4cf650,ffff80003a4cf5a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003a4cf650) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003a4cf650) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x6f958c5bc9d0, count: -11
ddb> show registers
rdi                              0x2
rsi                              0x1
rbp               0xffff80003a4cf270
rbx                                0
rdx                                0
rcx                                0
rax               0xffff80002a75aa78
r8                0xffff80003a4cf370
r9                              0x20
r10               0xbeaf21c268821a80
r11               0xa5849f75cc241793
r12                           0x4400    __ALIGN_SIZE+0x3400
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff82f1c2ef    wsmouseclose+0x7f
cs                               0x8
rflags                       0x10297    __ALIGN_SIZE+0xf297
rsp               0xffff80003a4cf230
ss                              0x10
wsmouseclose+0x7f:      movq    0x98(%r14),%r15
ddb> show proc
PROC (syz-executor) tid=49712 pid=75861 tcnt=0 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    runpri=32, usrpri=79, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0xffff80002a75aa78 scnt=-1 ecnt=1
    forw=0xffffffffffffffff, list=0xffff80003c8fa7e8,0xffff80003c8fad28
    process=0xffff800045ffa418 user=0xffff80003a4ca000, vmspace=0xfffff6805eec0a28
    estcpu=29, cpticks=3, pctcpu=0.1, user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
  2693  407201   7050     0  2           0          0           syz-executor
  2693  437725   7050     0  3           0  0x4000080 fsleep    syz-executor
 83841  359363  92935     0  2           0          0           syz-executor
 83841   85193  92935     0  3           0  0x4000080 lockf     syz-executor
  4874  325223  44653     0  2           0          0           syz-executor
  4874   20731  44653     0  3           0  0x4000080 fsleep    syz-executor
   391   45884  98302     0  2           0          0           syz-executor
   391  439894  98302     0  3           0  0x4000080 fsleep    syz-executor
  4743  501438  51875     0  2           0          0           syz-executor
  4743  286937  51875     0  3           0  0x4000080 msgwait   syz-executor
 78567  359355  95929     0  3           0       0x80 nanoslp   syz-executor
 78567  451587  95929     0  3           0  0x4000080 ttyout    syz-executor
 78567  237766  95929     0  3           0  0x4000080 fsleep    syz-executor
 51875  479390  56848     0  3         0x2       0x80 nanoslp   syz-executor
  7050   80823  56848     0  3         0x2       0x80 nanoslp   syz-executor
  2672  432691  56848     0  2         0x2          0           syz-executor
 44653  433497  56848     0  3         0x2       0x80 nanoslp   syz-executor
 98302  184648  56848     0  3         0x2       0x80 nanoslp   syz-executor
 35886  206887  56848     0  3         0x2       0x80 nanoslp   syz-executor
 92935  189182  56848     0  3         0x2       0x80 nanoslp   syz-executor
 95929  132564  56848     0  3         0x2       0x80 nanoslp   syz-executor
 56848  138421  75361     0  3         0x2       0x80 kqread    syz-executor
 75361  432394  14366     0  3    0x100002       0x88 sigsusp   ksh
 14366  215176  54499     0  3        0x10       0x88 kqread    sshd-session
 54499  350326  79719     0  3        0x12       0x80 kqread    sshd-session
 95953  198015      1     0  3    0x100003       0x80 ttyin     getty
 79719   50396      1     0  3           0       0x88 kqread    sshd
  5213  517460  94355    73  3   0x1100010       0x80 kqread    syslogd
 94355  380979      1     0  3    0x100002       0x80 sbwait    syslogd
 29787  280506      1     0  3    0x100000       0x80 kqread    resolvd
 92277  278474  86146    77  2    0x100012          0           dhcpleased
 61231   93954  86146    77  3    0x100012       0x80 kqread    dhcpleased
 86146  489783      1     0  3           0       0x80 kqread    dhcpleased
 30066  497255      0     0  3     0x14000      0x200 bored     smr
  9969  404873      0     0  2     0x14000      0x200           zerothread
 68888  435227      0     0  3     0x14000      0x200 aiodoned  aiodoned
 14250  246682      0     0  3     0x14000      0x200 syncer    update
  8746  428882      0     0  3     0x14000      0x200 cleaner   cleaner
 60295  201039      0     0  3     0x14000      0x200 reaper    reaper
 44954  324000      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 29033  228345      0     0  3     0x14000      0x200 bored     viomb
 13964  459782      0     0  3     0x14000 0x40000200 acpi0     acpi0
 59169  318692      0     0  2     0x14000      0x200           softnet0
 49001   99612      0     0  3     0x14000      0x200 smrbar    systqmp
 80001  376974      0     0  3     0x14000      0x200 bored     systq
 26436  198019      0     0  3     0x14000 0x40000200 tmoslp    softclock
 21774  133587      0     0  3     0x14000 0x40000200           idle0
     1  293615      0     0  3         0x2       0x80 wait      init
     0       0     -1     0  3     0x10000      0x200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 11037  12112K   12248K 166960K     12178        0
            pcb    18     12K      12K 166960K        31        0
         rtable   239      7K       7K 166960K       359        0
             pf    30     12K      13K 166960K        33        0
         ifaddr    42      7K       7K 166960K        46        0
        ifgroup    50      2K       2K 166960K        55        0
         sysctl     2      1K       9K 166960K         7        0
       counters    33     17K      18K 166960K        35        0
       ioctlops     0      0K       4K 166960K        46        0
            iov     1      0K      16K 166960K         5        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1299     82K      82K 166960K      1410        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       5K 166960K         4        0
         VM map     2      1K       1K 166960K         2        0
            sem     6      0K       0K 166960K        41        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1734    201K     291K 166960K     11964        0
      file desc    17     61K      97K 166960K       196        0
           proc    59     59K     124K 166960K       507        0
        subproc    72      4K       4K 166960K        72        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K         3        0
       in_multi    99      6K       6K 166960K       102        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     0      0K       0K 166960K         2        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    67    307K     307K 166960K        67        0
           exec     0      0K       1K 166960K       378        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   214    164K     164K 166960K      3364        0
       UVM aobj     5      2K       2K 166960K         7        0
     pinsyscall    38     76K      96K 166960K      1296        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K         1        0
            NDP    11      0K       1K 166960K        28        0
           temp    35   9106K    9112K 166960K      6160        0
         kqueue    14     22K      25K 166960K        36        0
      SYN cache     2     16K      16K 166960K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb      120       41    0       38     1     0     1     1     0     8    0
rtentry    136      112    0        2     4     0     4     4     0     8    0
unpcb      144      137    0      120     4     0     4     4     0     8    3
syncache   336        5    0        5     1     0     1     1     0     8    1
tcpcb      736       20    0       16     1     0     1     1     0     8    0
arp         96       18    0        0     1     0     1     1     0     8    0
inpcb      328      162    0      153     7     0     7     7     0     8    5
nd6        112       24    0        0     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     0     1     1     0     8    1
kcovpl      48        8    0        0     1     0     1     1     0     8    0
ppxss      1072       1    0        1     1     0     1     1     0     8    1
pppxif     1416       1    0        1     1     0     1     1     0     8    1
pfrule     1360       1    0        1     1     0     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      458    0        0    29     0    29    29     0     8    0
art_table   40      459    0        0     5     0     5     5     0     8    0
art_node    32      112    0       11     1     0     1     1     0     8    0
semapl      72       39    0       35     1     0     1     1     0     8    0
shmpl      112        4    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1684    0      221    92     0    92    92     0     8    0
ffsino     256     1684    0      221    92     0    92    92     0     8    0
nchpl      144     1973    0      276    64     0    64    64     0     8    0
vnodes     216     1793    0        0   100     0   100   100     0     8    0
namei      1024    6254    0     6254     2     0     2     2     0     8    2
kstatmem   264       25    0        2     2     0     2     2     0     8    0
scxspl     216     6545    0     6545     4     0     4     4     1     8    4
plimitpl   152       40    0       22     1     0     1     1     0     8    0
sigapl     424      491    0      449     6     0     6     6     0     8    1
knotepl    120     5076    0     5025     8     0     8     8     0     8    6
kqueuepl   184       70    0       59     1     0     1     1     0     8    0
pipepl     304      126    0       99     3     0     3     3     0     8    0
fdescpl    448      478    0      449     5     0     5     5     0     8    1
filepl     120     1939    0     1719     9     0     9     9     0     8    1
lockfpl    104       93    0       89     1     0     1     1     0     8    0
lockfspl    48       46    0       43     1     0     1     1     0     8    0
sessionpl  144       28    0       20     1     0     1     1     0     8    0
pgrppl      48       36    0       20     1     0     1     1     0     8    0
ucredpl    104      202    0      191     1     0     1     1     0     8    0
zombiepl   144      450    0      449     1     0     1     1     0     8    0
processpl  1152     491    0      449     4     0     4     4     0     8    0
procpl     664      597    0      548     5     0     5     5     0     8    0
sockpl     552      345    0      316     8     0     8     8     0     8    4
mcl64k     65536      5    0        5     1     0     1     1     0     8    1
mcl8k      8192       4    0        4     1     0     1     1     0     8    1
mcl4k      4096    2578    0     2528    14     0    14    14     0     8    7
mcl2k      2048     168    0      166     1     0     1     1     0     8    0
mextrefs    64       69    0       67     1     0     1     1     0     8    0
mtagpl      96        5    0        5     1     0     1     1     0     8    1
mbufpl     256     4718    0     4569    11     0    11    11     0     8    0
bufpl      272     2393    0      102   153     0   153   153     0     8    0
anonpl      24    71589    0    68470    32     0    32    32     0   187   10
amapchunkpl 152    9349    0     8696    27     0    27    27     0   158    0
amappl16   200      611    0      586     3     0     3     3     0     8    1
amappl15   192        1    0        1     1     0     1     1     0     8    1
amappl14   184      409    0      408     1     0     1     1     0     8    0
amappl13   176      119    0      109     1     0     1     1     0     8    0
amappl12   168      730    0      702     2     0     2     2     0     8    0
amappl11   160        9    0        9     1     0     1     1     0     8    1
amappl10   152       57    0       47     1     0     1     1     0     8    0
amappl9    144      289    0      288     1     0     1     1     0     8    0
amappl8    136       89    0       88     1     0     1     1     0     8    0
amappl7    128      141    0      130     1     0     1     1     0     8    0
amappl6    120      150    0      149     1     0     1     1     0     8    0
amappl5    112       98    0       89     1     0     1     1     0     8    0
amappl4    104      262    0      246     1     0     1     1     0     8    0
amappl3     96     1695    0     1606     3     0     3     3     0     8    0
amappl2     88      597    0      527     2     0     2     2     0     8    0
amappl1     80    10418    0     9869    13     0    13    13     0     8    1
amappl      88     2662    0     2510     4     0     4     4     0    92    0
uvmvnodes   80       96    0        0     2     0     2     2     0     8    0
dma4096    4096       1    0        1     1     0     1     1     0     8    1
dma1024    1024       1    0        0     1     0     1     1     0     8    0
dma256     256        6    0        6     1     0     1     1     0     8    1
dma128     128      253    0      253     1     0     1     1     0     8    1
dma64       64        6    0        6     1     0     1     1     0     8    1
dma32       32        7    0        7     1     0     1     1     0     8    1
dma16       16       18    0       17     1     0     1     1     0     8    0
aobjpl      72        6    0        2     1     0     1     1     0     8    0
uaddrrnd    24      478    0      449     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      478    0      449     1     0     1     1     0     8    0
vmmpekpl   168     5805    0     5768     2     0     2     2     0     8    0
vmmpepl    168    38678    0    36913    81     0    81    81     0   357    1
vmsppl     368      477    0      449     4     0     4     4     0     8    1
rwobjpl     40    13499    0    12568    11     0    11    11     0     8    1
pdppl      4096     962    0      898    96    28    68    82     0     8    4
pvpl        32   210174    0   201227    94     0    94    94     0   265   16
pmappl     216      477    0      449     3     0     3     3     0     8    0
extentpl    40       46    0       28     1     0     1     1     0     8    0
phpool     112      511    0       28    14     0    14    14     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
wsmouseclose(4400,1,2000,ffff80002a75aa78) at wsmouseclose+0x7f sys/dev/wscons/wsmouse.c:342
spec_close(ffff80003a4cf2f0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffff68073354cb0,1,fffff68007ffd340,ffff80002a75aa78) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffff680768b0178,ffff80002a75aa78) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff680768b0178,ffff80002a75aa78) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a75aa78) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a75aa78,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a75aa78,ffff80003a4cf650,ffff80003a4cf5a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003a4cf650) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003a4cf650) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x6f958c5bc9d0, count: -11
ddb> machine ddbcpu 1
No such command
ddb> trace
wsmouseclose(4400,1,2000,ffff80002a75aa78) at wsmouseclose+0x7f sys/dev/wscons/wsmouse.c:342
spec_close(ffff80003a4cf2f0) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffff68073354cb0,1,fffff68007ffd340,ffff80002a75aa78) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffff680768b0178,ffff80002a75aa78) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621
fdrop(fffff680768b0178,ffff80002a75aa78) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff680768b0178,ffff80002a75aa78) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a75aa78) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002a75aa78,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a75aa78,ffff80003a4cf650,ffff80003a4cf5a0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003a4cf650) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003a4cf650) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x6f958c5bc9d0, count: -11

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/22 19:46 openbsd 94b8f25de2d2 1e72964b .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: wsmouseclose
* Struck through repros no longer work on HEAD.