syzbot


uvm_fault: vm_terminate

Status: auto-obsoleted due to no activity on 2024/11/18 03:28
Reported-by: syzbot+e9cae6af5be3bb3b2329@syzkaller.appspotmail.com
First crash: 160d, last: 123d

Sample crash report:
uvm_fault(0xfffffd806b940dc8, 0x2b0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      vm_terminate+0xb0:      movq    0x2b0(%r12),%r13
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
  47454  29394      0   0x8000000          0    0  syz-executor
* 67231  29394      0   0x8000000  0x4000000    1  syz-executor
vm_terminate(ffff80002a12ae00) at vm_terminate+0xb0 sys/dev/vmm/vmm.c:674
vmmioctl(a00,80045604,ffff80002a12ae00,81,ffff800029fd9958) at vmmioctl+0x3c5 sys/dev/vmm/vmm.c:248
VOP_IOCTL(fffffd806ded21b8,80045604,ffff80002a12ae00,81,fffffd807f7d3548,ffff800029fd9958) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264
vn_ioctl(fffffd80622f5278,80045604,ffff80002a12ae00,ffff800029fd9958) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800029fd9958,ffff80002a12afe0,ffff80002a12af30) at sys_ioctl+0x67c
syscall(ffff80002a12afe0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a12afe0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x859a4537520, count: 8
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{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: uvm_fault(0xfffffd806b940dc8, 0x2b0, 0, 1) -> e
ddb{1}> trace
vm_terminate(ffff80002a12ae00) at vm_terminate+0xb0 sys/dev/vmm/vmm.c:674
vmmioctl(a00,80045604,ffff80002a12ae00,81,ffff800029fd9958) at vmmioctl+0x3c5 sys/dev/vmm/vmm.c:248
VOP_IOCTL(fffffd806ded21b8,80045604,ffff80002a12ae00,81,fffffd807f7d3548,ffff800029fd9958) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264
vn_ioctl(fffffd80622f5278,80045604,ffff80002a12ae00,ffff800029fd9958) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800029fd9958,ffff80002a12afe0,ffff80002a12af30) at sys_ioctl+0x67c
syscall(ffff80002a12afe0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a12afe0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x859a4537520, count: -7
ddb{1}> show registers
rdi                                0
rsi                                0
rbp               0xffff80002a12aba0
rbx                             0x81
rdx                                0
rcx               0xffff800029fd9958
rax               0xffff800029b7bff0
r8                0xffff800029fd9958
r9                0xffff800029fd9958
r10               0x7d03a18e48385cfa
r11               0xd49e717957bcebf3
r12                                0
r13                                0
r14               0xffff80002a094830
r15               0xffff800000a18c00
rip               0xffffffff82b104a0    vm_terminate+0xb0
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff80002a12ab60
ss                              0x10
vm_terminate+0xb0:      movq    0x2b0(%r12),%r13
ddb{1}> show proc
PROC (syz-executor) tid=67231 pid=29394 tcnt=3 stat=onproc
    flags process=8000000<PIN> proc=4000000<THREAD>
    runpri=32, usrpri=50, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff8000ffff27b8,0xffff800029fd9bf0
    process=0xffff8000fffea8d0 user=0xffff80002a126000, vmspace=0xfffffd806b940dc8
    estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 25885  156180  31047      0  2   0x8000000                syz-executor
 25885   24857  31047      0  3   0xc000080  fsleep        syz-executor
 29394   47454  35569      0  7   0x8000000                syz-executor
*29394   67231  35569      0  7   0xc000000                syz-executor
 29394  231558  35569      0  3   0xc000000  vm_terminate  syz-executor
 83607  230587  47401      0  2   0x8000000                syz-executor
 83607  279697  47401      0  3   0xc000080  fsleep        syz-executor
 85621  403014  55625      0  2   0x8000000                syz-executor
 85621  513306  55625      0  3   0xc000080  fsleep        syz-executor
 85621  419308  55625      0  3   0xc000080  fsleep        syz-executor
 31047   26996  91327      0  3   0x8000082  nanoslp       syz-executor
 73199  365936  91327      0  3   0x8000082  nanoslp       syz-executor
 35569  487184  91327      0  3   0x8000082  nanoslp       syz-executor
 55625  199820  91327      0  3   0x8000082  nanoslp       syz-executor
 13967  222949  91327      0  3   0x8000082  nanoslp       syz-executor
 97350   59761  91327      0  3   0x8000082  nanoslp       syz-executor
 47401  377779  91327      0  3   0x8000082  nanoslp       syz-executor
 66327  454614  91327      0  2   0x8000002                syz-executor
 94261  448927      1      0  3  0x18100083  ttyopn        getty
 32474  310926      0      0  3     0x14200  bored         sosplice
 91327  235046  98605      0  2   0x8000002                syz-executor
 98605  249014  46548      0  3   0x810008a  sigsusp       ksh
 46548  247575  71218      0  3  0x18000098  kqread        sshd-session
 71218  306394  51695      0  3  0x18000092  kqread        sshd-session
 51695  523166      1      0  3  0x18000088  kqread        sshd
  3496  226507  56978     74  3  0x19100092  bpf           pflogd
 56978  428125      1      0  3  0x18000080  sbwait        pflogd
 69684  180768  36859     73  3  0x19100090  kqread        syslogd
 36859  129617      1      0  3  0x18100082  sbwait        syslogd
 94120  161550      1      0  3  0x18100080  kqread        resolvd
 49019   65979  10515     77  3  0x18100092  kqread        dhcpleased
 23894  174085  10515     77  3  0x18100092  kqread        dhcpleased
 10515  256077      1      0  3  0x18000080  kqread        dhcpleased
 85900  449284      0      0  3     0x14200  pause         smr
 19297  147437      0      0  2     0x14200                zerothread
 68216  198688      0      0  3     0x14200  aiodoned      aiodoned
 11151  245775      0      0  3     0x14200  syncer        update
 89875  181507      0      0  3     0x14200  cleaner       cleaner
 37998  348681      0      0  3     0x14200  reaper        reaper
 52149  281958      0      0  3     0x14200  pgdaemon      pagedaemon
 17170  459432      0      0  3     0x14200  bored         viomb
 56288  407111      0      0  3  0x40014200  acpi0         acpi0
 28880  225336      0      0  3  0x40014200                idle1
 40247    5429      0      0  3     0x14200  bored         softnet3
 57714  348676      0      0  3     0x14200  bored         softnet2
 12178  371216      0      0  3     0x14200  bored         softnet1
 65852   66824      0      0  3     0x14200  bored         softnet0
 81017  286111      0      0  3     0x14200  bored         systqmp
 99596   80457      0      0  3     0x14200  bored         systq
 68234  196864      0      0  3     0x14200  tmoslp        softclockmp
 24061  437559      0      0  3  0x40014200  tmoslp        softclock
 22314  272152      0      0  3  0x40014200                idle0
     1  304684      0      0  3   0x8080082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 29394 (syz-executor) thread 0xffff800029fd9958 (67231)
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10220  10186K   10673K 166960K     17750        0
            pcb    17     16K      18K 166960K      1291        0
         rtable   205     15K      15K 166960K      4997        0
             pf    42     19K      83K 166960K       444        0
         ifaddr    42      8K      10K 166960K       637        0
        ifgroup    64      2K       2K 166960K       718        0
         sysctl     4      1K       1K 166960K         8        0
       counters    68     36K      37K 166960K       414        0
       ioctlops     0      0K       4K 166960K      2176        0
            iov     0      0K      24K 166960K       403        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1516     95K      96K 166960K      7275        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2     16K      24K 166960K        61        0
         VM map     2      1K       1K 166960K         2        0
            sem    12      0K       1K 166960K       414        0
        dirhash    15      2K       3K 166960K        78        0
           ACPI  1697    195K     286K 166960K     12548        0
      file desc    18     65K      93K 166960K      5637        0
          sigio     0      0K       0K 166960K       191        0
           proc    71     91K     128K 166960K      4567        0
        subproc   104      6K       6K 166960K      1795        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K      1122        0
       in_multi    87      6K       7K 166960K      1628        0
    ether_multi     1      0K       0K 166960K        31        0
            mrt     1      0K       0K 166960K        17        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys   169    758K     758K 166960K       169        0
           exec     0      0K       1K 166960K      2892        0
     pfkey data     0      0K       0K 166960K        15        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   272    104K     122K 166960K     47803        0
       UVM aobj    30      4K       4K 166960K        33        0
     pinsyscall    43     86K     108K 166960K     10098        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K       258        0
            NDP    14      0K       2K 166960K       464        0
           temp    77   6824K    6960K 166960K    616479        0
         kqueue    13     20K      30K 166960K       665        0
      SYN cache     2      8K      16K 166960K         3        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       24    0        0     1     0     1     1     0     8    0
rtpcb      120      810    0      807     6     5     1     3     0     8    0
rtentry    112     1662    0     1574     5     2     3     4     0     8    0
unpcb      144     5253    0     5231    54    46     8     8     0     8    6
syncache   336        9    0        9     6     6     0     1     0     8    0
tcpqe       32        2    0        2     1     1     0     1     0     8    0
tcpcb      808     1620    0     1616    50    42     8     8     0     8    7
arp        120      299    0      285     1     0     1     1     0     8    0
inpcb      336     6775    0     6765    81    74     7    18     0     8    5
nd6        136      456    0      432     1     0     1     1     0     8    0
pkpcb       40       45    0       45    14    13     1     1     0     8    1
kcovpl      48      138    0      130     1     0     1     1     0     8    0
ppxss      1168      21    0       21    12    11     1     1     0     8    1
pfstscr     40        4    0        4     1     1     0     1     0     8    0
pffrag     232       50    0       46     4     3     1     1     0   482    0
pffrnode    88       48    0       44     4     3     1     1     0     8    0
pffrent     40      232    0      228     4     3     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfrktable  1344       7    0        7     1     1     0     1     0     8    0
pfanchor   1288       1    0        1     1     1     0     1     0     8    0
pftag       88        2    0        0     1     0     1     1     0     8    0
pfqueue    264        2    0        1     1     0     1     1     0     8    0
pfstitem    24      402    0      349     1     0     1     1     0     8    0
pfstkey    128      405    0      352     3     0     3     3     0     8    0
pfstate    376      402    0      350    10     3     7     8     0     8    0
pfrule     1344      24    0       19     2     1     1     2     0     8    0
art_heap8  4096       3    0        0     3     0     3     3     0     8    0
art_heap4  256     6577    0     6166    43    14    29    30     0     8    2
art_table   32     6580    0     6166     4     0     4     4     0     8    0
art_node    16     1653    0     1574     1     0     1     1     0     8    0
sysvmsgpl   40       11    0        4     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      411    0      401     1     0     1     1     0     8    0
shmpl      112       30    0        3     1     0     1     1     0     8    0
dirhash    1024      62    0       42     3     0     3     3     0     8    0
dino2pl    256     8855    0     7099   111     0   111   111     0     8    0
ffsino     272     8855    0     7099   118     0   118   118     0     8    0
nchpl      144    14763    0    14057    66    39    27    66     0     8    0
uvmvnodes   80     9516    0        0   195     0   195   195     0     8    0
vnodes     216     9516    0        0   529     0   529   529     0     8    0
namei      1024   71582    0    71582     9     8     1     2     0     8    1
percpumem   16      221    0      173     1     0     1     1     0     8    0
vcpupl     3904      15    0        1     2     0     2     2     0     8    0
vmpool     696       27    0       13     3     1     2     2     0     8    0
pfiaddrpl  120        2    0        2     1     1     0     1     0     8    0
kstatmem   264      374    0      346     4     1     3     3     0     8    0
scsiplug    72       10    0       10     7     7     0     1     0     8    0
scxspl     216   125141    0   125141    21    19     2     8     1     8    2
plimitpl   152     1334    0     1316     1     0     1     1     0     8    0
sigapl     424     5703    0     5652    10     3     7     9     0     8    0
futexpl     64    66383    0    66379    11    10     1     1     0     8    0
knotepl    120      855    0        0    26     0    26    26     0     8    0
kqueuepl   216     1618    0     1609    30    27     3     5     0     8    2
pipepl     320      872    0      845     5     2     3     5     0     8    0
fdescpl    496     5660    0     5628    10     5     5     5     0     8    0
filepl     152    44337    0    44081    99    79    20    28     0     8    7
lockfpl    104     2037    0     2035     6     5     1     4     0     8    0
lockfspl    48      635    0      633     1     0     1     1     0     8    0
sessionpl  144      155    0      146     1     0     1     1     0     8    0
pgrppl      48      337    0      320     1     0     1     1     0     8    0
ucredpl    104     8347    0     8332     1     0     1     1     0     8    0
zombiepl   144     5656    0     5652     3     2     1     1     0     8    0
processpl  1160    5703    0     5652     7     2     5     6     0     8    0
procpl     648    12082    0    12025    10     4     6     8     0     8    0
srpgc       96       39    0       39    10     9     1     1     0     8    1
sosppl     168       17    0       17    10    10     0     1     0     8    0
sockpl     664    13007    0    12972   162   149    13    31     0     8    8
mcl64k     65536      6    0        0     1     0     1     1     0     8    0
mcl16k     16384      3    0        0     1     0     1     1     0     8    0
mcl12k     12288      3    0        0     1     0     1     1     0     8    0
mcl9k      9216       3    0        0     1     0     1     1     0     8    0
mcl8k      8192       8    0        0     1     0     1     1     0     8    0
mcl4k      4096       5    0        0     1     0     1     1     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     313    0        0    29     0    29    29     0     8    0
mtagpl      96       65    0        0     2     0     2     2     0     8    0
mbufpl     256     1092    0        0    61     0    61    61     0     8    0
bufpl      280    19903    0    10369   682     0   682   682     0     8    0
anonpl      24   740641    0   736939   162   111    51    92     0   185    1
amapchunkpl 152  155564    0   155004    93    60    33    37     0   158    8
amappl16   200    12082    0    12045   117   110     7    38     0     8    2
amappl15   192        8    0        8     1     1     0     1     0     8    0
amappl14   184      378    0      366     1     0     1     1     0     8    0
amappl13   176        5    0        5     2     2     0     1     0     8    0
amappl12   168     8367    0     8335     4     2     2     3     0     8    0
amappl11   160       78    0       64     1     0     1     1     0     8    0
amappl10   152       20    0       20     1     1     0     1     0     8    0
amappl9    144      147    0      147     1     1     0     1     0     8    0
amappl8    136       22    0       20     1     0     1     1     0     8    0
amappl7    128      375    0      362     1     0     1     1     0     8    0
amappl6    120     1465    0     1463     1     0     1     1     0     8    0
amappl5    112      653    0      640     1     0     1     1     0     8    0
amappl4    104      714    0      691     1     0     1     1     0     8    0
amappl3     96    30983    0    30847     4     0     4     4     0     8    0
amappl2     88     2471    0     2405     2     0     2     2     0     8    0
amappl1     80    32269    0    31678    18     4    14    15     0     8    0
amappl      88    46204    0    46008     5     0     5     5     0    92    0
dma65536   65536      1    0        1     1     1     0     1     0     8    0
dma16384   16384      1    0        1     1     1     0     1     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
dma512     512        3    0        3     2     2     0     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        7    0        7     2     1     1     1     0     8    1
dma32       32        7    0        7     1     1     0     1     0     8    0
dma16       16       20    0       19     1     0     1     1     0     8    0
aobjpl      72       32    0        3     1     0     1     1     0     8    0
uaddrrnd    24     5687    0     5641     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     5687    0     5641     1     0     1     1     0     8    0
vmmpekpl   168    44709    0    44648     4     0     4     4     0     8    0
vmmpepl    168   342752    0   340766   168    78    90   117     0   357    2
vmsppl     440     5686    0     5641    10     4     6     6     0     8    0
rwobjpl     56    98495    0    87946   158     8   150   150     0     8    0
pdppl      4096   11381    0    11296   300   214    86    89     0     8    1
pvpl        32    31387    0        0   254     1   253   253     0   265    0
pmappl     248     5686    0     5641     3     0     3     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112      837    0      375    15     1    14    14     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x27:        addq    $0x8,%rsp
x86_ipi_db(ffffffff83450ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x44 sys/dev/kcov.c:164
softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88
Xsoftclock() at Xsoftclock+0x27
end of kernel
end trace frame: 0x72492836fae0, count: 9
ddb{0}> trace
x86_ipi_db(ffffffff83450ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x44 sys/dev/kcov.c:164
softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88
Xsoftclock() at Xsoftclock+0x27
end of kernel
end trace frame: 0x72492836fae0, count: -6
ddb{0}> machine ddbcpu 1
Stopped at      vm_terminate+0xb0:      movq    0x2b0(%r12),%r13
vm_terminate(ffff80002a12ae00) at vm_terminate+0xb0 sys/dev/vmm/vmm.c:674
vmmioctl(a00,80045604,ffff80002a12ae00,81,ffff800029fd9958) at vmmioctl+0x3c5 sys/dev/vmm/vmm.c:248
VOP_IOCTL(fffffd806ded21b8,80045604,ffff80002a12ae00,81,fffffd807f7d3548,ffff800029fd9958) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264
vn_ioctl(fffffd80622f5278,80045604,ffff80002a12ae00,ffff800029fd9958) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800029fd9958,ffff80002a12afe0,ffff80002a12af30) at sys_ioctl+0x67c
syscall(ffff80002a12afe0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a12afe0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x859a4537520, count: 8
ddb{1}> trace
vm_terminate(ffff80002a12ae00) at vm_terminate+0xb0 sys/dev/vmm/vmm.c:674
vmmioctl(a00,80045604,ffff80002a12ae00,81,ffff800029fd9958) at vmmioctl+0x3c5 sys/dev/vmm/vmm.c:248
VOP_IOCTL(fffffd806ded21b8,80045604,ffff80002a12ae00,81,fffffd807f7d3548,ffff800029fd9958) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264
vn_ioctl(fffffd80622f5278,80045604,ffff80002a12ae00,ffff800029fd9958) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800029fd9958,ffff80002a12afe0,ffff80002a12af30) at sys_ioctl+0x67c
syscall(ffff80002a12afe0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a12afe0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x859a4537520, count: -7

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/20 03:27 openbsd 2cc97500edd5 9f0ab3fb .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore uvm_fault: vm_terminate
2024/07/16 12:36 openbsd 6e8d98da5daa b66b37bd .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore uvm_fault: vm_terminate
2024/07/16 06:28 openbsd 6e8d98da5daa b66b37bd .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore uvm_fault: vm_terminate
2024/07/13 14:53 openbsd ba080721f3fe eaeb5c15 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore uvm_fault: vm_terminate
* Struck through repros no longer work on HEAD.