syzbot


assert "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managerspanic: kernel diagnostic assertion "!_kernel_lock_

Status: closed as dup on 2019/10/22 02:13
Reported-by: syzbot+c92fadd0817fabe22f4e@syzkaller.appspotmail.com
First crash: 1656d, last: 1656d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
assert "rt->rt_ifa->ifa_ifp != NULL" failed in route.c 830 1639d 1679d

Sample crash report:
g
Γg
Γpanic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managerspanic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 690
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
  61827  33955      0           0  0x4000000    0  syz-executor.0
*329702  33955      0           0  0x4000000    1  syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
__assert(ffffffff82206dec,ffffffff821f4f4f,2b2,ffffffff821d6fd3) at __assert+0x2b sys/kern/subr_prf.c:154
proc_trampoline_mp() at proc_trampoline_mp+0x123
end trace frame: 0x0, count: 11
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
kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
__assert(ffffffff82206dec,ffffffff821f4f4f,2b2,ffffffff821d6fd3) at __assert+0x2b sys/kern/subr_prf.c:154
proc_trampoline_mp() at proc_trampoline_mp+0x123
end trace frame: 0x0, count: -4
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800023d9daf0
rbx               0xffff800023d9dba0
rdx               0xffff800020abe018
rcx                                0
rax                                0
r8                0xffffffff819b183f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xfc8669f46f08e455
r12                     0x3000000008
r13               0xffff800023d9db00
r14                            0x104
r15                              0x1
rip               0xffffffff8195ee38    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800023d9dae0
ss                                 0
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.0) pid=329702 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020abe780,0xffff800020ac0298
    process=0xffff800020add500 user=0xffff800023d98000, vmspace=0xfffffd807f00b450
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 18869  221700  90590      0  2           0                syz-executor.1
 33955   69687  99978      0  2           0                syz-executor.0
 33955   61827  99978      0  7   0x4000000                syz-executor.0
*33955  329702  99978      0  7   0x4000000                syz-executor.0
 33955  259898  99978      0  2   0x4000000                syz-executor.0
 90590  418378  12814      0  3        0x82  nanosleep     syz-executor.1
 35414   94186      1      0  3    0x100083  ttyin         getty
 99978  481590  12814      0  3        0x82  nanosleep     syz-executor.0
 12427  412932      0      0  3     0x14200  acct          acct
 11628  432593      0      0  3     0x14200  bored         sosplice
 12814  444911  94400      0  3        0x82  thrsleep      syz-fuzzer
 12814  438371  94400      0  3   0x4000082  nanosleep     syz-fuzzer
 12814  310047  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814  410821  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814  297602  94400      0  3   0x4000082  kqread        syz-fuzzer
 12814   39407  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814   63759  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814    2071  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814  134483  94400      0  3   0x4000082  thrsleep      syz-fuzzer
 12814  340929  94400      0  3   0x4000082  nanosleep     syz-fuzzer
 94400   15185  87859      0  3    0x10008a  pause         ksh
 87859  163658  69629      0  3        0x92  select        sshd
 69629  272163      1      0  3        0x80  select        sshd
  1456  317306  58838     74  3    0x100092  bpf           pflogd
 58838  242427      1      0  3        0x80  netio         pflogd
 60365  311299  36991     73  3    0x100090  kqread        syslogd
 36991  243720      1      0  3    0x100082  netio         syslogd
  3624  272364      1     77  3    0x100090  poll          dhclient
 52426  481153      1      0  3        0x80  poll          dhclient
 47868  336127      0      0  2     0x14200                zerothread
 42982  252867      0      0  3     0x14200  aiodoned      aiodoned
 92359  287819      0      0  3     0x14200  syncer        update
 58225  414573      0      0  3     0x14200  cleaner       cleaner
 28534  309265      0      0  3     0x14200  reaper        reaper
 50255  111985      0      0  3     0x14200  pgdaemon      pagedaemon
 48881  390934      0      0  3     0x14200  bored         crynlk
 26034  501485      0      0  3     0x14200  bored         crypto
 66307  104097      0      0  3  0x40014200  acpi0         acpi0
 66177  350721      0      0  3  0x40014200                idle1
 99693  235561      0      0  3     0x14200  bored         softnet
 85363  193907      0      0  3     0x14200  bored         systqmp
 11188  499573      0      0  3     0x14200  bored         systq
 14618  476940      0      0  3  0x40014200  bored         softclock
 71154  102492      0      0  3  0x40014200                idle0
 37524   31457      0      0  3     0x14200  bored         smr
     1  305782      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 33955 (syz-executor.0) thread 0xffff800020abf160 (61827)
exclusive rwlock netlock r = 0 (0xffffffff82478e48)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sys_connect+0x6b sys/kern/uipc_syscalls.c:362
#3  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#3  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#4  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8263e9d8)
#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 Kern Lim
         devbuf  9637   7736K    8700K  78643K     24592        0        0
            pcb    13      8K       8K  78643K       611        0        0
         rtable   107     13K      14K  78643K      1952        0        0
         ifaddr    86     18K      19K  78643K       524        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1583        0        0
            iov     0      0K      28K  78643K       536        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1236     78K      78K  78643K      5307        0        0
      UFS quota     1     32K      32K  78643K         1        0        0
      UFS mount     5     36K      36K  78643K         5        0        0
            shm     3      5K       5K  78643K        28        0        0
         VM map    19      9K       9K  78643K        25        0        0
            sem    12      0K       0K  78643K       608        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12765        0        0
      file desc     6     17K      25K  78643K      2593        0        0
          sigio     0      0K       0K  78643K       631        0        0
           proc    62     63K      95K  78643K      1365        0        0
        subproc    32      2K       2K  78643K       306        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
    ip_moptions     0      0K       1K  78643K       206        0        0
       in_multi    26      1K       2K  78643K       348        0        0
    ether_multi     1      0K       0K  78643K        30        0        0
            mrt     0      0K       0K  78643K        17        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    90    397K     397K  78643K        90        0        0
           exec     0      0K       1K  78643K       620        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   142    177K     177K  78643K     10171        0        0
       UVM aobj   130      7K       7K  78643K       149        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       2K  78643K       562        0        0
            NDP    20      0K       0K  78643K       163        0        0
           temp   228   3565K    4200K  78643K     79399        0        0
         kqueue     0      0K       0K  78643K        21        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       84    0       79     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80      201    0      199     1     0     1     1     0     8    0
rtentry    112      370    0      333     2     0     2     2     0     8    0
unpcb      120     2269    0     2257     4     3     1     2     0     8    0
syncache   264       13    0       13     7     7     0     1     0     8    0
sackhl      24        2    0        2     2     2     0     1     0     8    0
tcpqe       32      156    0      156     2     2     0     1     0     8    0
tcpcb      544     1012    0     1008     6     5     1     4     0     8    0
inpcb      280     4238    0     4228     9     7     2     4     0     8    1
rttmr       72        5    0        5     4     4     0     1     0     8    0
ip6q        72        4    0        4     1     1     0     1     0     8    0
ip6af       40        9    0        9     2     2     0     1     0     8    0
nd6         48       49    0       46     3     2     1     1     0     8    0
pkpcb       40       22    0       22     6     6     0     1     0     8    0
ppxss      1128      71    0       71     5     4     1     1     0     8    1
pffrag     232       58    0       58     8     8     0     1     0   482    0
pffrnode    88       58    0       58     8     8     0     1     0     8    0
pffrent     40     2238    0     2238     8     8     0     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      380    0      302     1     0     1     1     0     8    0
pfstkey    112      380    0      302     3     0     3     3     0     8    0
pfstate    328      380    0      296     8     0     8     8     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096      10    0        9     7     6     1     3     0     8    0
art_heap4  256     1458    0     1268    29    13    16    16     0     8    3
art_table   32     1468    0     1277     3     0     3     3     0     8    1
art_node    16      369    0      335     1     0     1     1     0     8    0
sysvmsgpl   40       66    0       40     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      604    0      594     1     0     1     1     0     8    0
shmpl      112      147    0       19     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     5315    0     3900    46     0    46    46     0     8    0
ffsino     272     5315    0     3900    95     0    95    95     0     8    0
nchpl      144     9718    0     8104    61     0    61    61     0     8    0
uvmvnodes   72     5926    0        0   108     0   108   108     0     8    0
vnodes     208     5926    0        0   312     0   312   312     0     8    0
namei      1024   34395    0    34395     1     0     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vcpupl     1984      17    0        0     3     0     3     3     0     8    0
vmpool     552       23    0        6     2     0     2     2     0     8    0
scsiplug    64        5    0        5     3     3     0     1     0     8    0
scxspl     192    28780    0    28780    21    19     2     7     0     8    2
plimitpl   152      203    0      195     1     0     1     1     0     8    0
sigapl     432     2747    0     2731     3     1     2     3     0     8    0
futexpl     56    61152    0    61152     1     0     1     1     0     8    1
knotepl    112      683    0      664     2     1     1     2     0     8    0
kqueuepl   104      659    0      657     1     0     1     1     0     8    0
pipepl     112     2930    0     2911     9     8     1     2     0     8    0
fdescpl    488     2748    0     2731     3     0     3     3     0     8    0
filepl     152    25548    0    25444    17    11     6     7     0     8    1
lockfpl    104      898    0      897     1     0     1     1     0     8    0
lockfspl    48      307    0      306     1     0     1     1     0     8    0
sessionpl  112       36    0       25     1     0     1     1     0     8    0
pgrppl      48       62    0       51     1     0     1     1     0     8    0
ucredpl     96     2780    0     2771     1     0     1     1     0     8    0
zombiepl   144     2731    0     2731     1     0     1     1     0     8    1
processpl  896     2765    0     2731     4     0     4     4     0     8    0
procpl     632     8552    0     8506     5     0     5     5     0     8    1
srpgc       64       16    0       16     7     6     1     1     0     8    1
sosppl     128       66    0       66    10     9     1     1     0     8    1
sockpl     384     6798    0     6774    22    17     5     8     0     8    2
mcl64k     65536     29    0        0     3     0     3     3     0     8    0
mcl16k     16384     12    0        0     2     0     2     2     0     8    0
mcl12k     12288     17    0        0     2     0     2     2     0     8    0
mcl9k      9216      12    0        0     1     0     1     1     0     8    0
mcl8k      8192      17    0        0     3     0     3     3     0     8    0
mcl4k      4096      26    0        0     3     0     3     3     0     8    0
mcl2k2     2112       6    0        0     1     0     1     1     0     8    0
mcl2k      2048     252    0        0    31     6    25    31     0     8    0
mtagpl      80       64    0        0     1     0     1     1     0     8    0
mbufpl     256      821    0        0    42     0    42    42     0     8    0
bufpl      256    13818    0     6770   441     0   441   441     0     8    0
anonpl      16   328415    0   312568   129    45    84    95     0   124    3
amapchunkpl 152   20500    0    20363    45    38     7    13     0   158    0
amappl16   192    13499    0    12390   100    43    57    67     0     8    0
amappl15   184      447    0      447     3     3     0     1     0     8    0
amappl14   176      930    0      924     1     0     1     1     0     8    0
amappl13   168      193    0      193     3     3     0     1     0     8    0
amappl12   160      234    0      230     2     1     1     1     0     8    0
amappl11   152      343    0      327     1     0     1     1     0     8    0
amappl10   144      298    0      289     1     0     1     1     0     8    0
amappl9    136     1241    0     1232     1     0     1     1     0     8    0
amappl8    128      787    0      747     4     2     2     2     0     8    0
amappl7    120      383    0      376     1     0     1     1     0     8    0
amappl6    112      331    0      320     1     0     1     1     0     8    0
amappl5    104      490    0      474     1     0     1     1     0     8    0
amappl4     96     2603    0     2570     1     0     1     1     0     8    0
amappl3     88     1553    0     1544     1     0     1     1     0     8    0
amappl2     80    20266    0    20179     3     1     2     3     0     8    0
amappl1     72    71952    0    71515    25    15    10    20     0     8    0
amappl      80     9106    0     9055     2     0     2     2     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      148    0       19     3     0     3     3     0     8    0
uaddrrnd    24     2771    0     2731     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2771    0     2731     1     0     1     1     0     8    0
vmmpekpl   168    29305    0    29256     4     1     3     3     0     8    0
vmmpepl    168   354605    0   352191   246   102   144   157     0   357   37
vmsppl     368     2747    0     2731     2     0     2     2     0     8    0
pdppl      4096    5549    0     5491     8     0     8     8     0     8    0
pvpl        32   881234    0   862575   290    89   201   218     0   265   18
pmappl     232     2770    0     2737     3     1     2     2     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      680    0       33    19     0    19    19     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/22 00:34 openbsd b29f95ed9151 b24d2b8a .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.