syzbot


uvm_fault: spec_getattr

Status: upstream: reported on 2024/10/28 16:32
Reported-by: syzbot+746ed4cf18ded4d9f60f@syzkaller.appspotmail.com
First crash: 24d, last: 24d

Sample crash report:
uvm_fault(0xfffffd806c76dc28, 0x30, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      spec_getattr+0xa3:      movq    0x30(%rax),%rdi
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
* 31634  45054      0           0  0x4000000    0  syz-executor
spec_getattr(ffff8000376232c8) at spec_getattr+0xa3 sys/kern/spec_vnops.c:564
VOP_GETATTR(fffffd8069c88b50,ffff800037623348,fffffd807f7d7618,ffff80002a4c27b0) at VOP_GETATTR+0x7f sys/kern/vfs_vops.c:191
fill_file(ffff8000012fbc00,fffffd806756ec30,0,0,0,0,1357e735a557ef02,fffffd806756ec30,fe32) at fill_file+0x620 sys/kern/kern_sysctl.c:1462
sysctl_file(ffff800037623768,4,20000100,ffff800037623798,ffff80002a4c27b0) at sysctl_file+0x1eaf sys/kern/kern_sysctl.c:1719
kern_sysctl(ffff800037623764,5,20000100,ffff800037623798,0,37,f1a4976505a42b36) at kern_sysctl+0xbf9 sys/kern/kern_sysctl.c:500
sys_sysctl(ffff80002a4c27b0,ffff8000376238d0,ffff800037623820) at sys_sysctl+0x422
syscall(ffff8000376238d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00ba2f8fc0, count: 7
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(0xfffffd806c76dc28, 0x30, 0, 1) -> e
ddb> trace
spec_getattr(ffff8000376232c8) at spec_getattr+0xa3 sys/kern/spec_vnops.c:564
VOP_GETATTR(fffffd8069c88b50,ffff800037623348,fffffd807f7d7618,ffff80002a4c27b0) at VOP_GETATTR+0x7f sys/kern/vfs_vops.c:191
fill_file(ffff8000012fbc00,fffffd806756ec30,0,0,0,0,1357e735a557ef02,fffffd806756ec30,fe32) at fill_file+0x620 sys/kern/kern_sysctl.c:1462
sysctl_file(ffff800037623768,4,20000100,ffff800037623798,ffff80002a4c27b0) at sysctl_file+0x1eaf sys/kern/kern_sysctl.c:1719
kern_sysctl(ffff800037623764,5,20000100,ffff800037623798,0,37,f1a4976505a42b36) at kern_sysctl+0xbf9 sys/kern/kern_sysctl.c:500
sys_sysctl(ffff80002a4c27b0,ffff8000376238d0,ffff800037623820) at sys_sysctl+0x422
syscall(ffff8000376238d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00ba2f8fc0, count: -8
ddb> show registers
rdi                                0
rsi                                0
rbp               0xffff8000376232b0
rbx                                0
rdx                                0
rcx               0xffffffff834b9ff0    cpu_info_full_primary+0x1ff0
rax                                0
r8                0xffffffffffffffff
r9                                 0
r10               0x5e74eeef4277a7e3
r11               0x93124ddae69549c1
r12                           0x8000    __ALIGN_SIZE+0x7000
r13                           0x8000    __ALIGN_SIZE+0x7000
r14               0xffff8000376232c8
r15               0xfffffd8069c88b50
rip               0xffffffff829c6f43    spec_getattr+0xa3
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff800037623270
ss                              0x10
spec_getattr+0xa3:      movq    0x30(%rax),%rdi
ddb> show proc
PROC (syz-executor) tid=31634 pid=45054 tcnt=2 stat=onproc
    flags process=0 proc=4000000<THREAD>
    runpri=32, usrpri=50, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff80002a4c31d0,0xffff800036a1cf60
    process=0xffff8000327f4018 user=0xffff80003761e000, vmspace=0xfffffd806c76dc28
    estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 55421  194817  14125      0  2           0                syz-executor
 55421  441649  14125      0  2   0x4000000                syz-executor
 91310  143648      0      0  3     0x14200  acct          acct
 45054  290934  21446      0  2           0                syz-executor
*45054   31634  21446      0  7   0x4000000                syz-executor
 98532   20483  93754      0  2           0                syz-executor
 98532   79150  93754      0  2   0x4000000                syz-executor
 98532  427707  93754      0  2   0x4000000                syz-executor
 98532  345862  93754      0  2   0x4000000                syz-executor
 62135  195635   1888      0  2         0x2                syz-executor
 93754  113434   1888      0  3        0x82  nanoslp       syz-executor
 18389   52601      0      0  3     0x14200  bored         sosplice
 23676  462096   1888      0  2         0x3                syz-executor
 41404  157867   1888      0  2         0x2                syz-executor
 14125   28367   1888      0  3        0x82  nanoslp       syz-executor
 49591  321743   1888      0  2         0x2                syz-executor
 21446  441486   1888      0  3        0x82  nanoslp       syz-executor
 35965  346066   1888      0  2         0x2                syz-executor
  1888  247092  87568      0  2         0x2                syz-executor
 87568   36702  73155      0  3    0x10008a  sigsusp       ksh
 73155   18124   5969      0  3        0x98  kqread        sshd-session
  5969  230184  69049      0  3        0x92  kqread        sshd-session
 84192   17225      1      0  3    0x100083  ttyin         getty
 69049  293679      1      0  3        0x88  kqread        sshd
 39649   74773  35068     73  3   0x1100090  kqread        syslogd
 35068  448304      1      0  3    0x100082  sbwait        syslogd
 39711   60350      1      0  2    0x100001                resolvd
 64728  227633  45683     77  2    0x100013                dhcpleased
 68449  128474  45683     77  3    0x100092  kqread        dhcpleased
 45683  274474      1      0  3        0x80  kqread        dhcpleased
 55524  130777      0      0  3     0x14200  bored         smr
 89266   57924      0      0  2     0x14200                zerothread
 93255  300916      0      0  3     0x14200  aiodoned      aiodoned
 37033  482246      0      0  3     0x14200  syncer        update
 78191  135957      0      0  3     0x14200  cleaner       cleaner
 97482  332139      0      0  3     0x14200  reaper        reaper
 33562   29172      0      0  3     0x14200  pgdaemon      pagedaemon
 59792  312011      0      0  3     0x14200  bored         viomb
 87596  149285      0      0  3  0x40014200  acpi0         acpi0
 40930  416920      0      0  3     0x14200  bored         softnet3
 95788  186085      0      0  3     0x14200  bored         softnet2
 78132  121076      0      0  3     0x14200  bored         softnet1
 78809  289312      0      0  2     0x14200                softnet0
 57657  373343      0      0  3     0x14200  bored         systqmp
 99491   90998      0      0  3     0x14200  bored         systq
 51036  200439      0      0  3  0x40014200  tmoslp        softclock
 69670  300654      0      0  3  0x40014200                idle0
     1   77026      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10184  11055K   11370K 166960K     12286        0
            pcb    17     14K      16K 166960K       265        0
         rtable   159      6K       7K 166960K       988        0
             pf    38     14K      22K 166960K       104        0
         ifaddr    34      5K       7K 166960K        79        0
        ifgroup    55      2K       2K 166960K        96        0
         sysctl     4      1K       1K 166960K         4        0
       counters    31     17K      17K 166960K        45        0
       ioctlops     0      0K       5K 166960K       296        0
            iov     0      0K      20K 166960K        76        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1429     90K      90K 166960K      2194        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       9K 166960K        22        0
         VM map     2      1K       1K 166960K         2        0
            sem    12      0K       0K 166960K       111        0
        dirhash    12      2K       2K 166960K        30        0
           ACPI  1690    195K     286K 166960K     12468        0
      file desc    13     45K      97K 166960K      1117        0
          sigio     1      0K       0K 166960K        26        0
           proc    60     59K     124K 166960K       632        0
        subproc   104      6K       6K 166960K       144        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K       253        0
       in_multi    71      5K       7K 166960K       165        0
    ether_multi     1      0K       0K 166960K         5        0
            mrt     1      0K       0K 166960K         4        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    85    387K     387K 166960K        85        0
           exec     0      0K       2K 166960K       665        0
     pfkey data     0      0K       0K 166960K         2        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   187     71K      88K 166960K     12352        0
       UVM aobj    97      3K       5K 166960K       106        0
     pinsyscall    34     68K     104K 166960K      2218        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K        40        0
            NDP    12      0K       2K 166960K        52        0
           temp    78   6817K    6888K 166960K     22866        0
         kqueue    14     22K      28K 166960K       186        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      126    0      123     1     0     1     1     0     8    0
rtentry    112      381    0      314     4     0     4     4     0     8    0
unpcb      144      968    0      951     7     1     6     6     0     8    5
syncache   336        4    0        4     1     1     0     1     0     8    0
tcpqe       32        2    0        2     1     1     0     1     0     8    0
tcpcb      808      426    0      421     9     1     8     8     0     8    7
arp         88       97    0       86     1     0     1     1     0     8    0
ipq         40        9    0        6     1     0     1     1     0     8    0
ipqe        40       96    0       93     1     0     1     1     0     8    0
inpcb      336     1487    0     1477    12     3     9    12     0     8    8
nd6        104       41    0       22     1     0     1     1     0     8    0
pkpcb       40        7    0        7     2     1     1     1     0     8    1
kcovpl      48       11    0        3     1     0     1     1     0     8    0
ppxss      1072       9    0        9     1     0     1     1     0     8    1
pfstscr     40       67    0       66     2     1     1     1     0     8    0
pfrktable  1344       1    0        1     1     0     1     1     0     8    1
pfanchor   1288       3    0        0     1     0     1     1     0     8    0
pftag       88        2    0        2     1     0     1     1     0     8    1
pfstitem    24        2    0        0     1     0     1     1     0     8    0
pfstkey    128      201    0      199     2     1     1     1     0     8    0
pfstate    344      101    0      100     2     1     1     1     0     8    0
pfrule     1344      10    0        8     2     1     1     1     0     8    0
art_heap8  4096       3    0        0     3     0     3     3     0     8    0
art_heap4  256      852    0      510    30     1    29    29     0     8    4
art_table   32      855    0      510     4     0     4     4     0     8    0
art_node    16      379    0      319     1     0     1     1     0     8    0
sysvmsgpl   40        8    0        4     1     0     1     1     0     8    0
semapl     112      108    0       98     1     0     1     1     0     8    0
shmpl      112      103    0        9     3     0     3     3     0     8    0
dirhash    1024      29    0       12     3     0     3     3     0     8    0
dino2pl    256     3379    0     1883    95     0    95    95     0     8    0
ffsino     240     3379    0     1883    89     0    89    89     0     8    0
nchpl      144     4960    0     3281    63     0    63    63     0     8    0
uvmvnodes   80     3954    0        0    81     0    81    81     0     8    0
vnodes     216     3954    0        0   220     0   220   220     0     8    0
namei      1024   17656    0    17654     3     2     1     2     0     8    0
kstatmem   264       52    0       28     2     0     2     2     0     8    0
scsiplug    72        3    0        3     1     0     1     1     0     8    1
scxspl     216    14125    0    14125    10     2     8     8     1     8    8
plimitpl   152      341    0      325     1     0     1     1     0     8    0
sigapl     424     1398    0     1355     7     1     6     7     0     8    0
futexpl     64    15977    0    15976     1     0     1     1     0     8    0
knotepl    120    48641    0    48593    16     7     9     9     0     8    6
kqueuepl   184      299    0      289     2     0     2     2     0     8    1
pipepl     288      224    0      197     6     1     5     5     0     8    2
fdescpl    432     1375    0     1350     5     1     4     5     0     8    0
filepl     120     8842    0     8601    13     1    12    12     0     8    2
lockfpl    104      471    0      469     1     0     1     1     0     8    0
lockfspl    48      207    0      205     1     0     1     1     0     8    0
sessionpl  144       24    0       16     1     0     1     1     0     8    0
pgrppl      48      106    0       90     1     0     1     1     0     8    0
ucredpl    104     1496    0     1485     1     0     1     1     0     8    0
zombiepl   144     1962    0     1962     1     0     1     1     0     8    1
processpl  1096    1398    0     1355     4     0     4     4     0     8    0
procpl     648     3110    0     3062     6     0     6     6     0     8    0
sosppl     168        7    0        5     2     1     1     1     0     8    0
sockpl     504     2635    0     2605    43    31    12    21     0     8    7
mcl64k     65536      9    0        9     2     1     1     1     0     8    1
mcl16k     16384      1    0        1     1     0     1     1     0     8    1
mcl8k      8192      27    0       27     2     1     1     1     0     8    1
mcl4k      4096    4041    0     3989    15     7     8    15     0     8    1
mcl2k2     2112       4    0        4     1     0     1     1     0     8    1
mcl2k      2048    1704    0     1701     6     2     4     4     0     8    3
mtagpl      96       25    0       13     1     0     1     1     0     8    0
mbufpl     256    18784    0    18566   135   109    26    79     0     8    7
bufpl      280     3865    0       95   270     0   270   270     0     8    0
anonpl      24   249061    0   246147    69    22    47    47     0   187   21
amapchunkpl 152   53014    0    52646    39     4    35    35     0   158   14
amappl16   200     6298    0     6277    33    22    11    15     0     8    8
amappl15   192       10    0       10     1     1     0     1     0     8    0
amappl14   184      134    0      124     1     0     1     1     0     8    0
amappl13   176       10    0       10     1     1     0     1     0     8    0
amappl12   168     2043    0     2018     3     1     2     3     0     8    0
amappl11   160       44    0       34     1     0     1     1     0     8    0
amappl10   152        7    0        7     1     1     0     1     0     8    0
amappl9    144      117    0      117     1     1     0     1     0     8    0
amappl8    136       23    0       22     1     0     1     1     0     8    0
amappl7    128      114    0      104     1     0     1     1     0     8    0
amappl6    120      190    0      189     1     0     1     1     0     8    0
amappl5    112      137    0      127     1     0     1     1     0     8    0
amappl4    104      295    0      279     1     0     1     1     0     8    0
amappl3     96     7516    0     7446     3     0     3     3     0     8    0
amappl2     88     1655    0     1582     2     0     2     2     0     8    0
amappl1     80    10378    0     9883    14     2    12    14     0     8    0
amappl      88    11876    0    11743     5     0     5     5     0    92    0
dma65536   65536      1    0        1     1     0     1     1     0     8    1
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       2    0        1     1     0     1     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        6    0        6     1     1     0     1     0     8    0
dma32       32        7    0        7     1     1     0     1     0     8    0
dma16       16       19    0       18     1     0     1     1     0     8    0
aobjpl      72      105    0        9     2     0     2     2     0     8    0
uaddrrnd    24     1375    0     1350     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1375    0     1350     1     0     1     1     0     8    0
vmmpekpl   168    11844    0    11794     3     0     3     3     0     8    0
vmmpepl    168    90837    0    89338    98     8    90    90     0   357   12
vmsppl     344     1374    0     1350     4     1     3     4     0     8    0
rwobjpl     24    31694    0    26848    30     0    30    30     0     8    0
pdppl      4096    2756    0     2700   104    38    66    82     0     8   10
pvpl        32   613994    0   606671   144    27   117   117     0   265   37
pmappl     216     1374    0     1350     3     0     3     3     0     8    0
extentpl    40       55    0       38     1     0     1     1     0     8    0
phpool     112      563    0      200    12     0    12    12     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
spec_getattr(ffff8000376232c8) at spec_getattr+0xa3 sys/kern/spec_vnops.c:564
VOP_GETATTR(fffffd8069c88b50,ffff800037623348,fffffd807f7d7618,ffff80002a4c27b0) at VOP_GETATTR+0x7f sys/kern/vfs_vops.c:191
fill_file(ffff8000012fbc00,fffffd806756ec30,0,0,0,0,1357e735a557ef02,fffffd806756ec30,fe32) at fill_file+0x620 sys/kern/kern_sysctl.c:1462
sysctl_file(ffff800037623768,4,20000100,ffff800037623798,ffff80002a4c27b0) at sysctl_file+0x1eaf sys/kern/kern_sysctl.c:1719
kern_sysctl(ffff800037623764,5,20000100,ffff800037623798,0,37,f1a4976505a42b36) at kern_sysctl+0xbf9 sys/kern/kern_sysctl.c:500
sys_sysctl(ffff80002a4c27b0,ffff8000376238d0,ffff800037623820) at sys_sysctl+0x422
syscall(ffff8000376238d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00ba2f8fc0, count: -8
ddb> machine ddbcpu 1
No such command
ddb> trace
spec_getattr(ffff8000376232c8) at spec_getattr+0xa3 sys/kern/spec_vnops.c:564
VOP_GETATTR(fffffd8069c88b50,ffff800037623348,fffffd807f7d7618,ffff80002a4c27b0) at VOP_GETATTR+0x7f sys/kern/vfs_vops.c:191
fill_file(ffff8000012fbc00,fffffd806756ec30,0,0,0,0,1357e735a557ef02,fffffd806756ec30,fe32) at fill_file+0x620 sys/kern/kern_sysctl.c:1462
sysctl_file(ffff800037623768,4,20000100,ffff800037623798,ffff80002a4c27b0) at sysctl_file+0x1eaf sys/kern/kern_sysctl.c:1719
kern_sysctl(ffff800037623764,5,20000100,ffff800037623798,0,37,f1a4976505a42b36) at kern_sysctl+0xbf9 sys/kern/kern_sysctl.c:500
sys_sysctl(ffff80002a4c27b0,ffff8000376238d0,ffff800037623820) at sys_sysctl+0x422
syscall(ffff8000376238d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00ba2f8fc0, count: -8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/28 16:31 openbsd e451d4134a6f 9efb3cc7 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: spec_getattr
* Struck through repros no longer work on HEAD.