syzbot


uvm_fault: fifo_write

Status: auto-closed as invalid on 2020/01/28 14:46
Reported-by: syzbot+dab3afe598e6a1e81201@syzkaller.appspotmail.com
First crash: 1935d, last: 1935d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd uvm_fault: fifo_write (2) C 3430 164d 1150d 0/3 upstream: reported C repro on 2021/12/24 05:29

Sample crash report:
uvm_fault(0xfffffd803f013dd0, 0x8, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      fifo_write+0x4e:        movq    0x8(%rax),%r12
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xfffffd803f013dd0, 0x8, 0, 1) -> e
fifo_write(ffff800017583440) at fifo_write+0x4e sys/miscfs/fifofs/fifo_vnops.c:246
end trace frame: 0xffff8000175834b0, count: 0
ddb> trace
fifo_write(ffff800017583440) at fifo_write+0x4e sys/miscfs/fifofs/fifo_vnops.c:246
VOP_WRITE(fffffd802ec36d08,ffff8000175834d8,8,fffffd803f7c6b40) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
vn_rdwr(1,fffffd802ec36d08,ffff80001485bc00,4d,0,1) at vn_rdwr+0xef sys/kern/vfs_vnops.c:333
ufs_symlink(ffff800017583600) at ufs_symlink+0x121 sys/ufs/ufs/ufs_vnops.c:1400
VOP_SYMLINK(fffffd80380cd280,ffff800017583778,ffff8000175837c8,ffff8000175836a8,ffff80001485bc00) at VOP_SYMLINK+0xdd sys/kern/vfs_vops.c:498
dosymlinkat(ffff8000ffff2780,20000040,3,200000c0) at dosymlinkat+0x161 sys/kern/vfs_syscalls.c:1739
syscall(ffff800017583950) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffffe,0,3,f199fe77010) at Xsyscall+0x128
end of kernel
end trace frame: 0xf1beb2bf370, count: -8
ddb> show registers
rdi               0xffffffff81818cf7    fifo_write+0x47
rsi                            0x600
rbp               0xffff800017583430
rbx                              0x8
rdx                            0x601
rcx               0xffff80001653f000
rax                                0
r8                                 0
r9                               0x1
r10               0xc5b2cbe4f1752881
r11               0x703c5d766fc6c17b
r12                              0x1
r13               0xffff8000175834d8
r14               0xffff800017583440
r15               0xfffffd802ec36d08
rip               0xffffffff81818cfe    fifo_write+0x4e
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff8000175833f0
ss                              0x10
fifo_write+0x4e:        movq    0x8(%rax),%r12
ddb> show proc
PROC (syz-executor.1) pid=121469 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=17, usrpri=78, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff2ee8,0xffffffff8256b828
    process=0xffff8000ffff6a30 user=0xffff80001757e000, vmspace=0xfffffd803f013dd0
    estcpu=28, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 21889   70829      1      0  2           0                syz-executor.1
*21889  121469      1      0  7   0x4000000                syz-executor.1
 42944  473486      0      0  3     0x14200  bored         sosplice
 94367  372427      0      0  3     0x14200  acct          acct
 92336    7311  72691      0  2         0x2                syz-executor.0
 72691  324988  37492      0  3        0x82  thrsleep      syz-fuzzer
 72691   36156  37492      0  2   0x4000482                syz-fuzzer
 72691   62969  37492      0  3   0x4000082  kqread        syz-fuzzer
 72691  283317  37492      0  3   0x4000082  thrsleep      syz-fuzzer
 72691  301717  37492      0  3   0x4000082  thrsleep      syz-fuzzer
 72691  355319  37492      0  3   0x4000082  thrsleep      syz-fuzzer
 72691  476857  37492      0  3   0x4000082  thrsleep      syz-fuzzer
 37492  298209  70528      0  3    0x10008a  pause         ksh
 70528  383206  82680      0  3        0x92  select        sshd
 60423  276240      1      0  3    0x100083  ttyin         getty
 82680  340884      1      0  3        0x80  select        sshd
 60316  145402  97130     73  2    0x100090                syslogd
 97130  308049      1      0  3    0x100082  netio         syslogd
 49220   59849      1     77  3    0x100090  poll          dhclient
 62329  495280      1      0  3        0x80  poll          dhclient
 23766  321443      0      0  2     0x14200                zerothread
 67485  520197      0      0  3     0x14200  aiodoned      aiodoned
 87734  301099      0      0  3     0x14200  syncer        update
 21134  491373      0      0  3     0x14200  cleaner       cleaner
 60958  471832      0      0  3     0x14200  reaper        reaper
 34677  198349      0      0  3     0x14200  pgdaemon      pagedaemon
 73976  118710      0      0  3     0x14200  bored         crynlk
 11301  354274      0      0  3     0x14200  bored         crypto
 40910  198946      0      0  3  0x40014200  acpi0         acpi0
 96031   28779      0      0  3     0x14200  bored         softnet
 26214   46296      0      0  3     0x14200  bored         systqmp
 82834  433875      0      0  3     0x14200  bored         systq
 36887  248991      0      0  3  0x40014200  bored         softclock
 77571  272489      0      0  3  0x40014200                idle0
 71151  161033      0      0  3     0x14200  bored         smr
     1  380583      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 Kern Lim
         devbuf  9505   6336K    8596K  78643K     11712        0        0
            pcb    13      8K       8K  78643K        87        0        0
         rtable    91      3K       4K  78643K       388        0        0
         ifaddr    58     12K      13K  78643K       108        0        0
       counters    19     16K      16K  78643K        19        0        0
       ioctlops     0      0K       2K  78643K        26        0        0
            iov     0      0K      24K  78643K        73        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1249     78K      79K  78643K      1537        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         3        0        0
         VM map     6      1K       1K  78643K         6        0        0
            sem    12      0K       0K  78643K       153        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1793    195K     288K  78643K     12645        0        0
      file desc     4      9K      25K  78643K       220        0        0
          sigio     0      0K       0K  78643K         2        0        0
           proc    48     38K      63K  78643K       401        0        0
        subproc    32      2K       2K  78643K        51        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         8        0        0
       in_multi    22      1K       2K  78643K        59        0        0
    ether_multi     1      0K       0K  78643K         2        0        0
            mrt     0      0K       0K  78643K         2        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    48    212K     212K  78643K        48        0        0
           exec     0      0K       1K  78643K       223        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    98     37K      37K  78643K      1419        0        0
       UVM aobj     6      2K       2K  78643K         6        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        68        0        0
            NDP    13      0K       0K  78643K        32        0        0
           temp   155   3530K    3594K  78643K      6873        0        0
         kqueue     0      0K       0K  78643K         6        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       12    0        8     1     0     1     1     0     8    0
rtpcb       80       35    0       33     1     0     1     1     0     8    0
rtentry    112       72    0       38     2     0     2     2     0     8    0
unpcb      120      297    0      289     2     1     1     2     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32      160    0      160     1     1     0     1     0     8    0
tcpcb      544      186    0      182     2     1     1     2     0     8    0
ipq         40        2    0        2     1     1     0     1     0     8    0
ipqe        40        6    0        6     1     1     0     1     0     8    0
inpcb      280      375    0      368     2     0     2     2     0     8    1
rttmr       72        1    0        1     1     1     0     1     0     8    0
nd6         48        7    0        5     1     0     1     1     0     8    0
ppxss      1128       7    0        7     1     1     0     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      335    0      162    15     2    13    15     0     8    0
art_table   32      336    0      162     2     0     2     2     0     8    0
art_node    16       71    0       40     1     0     1     1     0     8    0
sysvmsgpl   40       22    0       12     1     0     1     1     0     8    0
semupl     112        2    0        2     1     1     0     1     0     8    0
semapl     112      151    0      141     1     0     1     1     0     8    0
shmpl      112        4    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1735    0      340    46     0    46    46     0     8    0
ffsino     240     1735    0      340    83     0    83    83     0     8    0
nchpl      144     2272    0     1832    60    40    20    60     0     8    0
uvmvnodes   72     2040    0        0    38     0    38    38     0     8    0
vnodes     208     2040    0        0   108     0   108   108     0     8    0
namei      1024    6244    0     6242     1     0     1     1     0     8    0
vcpupl     1984       4    0        0     1     0     1     1     0     8    0
vmpool     520        4    0        0     1     0     1     1     0     8    0
scxspl     192     6238    0     6238     8     7     1     7     0     8    1
plimitpl   152       33    0       26     1     0     1     1     0     8    0
sigapl     432      387    0      375     2     0     2     2     0     8    0
futexpl     56     6427    0     6427     1     0     1     1     0     8    1
knotepl    112      101    0       82     1     0     1     1     0     8    0
kqueuepl   104       55    0       53     1     0     1     1     0     8    0
pipepl     112      252    0      235     1     0     1     1     0     8    0
fdescpl    424      388    0      375     2     0     2     2     0     8    0
filepl     120     2864    0     2770     5     1     4     5     0     8    1
lockfpl    104       60    0       59     1     0     1     1     0     8    0
lockfspl    48       21    0       20     1     0     1     1     0     8    0
sessionpl  112       18    0        8     1     0     1     1     0     8    0
pgrppl      48       48    0       38     1     0     1     1     0     8    0
ucredpl     96      239    0      232     1     0     1     1     0     8    0
zombiepl   144      375    0      374     1     0     1     1     0     8    0
processpl  864      404    0      374     4     0     4     4     0     8    0
procpl     632      665    0      628     4     0     4     4     0     8    0
sosppl     128        4    0        4     1     1     0     1     0     8    0
sockpl     384      710    0      693     5     1     4     5     0     8    2
mcl64k     65536     57    0       57     1     0     1     1     0     8    1
mcl16k     16384      5    0        5     2     1     1     1     0     8    1
mcl12k     12288     11    0       11     1     0     1     1     0     8    1
mcl9k      9216       3    0        3     1     1     0     1     0     8    0
mcl8k      8192      11    0       11     1     0     1     1     0     8    1
mcl4k      4096      38    0       38     2     1     1     1     0     8    1
mcl2k      2048   69865    0    69818    18    10     8    15     0     8    1
mtagpl      80      148    0       94     3     1     2     2     0     8    0
mbufpl     256   113152    0   112968    21     8    13    18     0     8    0
bufpl      256     6698    0     1783   308     0   308   308     0     8    0
anonpl      16    83433    0    63593    96     1    95    95     0    62   15
amapchunkpl 152    2017    0     1895    10     1     9     9     0   158    3
amappl16   192     3455    0     2314    80    14    66    70     0     8    8
amappl14   176       78    0       72     1     0     1     1     0     8    0
amappl13   168       10    0        9     1     0     1     1     0     8    0
amappl12   160       12    0        8     1     0     1     1     0     8    0
amappl11   152       54    0       41     1     0     1     1     0     8    0
amappl10   144        7    0        7     1     1     0     1     0     8    0
amappl9    136      667    0      663     1     0     1     1     0     8    0
amappl8    128      261    0      231     2     0     2     2     0     8    0
amappl7    120       38    0       33     1     0     1     1     0     8    0
amappl6    112       58    0       51     1     0     1     1     0     8    0
amappl5    104      150    0      139     1     0     1     1     0     8    0
amappl4     96      579    0      552     1     0     1     1     0     8    0
amappl3     88      162    0      157     1     0     1     1     0     8    0
amappl2     80     2253    0     2188     3     1     2     3     0     8    0
amappl1     72    16698    0    16302    25    16     9    20     0     8    0
amappl      80      926    0      889     1     0     1     1     0    84    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
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       17    0       17     1     1     0     1     0     8    0
aobjpl      64        5    0        0     1     0     1     1     0     8    0
uaddrrnd    24      392    0      375     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      392    0      375     1     0     1     1     0     8    0
vmmpekpl   168     6982    0     6955     2     0     2     2     0     8    0
vmmpepl    168    56115    0    53963   142    12   130   138     0   357   33
vmsppl     272      387    0      375     2     1     1     2     0     8    0
pdppl      4096     790    0      754     7     1     6     6     0     8    0
pvpl        32   205114    0   182808   221     2   219   219     0   265   38
pmappl     200      391    0      375     1     0     1     1     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      469    0       27    13     0    13    13     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/30 14:45 openbsd 78f4ad6080f0 5ea87a66 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.