syzbot


panic: unhandled af 187

Status: closed as dup on 2020/01/03 12:49
Reported-by: syzbot+c524b36bfb5d5bae1fdd@syzkaller.appspotmail.com
First crash: 1788d, last: 1788d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: unhandled af C 21 1785d 1787d

Sample crash report:
login: panic: unhandled af 187
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 339269  24605      0         0x2          0    0  syz-executor1802
*497912  24605      0         0x2  0x4000000    1K syz-executor1802
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d81f2) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(bb) at unhandled_af+0x16
pf_addrcpy(ffff800020b26c18,ffff800020b26f10,bb) at pf_addrcpy+0x99 sys/net/pf.c:409
pfioctl(4900,c0504417,ffff800020b26f10,1,ffff800020ad8288) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd806f6d2430,c0504417,ffff800020b26f10,1,fffffd807f7beae0,ffff800020ad8288) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd8072e6d558,c0504417,ffff800020b26f10,ffff800020ad8288) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff800020ad8288,ffff800020b27028,ffff800020b27070) at sys_ioctl+0x5b9
syscall(ffff800020b270f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b270f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3a21d4dc550, count: 5
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
unhandled af 187
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d81f2) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(bb) at unhandled_af+0x16
pf_addrcpy(ffff800020b26c18,ffff800020b26f10,bb) at pf_addrcpy+0x99 sys/net/pf.c:409
pfioctl(4900,c0504417,ffff800020b26f10,1,ffff800020ad8288) at pfioctl+0x43cf sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd806f6d2430,c0504417,ffff800020b26f10,1,fffffd807f7beae0,ffff800020ad8288) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd8072e6d558,c0504417,ffff800020b26f10,ffff800020ad8288) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff800020ad8288,ffff800020b27028,ffff800020b27070) at sys_ioctl+0x5b9
syscall(ffff800020b270f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b270f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3a21d4dc550, count: -10
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020b26ad0
rbx               0xffff800020b26b80
rdx                             0x8b
rcx                              0x2
rax                              0x1
r8                0xffffffff81babddf    kprintf+0x16f
r9                               0x1
r10               0x955aad6b3278cd2e
r11               0x55b043b38fcb6053
r12                     0x3000000008
r13               0xffff800020b26ae0
r14                            0x100
r15                              0x1
rip               0xffffffff8144bd18    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020b26ac0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor1802) pid=497912 stat=onproc
    flags process=2<EXEC> proc=4000000<THREAD>
    pri=54, usrpri=54, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ad8010,0xffffffff82657d48
    process=0xffff800020aa3540 user=0xffff800020b22000, vmspace=0xfffffd806e7a32e8
    estcpu=4, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 24605  339269  75062      0  7         0x2                syz-executor1802
 24605   23252  75062      0  3   0x4000082  fsleep        syz-executor1802
*24605  497912  75062      0  7   0x4000002                syz-executor1802
 75062  210183  89726      0  3    0x10008a  pause         ksh
 89726  240338  12422      0  3        0x92  select        sshd
 33616    2517      1      0  3    0x100083  ttyin         getty
 12422  490582      1      0  3        0x80  select        sshd
 14588   72165  78030     74  3    0x100092  bpf           pflogd
 78030  512425      1      0  3        0x80  netio         pflogd
 73936  137114  93283     73  3    0x100090  kqread        syslogd
 93283   52327      1      0  3    0x100082  netio         syslogd
 33773  385428      1     77  3    0x100090  poll          dhclient
 80156    1145      1      0  3        0x80  poll          dhclient
 17109  201190      0      0  3     0x14200  pgzero        zerothread
 34928  317249      0      0  3     0x14200  aiodoned      aiodoned
 71530  491083      0      0  3     0x14200  syncer        update
 97973  255820      0      0  3     0x14200  cleaner       cleaner
  1431  110931      0      0  3     0x14200  reaper        reaper
 97459  369431      0      0  3     0x14200  pgdaemon      pagedaemon
 20855  147603      0      0  3     0x14200  bored         crynlk
 94323  423438      0      0  3     0x14200  bored         crypto
 11571  179690      0      0  3  0x40014200  acpi0         acpi0
 87533  226436      0      0  3  0x40014200                idle1
  7783  177739      0      0  3     0x14200  bored         softnet
 36808  494475      0      0  3     0x14200  bored         systqmp
 37075   71888      0      0  3     0x14200  bored         systq
 48340  395687      0      0  3  0x40014200  bored         softclock
 20283  334778      0      0  3  0x40014200                idle0
 47947  420246      0      0  3     0x14200  bored         smr
     1  133740      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 24605 (syz-executor1802) thread 0xffff800020ad8288 (497912)
exclusive rwlock netlock r = 0 (0xffffffff8249bdb8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  pfioctl+0x15f sys/net/pf_ioctl.c:1028
#2  VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
#3  vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
#4  sys_ioctl+0x5b9
#5  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82624950)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1  syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9461   6393K    6394K  78643K     10552        0
            pcb    13      8K       8K  78643K        13        0
         rtable    61      2K       2K  78643K       127        0
         ifaddr    29      8K       8K  78643K        30        0
       counters    39     33K      33K  78643K        39        0
       ioctlops     0      0K       4K  78643K      1467        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1181     74K      74K  78643K      1186        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       1K  78643K         2        0
         VM map     2      1K       1K  78643K         2        0
            sem     2      0K       0K  78643K         2        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     1      0K       0K  78643K         1        0
           proc    59     63K      71K  78643K       358        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    11      0K       0K  78643K        11        0
    ether_multi     1      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    19     95K      95K  78643K        19        0
           exec     0      0K       1K  78643K       177        0
        pagedep     1      8K       8K  78643K         1        0
       inodedep     1     32K      32K  78643K         1        0
         newblk     1      0K       0K  78643K         1        0
        VM swap     7     26K      26K  78643K         7        0
       UVM amap    69      3K       3K  78643K       819        0
       UVM aobj     2      2K       2K  78643K         2        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
            NDP     4      0K       0K  78643K         4        0
           temp    26   3007K    3071K  78643K      1977        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64        2    0        0     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       15    0       13     1     0     1     1     0     8    0
rtentry    112       23    0        1     1     0     1     1     0     8    0
unpcb      120       29    0       19     1     0     1     1     0     8    0
syncache   264        5    0        5     2     1     1     1     0     8    1
tcpcb      544        8    0        5     1     0     1     1     0     8    0
inpcb      280       29    0       23     1     0     1     1     0     8    0
pfosfp      40      846    0      423     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24        9    0        0     1     0     1     1     0     8    0
pfstkey    112        9    0        0     1     0     1     1     0     8    0
pfstate    328        9    0        0     1     0     1     1     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256       96    0        0     6     0     6     6     0     8    0
art_table   32       97    0        0     1     0     1     1     0     8    0
art_node    16       22    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1401    0       16    45     0    45    45     0     8    0
ffsino     272     1401    0       16    93     0    93    93     0     8    0
nchpl      144     1577    0       34    58     0    58    58     0     8    0
uvmvnodes   72     1411    0        0    26     0    26    26     0     8    0
vnodes     208     1411    0        0    75     0    75    75     0     8    0
namei      1024    3774    0     3774     2     1     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
scxspl     192     2564    0     2564     3     2     1     2     0     8    1
plimitpl   152       14    0        8     1     0     1     1     0     8    0
sigapl     432      204    0      192     2     0     2     2     0     8    0
futexpl     56        1    0        0     1     0     1     1     0     8    0
knotepl    112        5    0        0     1     0     1     1     0     8    0
kqueuepl   104        1    0        0     1     0     1     1     0     8    0
pipepl     112      128    0      121     2     1     1     1     0     8    0
fdescpl    488      205    0      192     3     0     3     3     0     8    0
filepl     152      998    0      948     2     0     2     2     0     8    0
lockfpl    104        5    0        4     1     0     1     1     0     8    0
lockfspl    48        3    0        2     1     0     1     1     0     8    0
sessionpl  112       18    0        9     1     0     1     1     0     8    0
pgrppl      48       18    0        9     1     0     1     1     0     8    0
ucredpl     96       52    0       43     1     0     1     1     0     8    0
zombiepl   144      192    0      192     2     1     1     1     0     8    1
processpl  904      220    0      192     4     0     4     4     0     8    0
procpl     632      222    0      192     3     0     3     3     0     8    0
sockpl     384       73    0       55     2     0     2     2     0     8    0
mcl4k      4096       2    0        0     1     0     1     1     0     8    0
mcl2k      2048      79    0        0    10     0    10    10     0     8    0
mtagpl      80        1    0        0     1     0     1     1     0     8    0
mbufpl     256      104    0        0     7     0     7     7     0     8    0
bufpl      280     2210    0      274   139     0   139   139     0     8    0
anonpl      16    19243    0    17949     7     1     6     7     0   125    0
amapchunkpl 152     529    0      487     2     0     2     2     0   158    0
amappl16   192       30    0       28     1     0     1     1     0     8    0
amappl15   184       50    0       47     1     0     1     1     0     8    0
amappl14   176       15    0       14     2     1     1     1     0     8    0
amappl12   160        6    0        6     1     1     0     1     0     8    0
amappl11   152       49    0       34     1     0     1     1     0     8    0
amappl10   144        2    0        0     1     0     1     1     0     8    0
amappl9    136      424    0      423     1     0     1     1     0     8    0
amappl8    128       70    0       64     1     0     1     1     0     8    0
amappl7    120       75    0       67     1     0     1     1     0     8    0
amappl6    112       50    0       46     1     0     1     1     0     8    0
amappl5    104      129    0      116     1     0     1     1     0     8    0
amappl4     96      464    0      437     1     0     1     1     0     8    0
amappl3     88      108    0      100     1     0     1     1     0     8    0
amappl2     80      787    0      722     2     0     2     2     0     8    0
amappl1     72    13951    0    13510    16     6    10    16     0     8    0
amappl      80      410    0      387     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       18    0       17     1     0     1     1     0     8    0
aobjpl      64        1    0        0     1     0     1     1     0     8    0
uaddrrnd    24      205    0      192     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      205    0      192     1     0     1     1     0     8    0
vmmpekpl   168     5365    0     5344     1     0     1     1     0     8    0
vmmpepl    168    29591    0    28679    56    14    42    51     0   357    2
vmsppl     368      204    0      192     2     0     2     2     0     8    0
pdppl      4096     417    0      384     5     0     5     5     0     8    0
pvpl        32    79322    0    76248    32     3    29    29     0   265    2
pmappl     232      204    0      192     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      139    0        4     4     0     4     4     0     8    0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/02 18:41 openbsd e52e7f29912c 25a0186e .config console log report syz C ci-openbsd-multicore
2020/01/02 18:25 openbsd e52e7f29912c 25a0186e .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.