syzbot


uvm_fault: pfi_ifhead_RB_REMOVE

Status: auto-closed as invalid on 2019/10/25 08:40
Reported-by: syzbot+78733867110d637859e3@syzkaller.appspotmail.com
First crash: 2009d, last: 2009d

Sample crash report:
uvm_fault(0xfffffd803f00cd68, 0xa00000030, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at      pfi_ifhead_RB_REMOVE+0xb3:      movq    %r13,0x20(%rbx)
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xfffffd803f00cd68, 0xa00000030, 0, 2) -> e
pfi_ifhead_RB_REMOVE(ffffffff8229fb50,ffff8000009b1d00) at pfi_ifhead_RB_REMOVE+0xb3 sys/net/pf_if.c:80
end trace frame: 0xffff800016bfa5a0, count: 0
ddb> trace
pfi_ifhead_RB_REMOVE(ffffffff8229fb50,ffff8000009b1d00) at pfi_ifhead_RB_REMOVE+0xb3 sys/net/pf_if.c:80
pfi_detach_ifnet(ffff8000009a7000) at pfi_detach_ifnet+0x11e pfi_kif_unref sys/net/pf_if.c:199 [inline]
pfi_detach_ifnet(ffff8000009a7000) at pfi_detach_ifnet+0x11e sys/net/pf_if.c:257
if_detach(ffff8000009a7000) at if_detach+0x15d sys/net/if.c:1118
tun_clone_destroy(ffff8000009a7000) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278
spec_close(ffff800016bfa6d8) at spec_close+0x3b0 sys/kern/spec_vnops.c:553
VOP_CLOSE(fffffd8030354098,2,fffffd803f7c6ae0,ffff8000ffff9520) at VOP_CLOSE+0x64 sys/kern/vfs_vops.c:174
vn_closefile(fffffd80303743d0,ffff8000ffff9520) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline]
vn_closefile(fffffd80303743d0,ffff8000ffff9520) at vn_closefile+0x14b sys/kern/vfs_vnops.c:575
fdrop(fffffd80303743d0,ffff8000ffff9520) at fdrop+0xc9 sys/kern/kern_descrip.c:1260
closef(fffffd80303743d0,ffff8000ffff9520) at closef+0x118 sys/kern/kern_descrip.c:1244
fdfree(ffff8000ffff9520) at fdfree+0xf7 sys/kern/kern_descrip.c:1176
exit1(ffff8000ffff9520,0,1) at exit1+0x329 sys/kern/kern_exit.c:196
sys_exit(ffff8000ffff9520,ffff800016bfa980,ffff800016bfa9f0) at sys_exit+0x17 sys/kern/kern_exit.c:94
syscall(ffff800016bfaa60) at syscall+0x511
Xsyscall(6,1,0,1,0,7f7fffffaaf4) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffaac0, count: -14
ddb> show registers
rdi               0xffffffff8229fb50    pfi_ifs
rsi               0xffff8000009b1d00
rbp               0xffff800016bfa560
rbx                      0xa00000010
rdx                                0
rcx               0xfffffd8036db1400
rax                                0
r8                 0x101010101010101
r9                               0x5
r10               0x54e60541d5f522db
r11               0x154079d29092ac38
r12               0xffffffff8229fb50    pfi_ifs
r13                                0
r14               0xffff8000009b1d00
r15                                0
rip               0xffffffff81700033    pfi_ifhead_RB_REMOVE+0xb3
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff800016bfa500
ss                              0x10
pfi_ifhead_RB_REMOVE+0xb3:      movq    %r13,0x20(%rbx)
ddb> show proc
PROC (syz-executor.0) pid=69323 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    pri=50, usrpri=71, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff9070,0xffffffff822b6920
    process=0xffff8000ffff6d30 user=0xffff800016bf5000, vmspace=0xfffffd803f00cd68
    estcpu=36, cpticks=3, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  9144  460636  84818      0  3        0x82  nanosleep     syz-executor.0
 96343  169449  84818      0  3         0x2  biowait       syz-executor.1
 84818    7601  12452      0  3        0x82  kqread        syz-fuzzer
 84818  190486  12452      0  3   0x4000082  nanosleep     syz-fuzzer
 84818  442338  12452      0  3   0x4000082  thrsleep      syz-fuzzer
 84818  249990  12452      0  3   0x4000082  thrsleep      syz-fuzzer
 84818  222978  12452      0  3   0x4000082  thrsleep      syz-fuzzer
 84818  202613  12452      0  3   0x4000082  thrsleep      syz-fuzzer
 84818  300056  12452      0  3   0x4000082  thrsleep      syz-fuzzer
 12452  202761  44404      0  3    0x10008a  pause         ksh
 44404  333742  33314      0  3        0x92  select        sshd
 22519   10769      1      0  3    0x100083  ttyin         getty
 33314  518349      1      0  3        0x80  select        sshd
 13853  178581   3914     73  2    0x100090                syslogd
  3914  201081      1      0  3    0x100082  netio         syslogd
 42651  216989      1     77  3    0x100090  poll          dhclient
 58163  328420      1      0  3        0x80  poll          dhclient
 61439  484992      0      0  2     0x14200                zerothread
 90687  241681      0      0  3     0x14200  aiodoned      aiodoned
 56230  103486      0      0  3     0x14200  syncer        update
 33863  126800      0      0  3     0x14200  cleaner       cleaner
 17071   45239      0      0  3     0x14200  reaper        reaper
  2832  496990      0      0  3     0x14200  pgdaemon      pagedaemon
 57524  524189      0      0  3     0x14200  bored         crynlk
 97745  501013      0      0  3     0x14200  bored         crypto
 52522   21482      0      0  3  0x40014200  acpi0         acpi0
 46664  282128      0      0  2     0x14200                softnet
 84192  514643      0      0  3     0x14200  bored         systqmp
  2913  453241      0      0  3     0x14200  bored         systq
 67536  264132      0      0  3  0x40014200  bored         softclock
 64928    9263      0      0  3  0x40014200                idle0
 56256  194625      0      0  3     0x14200  bored         smr
     1  222525      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  9459   6317K    6697K  78643K     10723        0        0
            pcb    23      9K       9K  78643K        97        0        0
         rtable   108      3K       4K  78643K       240        0        0
         ifaddr    42     11K      11K  78643K        66        0        0
       counters    19     16K      16K  78643K        19        0        0
       ioctlops     0      0K       2K  78643K        19        0        0
            iov     0      0K      16K  78643K        20        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1207     76K      76K  78643K      1308        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     2      0K       0K  78643K         2        0        0
            sem     6      0K       0K  78643K         8        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1793    195K     288K  78643K     12537        0        0
      file desc     5     13K      25K  78643K       152        0        0
          sigio     0      0K       0K  78643K         2        0        0
           proc    42     30K      54K  78643K       300        0        0
        subproc    32      2K       2K  78643K        34        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         6        0        0
       in_multi    33      2K       2K  78643K        36        0        0
    ether_multi     1      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    42    185K     185K  78643K        42        0        0
           exec     0      0K       1K  78643K       190        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    82     20K      21K  78643K      1177        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         8        0        0
            NDP     7      0K       0K  78643K        17        0        0
           temp   100   2702K    2766K  78643K      3405        0        0
         kqueue     0      0K       0K  78643K         1        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        6    0        0     1     0     1     1     0     8    0
inpcbpl    280       78    0       71     1     0     1     1     0     8    0
plimitpl   152       18    0       11     1     0     1     1     0     8    0
rtentry    112       45    0        1     2     0     2     2     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpcb      544       22    0       18     1     0     1     1     0     8    0
nd6         48        6    0        0     1     0     1     1     0     8    0
ppxss      1128       6    0        6     1     0     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      189    0        0    12     0    12    12     0     8    0
art_table   32      190    0        0     2     0     2     2     0     8    0
art_node    16       44    0        4     1     0     1     1     0     8    0
semapl     112        6    0        2     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     1657    0      244    46     0    46    46     0     8    0
ffsino     240     1657    0      244    84     0    84    84     0     8    0
nchpl      144     2063    0      431    61     0    61    61     0     8    0
uvmvnodes   72     1739    0        0    32     0    32    32     0     8    0
vnodes     200     1739    0        0    92     0    92    92     0     8    0
namei      1024    5294    0     5294     2     1     1     1     0     8    1
scxspl     192     5240    0     5239     8     7     1     6     0     8    0
sigapl     432      323    0      310     2     0     2     2     0     8    0
futexpl     56     1896    0     1896     1     0     1     1     0     8    1
knotepl    112       74    0       55     1     0     1     1     0     8    0
kqueuepl   104       34    0       32     1     0     1     1     0     8    0
pipepl     112      184    0      165     2     1     1     1     0     8    0
fdescpl    424      324    0      310     2     0     2     2     0     8    0
filepl     120     1708    0     1613     4     0     4     4     0     8    1
lockfpl    104       52    0       52     2     1     1     1     0     8    1
lockfspl    48       21    0       21     2     1     1     1     0     8    1
sessionpl  112       17    0        7     1     0     1     1     0     8    0
pgrppl      48       17    0        7     1     0     1     1     0     8    0
ucredpl     96      252    0      245     1     0     1     1     0     8    0
zombiepl   144      311    0      310     2     1     1     1     0     8    0
processpl  840      338    0      310     4     0     4     4     0     8    0
procpl     600      500    0      466     4     0     4     4     0     8    1
sockpl     384      152    0      135     3     0     3     3     0     8    1
mcl64k     65536      1    0        1     1     0     1     1     0     8    1
mcl16k     16384      2    0        2     1     0     1     1     0     8    1
mcl12k     12288      3    0        3     1     0     1     1     0     8    1
mcl8k      8192       3    0        3     1     0     1     1     0     8    1
mcl4k      4096      11    0       11     1     0     1     1     0     8    1
mcl2k2     2112       2    0        2     1     0     1     1     0     8    1
mcl2k      2048   51185    0    51142    13     5     8    11     0     8    2
mtagpl      80        2    0        2     1     1     0     1     0     8    0
mbufpl     256    83926    0    83847    12     3     9     9     0     8    2
bufpl      256     5860    0     1387   280     0   280   280     0     8    0
anonpl      16    36138    0    27785    37     2    35    35     0    62    0
amapchunkpl 152    1465    0     1362     7     1     6     7     0   158    0
amappl16   192      977    0      554    23     0    23    23     0     8    1
amappl15   184       57    0       55     1     0     1     1     0     8    0
amappl14   176       93    0       89     2     1     1     1     0     8    0
amappl13   168        8    0        7     1     0     1     1     0     8    0
amappl12   160        9    0        6     1     0     1     1     0     8    0
amappl11   152       55    0       41     1     0     1     1     0     8    0
amappl10   144       66    0       64     2     1     1     1     0     8    0
amappl9    136      612    0      607     1     0     1     1     0     8    0
amappl8    128      185    0      171     1     0     1     1     0     8    0
amappl7    120       32    0       28     1     0     1     1     0     8    0
amappl6    112       51    0       45     1     0     1     1     0     8    0
amappl5    104      129    0      119     1     0     1     1     0     8    0
amappl4     96      451    0      431     1     0     1     1     0     8    0
amappl3     88      177    0      167     1     0     1     1     0     8    0
amappl2     80     1862    0     1794     4     2     2     3     0     8    0
amappl1     72    14691    0    14285    25    14    11    19     0     8    1
amappl      80      737    0      700     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
dma64       64      259    0      259     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      324    0      310     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      324    0      310     1     0     1     1     0     8    0
vmmpekpl   168     6202    0     6175     2     0     2     2     0     8    0
vmmpepl    168    41454    0    40070    93    21    72    74     0   357   10
vmsppl     264      323    0      310     2     1     1     2     0     8    0
pdppl      4096     655    0      620     6     1     5     6     0     8    0
pvpl        32   133293    0   121944   107     8    99   102     0   265    6
pmappl     200      323    0      310     1     0     1     1     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      420    0       12    12     0    12    12     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/26 00:47 openbsd ffa74332a4c4 85c57315 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.