syzbot


protection_fault: fill_file (4)

Status: upstream: reported on 2024/08/07 16:05
Reported-by: syzbot+d299dc5e99f117b6e4ff@syzkaller.appspotmail.com
First crash: 40d, last: 40d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd protection_fault: fill_file (2) 2 523d 535d 0/3 auto-obsoleted due to no activity on 2023/07/11 17:45
openbsd protection_fault: fill_file (3) 1 251d 251d 3/3 fixed on 2024/01/16 01:11
openbsd protection_fault: fill_file 2 691d 718d 0/3 auto-obsoleted due to no activity on 2023/01/24 01:44

Sample crash report:
kernel: protection fault trap, code=0
Stopped at      fill_file+0xb88:        movl    0x8(%rax),%eax
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
the kernel did not panic
ddb> trace
fill_file(ffff8000012c6800,fffffd8079c22a58,fffffd806c537370,5,0,ffff80002a551120,de6dd32e50957b,1007d,5) at fill_file+0xb88 sys/kern/kern_sysctl.c:1548
sysctl_file(ffff80002a4fb468,4,20000100,ffff80002a4fb498,ffff8000376256e8) at sysctl_file+0x7db sys/kern/kern_sysctl.c:1728
kern_sysctl(ffff80002a4fb464,5,20000100,ffff80002a4fb498,0,fffffffffffffe59,228b6a869dcf2f4e) at kern_sysctl+0x5ff sys/kern/kern_sysctl.c:493
sys_sysctl(ffff8000376256e8,ffff80002a4fb5d0,ffff80002a4fb520) at sys_sysctl+0x41f
syscall(ffff80002a4fb5d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2825f19afb0, count: -6
ddb> show registers
rdi               0xffff80002d9de000
rsi                           0x57d8    __ALIGN_SIZE+0x47d8
rbp               0xffff80002a4fb1c0
rbx               0xfffffd806c537370
rdx               0xffff80002d9de000
rcx                           0x57d7    __ALIGN_SIZE+0x47d7
rax               0x6fd25829cb1a5669
r8                0xffff80002a5bb668
r9                                 0
r10               0xb94b40e5b0140281
r11               0x4e313007bf713332
r12               0xffff8000376256e8
r13                              0x5
r14               0xffff80002a551120
r15               0xffff8000012c6800
rip               0xffffffff81581e58    fill_file+0xb88
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff80002a4fb090
ss                                 0
fill_file+0xb88:        movl    0x8(%rax),%eax
ddb> show proc
PROC (syz-executor) tid=25871 pid=56280 tcnt=2 stat=onproc
    flags process=8000010<SUGID,PIN> proc=4000000<THREAD>
    runpri=32, usrpri=84, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff80002a5602b8,0xffff80002a560a60
    process=0xffff80002a551560 user=0xffff80002a4f6000, vmspace=0xfffffd806bdb32c8
    estcpu=34, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 46681  346382  30320      0  3   0x8000000  futex         syz-executor
 46681  319104  30320      0  3   0xc000000  futex         syz-executor
 84115   81431  34908      0  2   0x8000000                syz-executor
 84115   15618  34908      0  3   0xc000080  fsleep        syz-executor
 84115  220937  34908      0  2   0xc000000                syz-executor
 53067  504748  47794      0  2   0x8000000                syz-executor
 53067   16922  47794      0  3   0xc000000  futex         syz-executor
 66225   23745  42955      0  2   0x8000000                syz-executor
 66225  101093  42955      0  3   0xc000080  fsleep        syz-executor
 66225  476582  42955      0  2   0xc000000                syz-executor
 37937  408391  19261      0  2   0x8000010                syz-executor
 37937  515465  19261      0  3   0xc000010  futex         syz-executor
 56280  131746  33430  60928  2   0x8000010                syz-executor
*56280   25871  33430  60928  7   0xc000010                syz-executor
 30721  441380  69271      0  2   0x8000000                syz-executor
 30721  499817  69271      0  3   0xc000080  ttyopn        syz-executor
 30721  126708  69271      0  3   0xc000080  ttyopn        syz-executor
 30721   96110  69271      0  2   0xc000000                syz-executor
 30721  478247  69271      0  3   0xc000080  fsleep        syz-executor
 42955  301573    225      0  3   0x8000082  nanoslp       syz-executor
 30320  362896    225      0  3   0x8000082  nanoslp       syz-executor
 92686  116612    225      0  2   0x8000002                syz-executor
 69271   45477    225      0  3   0x8000082  nanoslp       syz-executor
 34908  387909    225      0  3   0x8000082  nanoslp       syz-executor
 33430  148917    225      0  3   0x8000082  nanoslp       syz-executor
 47794  261119    225      0  3   0x8000082  nanoslp       syz-executor
 19261  151667    225      0  3   0x8000082  nanoslp       syz-executor
  3574  331739      1      0  3  0x18100083  ttyin         getty
 17286   90934      0      0  3     0x14280  nfsidl        nfsio
 37825  122728      0      0  3     0x14280  nfsidl        nfsio
 89613   27760      0      0  3     0x14280  nfsidl        nfsio
 77595  351708      0      0  3     0x14280  nfsidl        nfsio
 38838  370749      0      0  3     0x14280  nfsidl        nfsio
 19293  377887      0      0  3     0x14280  nfsidl        nfsio
 29715  117693      0      0  3     0x14280  nfsidl        nfsio
 39611    2223      0      0  3     0x14280  nfsidl        nfsio
 96276  138982      0      0  3     0x14280  nfsidl        nfsio
 29207  226750      0      0  3     0x14280  nfsidl        nfsio
 60590  486838      0      0  3     0x14280  nfsidl        nfsio
 44880    4650      0      0  3     0x14280  nfsidl        nfsio
 21708  137490      0      0  3     0x14280  nfsidl        nfsio
 22038  451330      0      0  3     0x14280  nfsidl        nfsio
 23907  190298      0      0  3     0x14280  nfsidl        nfsio
  5576  464375      0      0  3     0x14280  nfsidl        nfsio
 16116  474631      0      0  3     0x14280  nfsidl        nfsio
 32796  422736      0      0  3     0x14280  nfsidl        nfsio
 99214   48409      0      0  3     0x14280  nfsidl        nfsio
 24958  134210      0      0  3     0x14280  nfsidl        nfsio
 16462  174591      0      0  3     0x14200  bored         sosplice
   225   14776  91084      0  3   0x8000082  kqread        syz-executor
 91084   96334  24602      0  3   0x810008a  sigsusp       ksh
 24602  270467  38230      0  3  0x18000098  kqread        sshd-session
 38230  267425  11511      0  3  0x18000092  kqread        sshd-session
 11511  285845      1      0  3  0x18000088  kqread        sshd
 70538  458542  17303     73  2  0x19100010                syslogd
 17303  434691      1      0  3  0x18100082  sbwait        syslogd
 90927  268554      1      0  3  0x18100080  kqread        resolvd
 23782  263452   3232     77  3  0x18100092  kqread        dhcpleased
 45589  220927   3232     77  3  0x18100092  kqread        dhcpleased
  3232  201711      1      0  3  0x18000080  kqread        dhcpleased
 97801   16746      0      0  3     0x14200  bored         smr
   422  411183      0      0  2     0x14200                zerothread
 50079  341797      0      0  3     0x14200  aiodoned      aiodoned
 63333  191735      0      0  3     0x14200  syncer        update
 11391   38438      0      0  3     0x14200  cleaner       cleaner
  8164  326401      0      0  3     0x14200  reaper        reaper
 25509  465208      0      0  3     0x14200  pgdaemon      pagedaemon
 87593  348272      0      0  3     0x14200  bored         viomb
 56573  296939      0      0  3  0x40014200  acpi0         acpi0
 18813  376123      0      0  3     0x14200  bored         softnet3
 64775  196830      0      0  3     0x14200  bored         softnet2
 87323  115995      0      0  3     0x14200  bored         softnet1
 82097  235434      0      0  3     0x14200  bored         softnet0
 75965  363414      0      0  3     0x14200  bored         systqmp
 57154  280658      0      0  3     0x14200  bored         systq
 96878   82541      0      0  3  0x40014200  tmoslp        softclock
 79648  445342      0      0  3  0x40014200                idle0
     1  308665      0      0  3   0x8080082  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 10227  10307K   10559K 166960K     13372        0
            pcb    18     15K      16K 166960K       325        0
         rtable   206     10K      11K 166960K      1945        0
             pf    38     14K      17K 166960K       195        0
         ifaddr    40      7K       8K 166960K       266        0
        ifgroup    58      2K       2K 166960K       308        0
         sysctl     4      1K       1K 166960K         4        0
       counters    32     17K      17K 166960K        95        0
       ioctlops     0      0K       4K 166960K       232        0
            iov     0      0K      16K 166960K       200        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1490     94K      94K 166960K      3419        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2     68K      76K 166960K        24        0
         VM map     2      1K       1K 166960K         2        0
            sem    12      0K       0K 166960K       132        0
        dirhash    12      2K       3K 166960K        36        0
           ACPI  1697    195K     286K 166960K     12548        0
      file desc    17     61K      97K 166960K      1695        0
          sigio     1      0K       0K 166960K        12        0
           proc    60     59K     124K 166960K      1943        0
        subproc   104      6K       6K 166960K       757        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     2      0K       0K 166960K       198        0
       in_multi    87      6K       7K 166960K       670        0
    ether_multi     1      0K       0K 166960K         9        0
            mrt     1      0K       0K 166960K         3        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys   229   1023K    1023K 166960K       229        0
           exec     0      0K       1K 166960K      1237        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   231    106K     123K 166960K     14302        0
       UVM aobj   105      5K       5K 166960K       108        0
     pinsyscall    38     76K     100K 166960K      4015        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    13      0K       2K 166960K       192        0
           temp    78   6809K    6880K 166960K     79055        0
         kqueue    14     22K      26K 166960K       164        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      247    0      244     2     1     1     2     0     8    0
rtentry    112      676    0      589     4     0     4     4     0     8    0
unpcb      144     1540    0     1521     6     5     1     6     0     8    0
syncache   336        4    0        4     1     1     0     1     0     8    0
tcpcb      808      577    0      572     8     7     1     8     0     8    0
arp         88      120    0      104     1     0     1     1     0     8    0
ipq         40        6    0        6     1     0     1     1     0     8    1
ipqe        40      135    0      135     1     0     1     1     0     8    1
inpcb      336     2208    0     2196    21    17     4    18     0     8    2
nd6        104      181    0      159     1     0     1     1     0     8    0
pkpcb       40      135    0      135     1     1     0     1     0     8    0
kcovpl      48       58    0       50     1     0     1     1     0     8    0
ppxss      1072       5    0        5     1     1     0     1     0     8    0
pfstscr     40        1    0        1     1     1     0     1     0     8    0
pfosfp      40        1    0        0     1     0     1     1     0     8    0
pfosfpen   112        1    0        0     1     0     1     1     0     8    0
pfrktable  1344       5    0        2     1     0     1     1     0     8    0
pfanchor   1288       1    0        0     1     0     1     1     0     8    0
pftag       88        4    0        2     1     0     1     1     0     8    0
pfqueue    264        1    0        1     1     1     0     1     0     8    0
pfstitem    24        1    0        0     1     0     1     1     0     8    0
pfstkey    128        3    0        2     1     0     1     1     0     8    0
pfstate    344        2    0        1     1     0     1     1     0     8    0
pfrule     1344      41    0        7     3     0     3     3     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     2736    0     2339    30     2    28    30     0     8    0
art_table   32     2737    0     2339     4     0     4     4     0     8    0
art_node    16      674    0      596     1     0     1     1     0     8    0
sysvmsgpl   40        1    0        1     1     1     0     1     0     8    0
semupl     112        2    0        2     1     1     0     1     0     8    0
semapl     112      129    0      119     1     0     1     1     0     8    0
shmpl      112      105    0        3     3     0     3     3     0     8    0
dirhash    1024      33    0       16     3     0     3     3     0     8    0
dino2pl    256     3452    0     1854   101     0   101   101     0     8    0
ffsino     240     3452    0     1854    95     0    95    95     0     8    0
nchpl      144     4947    0     4338    65    40    25    65     0     8    0
uvmvnodes   80     5164    0        0   106     0   106   106     0     8    0
vnodes     216     5164    0        0   287     0   287   287     0     8    0
namei      1024   23285    0    23284     2     1     1     2     0     8    0
vcpupl     3904       4    0        1     1     0     1     1     0     8    0
vmpool     664        7    0        4     1     0     1     1     0     8    0
pfiaddrpl  120        1    0        0     1     0     1     1     0     8    0
kstatmem   264      152    0      126     2     0     2     2     0     8    0
scsiplug    72        3    0        3     1     1     0     1     0     8    0
scxspl     216    33819    0    33819     8     0     8     8     1     8    8
plimitpl   152      409    0      391     1     0     1     1     0     8    0
sigapl     424     1895    0     1829     8     0     8     8     0     8    0
futexpl     64    18583    0    18579     1     0     1     1     0     8    0
knotepl    120    31331    0    31275    18     8    10    10     0     8    7
kqueuepl   184      367    0      357     3     2     1     3     0     8    0
pipepl     288      440    0      411     7     4     3     7     0     8    0
fdescpl    432     1858    0     1829     5     1     4     5     0     8    0
filepl     120    13353    0    13091    18     9     9    18     0     8    0
lockfpl    104      545    0      543     2     1     1     2     0     8    0
lockfspl    48      252    0      249     1     0     1     1     0     8    0
sessionpl  144       72    0       64     1     0     1     1     0     8    0
pgrppl      48      139    0      123     1     0     1     1     0     8    0
ucredpl    104     1948    0     1935     1     0     1     1     0     8    0
zombiepl   144     1853    0     1853     1     0     1     1     0     8    1
processpl  1088    1895    0     1829     5     0     5     5     0     8    0
procpl     648     3221    0     3143     8     1     7     8     0     8    0
sosppl     168        2    0        2     1     1     0     1     0     8    0
sockpl     504     4148    0     4114    66    58     8    29     0     8    3
mcl64k     65536     11    0       11     1     1     0     1     0     8    0
mcl16k     16384      1    0        1     1     1     0     1     0     8    0
mcl12k     12288      2    0        2     1     1     0     1     0     8    0
mcl9k      9216       1    0        1     1     1     0     1     0     8    0
mcl8k      8192      46    0       46     2     1     1     1     0     8    1
mcl4k      4096       5    0        5     2     1     1     1     0     8    1
mcl2k      2048    8473    0     8377    29    16    13    29     0     8    0
mtagpl      96       30    0       26     1     0     1     1     0     8    0
mbufpl     256    22035    0    21839    32    17    15    28     0     8    0
bufpl      280    11433    0     3549   564     0   564   564     0     8    0
anonpl      24   313089    0   309739    79    46    33    79     0   187    0
amapchunkpl 152   48078    0    47590    46    23    23    42     0   158    1
amappl16   200     5761    0     5736    15    12     3    14     0     8    0
amappl15   192       11    0       11     1     1     0     1     0     8    0
amappl14   184      213    0      203     1     0     1     1     0     8    0
amappl13   176        7    0        7     1     1     0     1     0     8    0
amappl12   168     3268    0     3239     3     1     2     3     0     8    0
amappl11   160       60    0       50     1     0     1     1     0     8    0
amappl10   152       14    0       14     1     1     0     1     0     8    0
amappl9    144      137    0      137     1     1     0     1     0     8    0
amappl8    136       29    0       27     1     0     1     1     0     8    0
amappl7    128      196    0      186     1     0     1     1     0     8    0
amappl6    120      670    0      669     1     0     1     1     0     8    0
amappl5    112      330    0      322     1     0     1     1     0     8    0
amappl4    104      445    0      429     1     0     1     1     0     8    0
amappl3     96     8888    0     8776     4     0     4     4     0     8    0
amappl2     88     1307    0     1247     2     0     2     2     0     8    0
amappl1     80    15210    0    14676    14     2    12    14     0     8    0
amappl      88    13508    0    13335     5     0     5     5     0    92    0
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        7    0        7     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      107    0        3     2     0     2     2     0     8    0
uaddrrnd    24     1865    0     1833     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1865    0     1833     1     0     1     1     0     8    0
vmmpekpl   168    15729    0    15679     3     0     3     3     0     8    0
vmmpepl    168   119178    0   117408    89     9    80    89     0   357    0
vmsppl     344     1864    0     1833     4     0     4     4     0     8    0
rwobjpl     24    40575    0    34441    38     0    38    38     0     8    0
pdppl      4096    3736    0     3669   180   111    69    82     0     8    2
pvpl        32   947085    0   936941   357   257   100   350     0   265    4
pmappl     216     1864    0     1833     3     1     2     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112      590    0      240    12     0    12    12     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
fill_file(ffff8000012c6800,fffffd8079c22a58,fffffd806c537370,5,0,ffff80002a551120,de6dd32e50957b,1007d,5) at fill_file+0xb88 sys/kern/kern_sysctl.c:1548
sysctl_file(ffff80002a4fb468,4,20000100,ffff80002a4fb498,ffff8000376256e8) at sysctl_file+0x7db sys/kern/kern_sysctl.c:1728
kern_sysctl(ffff80002a4fb464,5,20000100,ffff80002a4fb498,0,fffffffffffffe59,228b6a869dcf2f4e) at kern_sysctl+0x5ff sys/kern/kern_sysctl.c:493
sys_sysctl(ffff8000376256e8,ffff80002a4fb5d0,ffff80002a4fb520) at sys_sysctl+0x41f
syscall(ffff80002a4fb5d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2825f19afb0, count: -6
ddb> machine ddbcpu 1
No such command
ddb> trace
fill_file(ffff8000012c6800,fffffd8079c22a58,fffffd806c537370,5,0,ffff80002a551120,de6dd32e50957b,1007d,5) at fill_file+0xb88 sys/kern/kern_sysctl.c:1548
sysctl_file(ffff80002a4fb468,4,20000100,ffff80002a4fb498,ffff8000376256e8) at sysctl_file+0x7db sys/kern/kern_sysctl.c:1728
kern_sysctl(ffff80002a4fb464,5,20000100,ffff80002a4fb498,0,fffffffffffffe59,228b6a869dcf2f4e) at kern_sysctl+0x5ff sys/kern/kern_sysctl.c:493
sys_sysctl(ffff8000376256e8,ffff80002a4fb5d0,ffff80002a4fb520) at sys_sysctl+0x41f
syscall(ffff80002a4fb5d0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2825f19afb0, count: -6

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/07 16:05 openbsd 46cdafa7e1c2 f593e91c .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main protection_fault: fill_file
* Struck through repros no longer work on HEAD.