syzbot


panic: kernel diagnostic assertpiaonic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/mana

Status: closed as dup on 2019/10/05 07:39
Reported-by: syzbot+f4dde409be98814bd910@syzkaller.appspotmail.com
First crash: 1663d, last: 1663d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
assert "rt->rt_ifa->ifa_ifp != NULL" failed in route.c 830 1629d 1669d

Sample crash report:
panic: kernel diagnostic assertpiaonic: 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
*253509  98922      0           0  0x4000000    1  syz-executor.1
 304781  70836      0           0  0x4000000    0  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(ffffffff82204d9f,ffffffff821f02db,2b2,ffffffff821d43a9) 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(ffffffff82204d9f,ffffffff821f02db,2b2,ffffffff821d43a9) 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               0xffff800022bcb310
rbx               0xffff800022bcb3c0
rdx               0xffff800020ace020
rcx                                0
rax                                0
r8                0xffffffff817d4c1f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11                0x7ed9d7e8af4ebcb
r12                     0x3000000008
r13               0xffff800022bcb320
r14                            0x104
r15                              0x1
rip               0xffffffff81a1d008    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800022bcb300
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.1) pid=253509 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020acf3e0,0xffffffff82630770
    process=0xffff800020add500 user=0xffff800022bc6000, vmspace=0xfffffd807f00b170
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 98922  243802  44447      0  2           0                syz-executor.1
 98922  271495  44447      0  2   0x4000000                syz-executor.1
 98922  383155  44447      0  3   0x4000080  fsleep        syz-executor.1
*98922  253509  44447      0  7   0x4000000                syz-executor.1
 70836   43688  38400      0  2           0                syz-executor.0
 70836  304781  38400      0  7   0x4000000                syz-executor.0
 38400  186451  57731      0  3        0x82  nanosleep     syz-executor.0
 44447   88358  57731      0  3        0x82  nanosleep     syz-executor.1
 80356  427884      0      0  3     0x14200  acct          acct
  6651  472549      1      0  3    0x100083  ttyin         getty
 14341  335469      0      0  3     0x14200  bored         sosplice
 57731  374558  72967      0  3        0x82  thrsleep      syz-fuzzer
 57731  180558  72967      0  3   0x4000082  nanosleep     syz-fuzzer
 57731   94361  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731  134872  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731  254567  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731  198781  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731  520794  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731   90015  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 57731   19959  72967      0  3   0x4000082  kqread        syz-fuzzer
 57731  165374  72967      0  3   0x4000082  thrsleep      syz-fuzzer
 72967  404078  93307      0  3    0x10008a  pause         ksh
 93307  128998  13854      0  3        0x92  select        sshd
 13854  279942      1      0  3        0x80  select        sshd
  1060   52549  50075     74  3    0x100092  bpf           pflogd
 50075  420968      1      0  3        0x80  netio         pflogd
  4486  372472  99768     73  3    0x100090  kqread        syslogd
 99768  414726      1      0  3    0x100082  netio         syslogd
 40504  179300      1     77  3    0x100090  poll          dhclient
 18470   37347      1      0  3        0x80  poll          dhclient
 52861    2460      0      0  2     0x14200                zerothread
  4308  214547      0      0  3     0x14200  aiodoned      aiodoned
 13767   55877      0      0  3     0x14200  syncer        update
 62547  229019      0      0  3     0x14200  cleaner       cleaner
 53989  294842      0      0  3     0x14200  reaper        reaper
  8081  177693      0      0  3     0x14200  pgdaemon      pagedaemon
 86012   27904      0      0  3     0x14200  bored         crynlk
 18451  183936      0      0  3     0x14200  bored         crypto
 10448  428109      0      0  3  0x40014200  acpi0         acpi0
 19050   73627      0      0  3  0x40014200                idle1
 34185  258425      0      0  3     0x14200  bored         softnet
  9889  368739      0      0  3     0x14200  bored         systqmp
 11639  174557      0      0  3     0x14200  bored         systq
  2997  244077      0      0  3  0x40014200  bored         softclock
 24423   41073      0      0  3  0x40014200                idle0
 19414  450310      0      0  3     0x14200  bored         smr
     1  370101      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 70836 (syz-executor.0) thread 0xffff800020ace788 (304781)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262bc68)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rt_clone+0x5c sys/net/route.c:266
#2  rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
#2  rtalloc_mpath+0xba sys/net/route.c:359
#3  in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
#4  udp_output+0x5cf sys/netinet/udp_usrreq.c:937
#5  sosend+0x645 sys/kern/uipc_socket.c:524
#6  sendit+0x52b sys/kern/uipc_syscalls.c:662
#7  sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
#8  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#8  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#9  Xsyscall+0x128
exclusive rwlock netlock r = 0 (0xffffffff824b0188)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x51b sys/kern/uipc_socket.c:512
#3  sendit+0x52b sys/kern/uipc_syscalls.c:662
#4  sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
#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
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9591   6481K    7961K  78643K     16771        0        0
            pcb    13     10K      12K  78643K       487        0        0
         rtable   113      8K       9K  78643K      1484        0        0
         ifaddr    87     18K      19K  78643K       423        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1571        0        0
            iov     0      0K      32K  78643K       389        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1233     77K      78K  78643K      3457        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        27        0        0
         VM map    20     10K      10K  78643K        29        0        0
            sem    12      0K       1K  78643K       532        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12765        0        0
      file desc     6     17K      25K  78643K      2170        0        0
          sigio     0      0K       0K  78643K        28        0        0
           proc    62     63K      95K  78643K      1185        0        0
        subproc    32      2K       2K  78643K       238        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       965        0        0
       in_multi    35      2K       2K  78643K       262        0        0
    ether_multi     1      0K       0K  78643K        23        0        0
            mrt     0      0K       0K  78643K         8        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    78    344K     344K  78643K        78        0        0
           exec     0      0K       1K  78643K       596        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   138    169K     169K  78643K      8774        0        0
       UVM aobj   123      8K       8K  78643K       126        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       434        0        0
            NDP    20      0K       0K  78643K       130        0        0
           temp   228   3565K    4203K  78643K     73201        0        0
         kqueue     0      0K       0K  78643K        28        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       56    0       50     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80      150    0      148     1     0     1     1     0     8    0
rtentry    112      251    0      208     2     0     2     2     0     8    0
unpcb      120      994    0      979     2     1     1     2     0     8    0
syncache   264       16    0       16     8     7     1     1     0     8    1
sackhl      24        3    0        3     2     2     0     1     0     8    0
tcpqe       32     6593    0     6593     4     4     0     2     0     8    0
tcpcb      544     1733    0     1727    23    21     2    12     0     8    1
inpcb      280     3504    0     3494    21    18     3     9     0     8    2
rttmr       72        1    0        1     1     1     0     1     0     8    0
nd6         48       33    0       29     1     0     1     1     0     8    0
pkpcb       40       14    0       14     6     5     1     1     0     8    1
ppxss      1128      47    0       47     7     6     1     1     0     8    1
pffrag     232       42    0       42     7     6     1     1     0   482    1
pffrnode    88       42    0       42     7     6     1     1     0     8    1
pffrent     40      946    0      946     7     6     1     1     0     8    1
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      165    0      102     1     0     1     1     0     8    0
pfstkey    112      165    0      102     3     0     3     3     0     8    0
pfstate    328      165    0      102     7     0     7     7     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       2    0        1     2     1     1     2     0     8    0
art_heap4  256     1005    0      783    22     8    14    17     0     8    0
art_table   32     1007    0      784     3     1     2     3     0     8    0
art_node    16      246    0      207     1     0     1     1     0     8    0
sysvmsgpl   40       34    0       20     1     0     1     1     0     8    0
semupl     112        2    0        2     1     1     0     1     0     8    0
semapl     112      530    0      520     1     0     1     1     0     8    0
shmpl      112      124    0        3     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     4699    0     3293    46     0    46    46     0     8    0
ffsino     272     4699    0     3293    95     0    95    95     0     8    0
nchpl      144     9153    0     8690    61    41    20    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   30469    0    30469     3     2     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vcpupl     1984      18    0        0     3     0     3     3     0     8    0
vmpool     552       27    0        9     5     3     2     2     0     8    0
scsiplug    64        3    0        3     2     1     1     1     0     8    1
scxspl     192    25814    0    25814    26    25     1     7     0     8    1
plimitpl   152      187    0      179     1     0     1     1     0     8    0
sigapl     432     2338    0     2322     3     1     2     3     0     8    0
futexpl     56    51663    0    51662     1     0     1     1     0     8    0
knotepl    112      623    0      604     1     0     1     1     0     8    0
kqueuepl   104     2671    0     2668     4     3     1     4     0     8    0
pipepl     112     2468    0     2447    12    11     1     2     0     8    0
fdescpl    488     2339    0     2322     3     0     3     3     0     8    0
filepl     152    24698    0    24586    32    26     6    13     0     8    1
lockfpl    104      687    0      686     1     0     1     1     0     8    0
lockfspl    48      248    0      247     1     0     1     1     0     8    0
sessionpl  112       34    0       23     1     0     1     1     0     8    0
pgrppl      48       60    0       49     1     0     1     1     0     8    0
ucredpl     96     2426    0     2417     1     0     1     1     0     8    0
zombiepl   144     2325    0     2325     3     2     1     1     0     8    1
processpl  896     2359    0     2325     4     0     4     4     0     8    0
procpl     632     7338    0     7291     5     0     5     5     0     8    0
srpgc       64       20    0       20     8     7     1     1     0     8    1
sosppl     128       35    0       35     6     6     0     1     0     8    0
sockpl     384     4683    0     4656    39    34     5    14     0     8    2
mcl64k     65536     17    0        0     3     0     3     3     0     8    0
mcl16k     16384     12    0        0     2     0     2     2     0     8    0
mcl12k     12288     25    0        0     2     0     2     2     0     8    0
mcl9k      9216      10    0        0     1     0     1     1     0     8    0
mcl8k      8192      18    0        0     3     0     3     3     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112       8    0        0     1     0     1     1     0     8    0
mcl2k      2048     204    0        0    23     2    21    23     0     8    0
mtagpl      80       44    0        0     1     0     1     1     0     8    0
mbufpl     256      615    0        0    29     1    28    28     0     8    0
bufpl      256    12977    0     5929   441     0   441   441     0     8    0
anonpl      16   270128    0   252915   139    58    81    87     0   124    9
amapchunkpl 152   17037    0    16923    45    39     6    19     0   158    1
amappl16   192    12128    0    11125   120    67    53    63     0     8    2
amappl15   184      216    0      216     3     3     0     1     0     8    0
amappl14   176      552    0      548     2     1     1     1     0     8    0
amappl13   168      306    0      305     1     0     1     1     0     8    0
amappl12   160       64    0       62     2     1     1     1     0     8    0
amappl11   152      192    0      177     1     0     1     1     0     8    0
amappl10   144      121    0      117     1     0     1     1     0     8    0
amappl9    136     1621    0     1613     1     0     1     1     0     8    0
amappl8    128     1170    0     1134     2     0     2     2     0     8    0
amappl7    120      199    0      191     1     0     1     1     0     8    0
amappl6    112      177    0      164     1     0     1     1     0     8    0
amappl5    104      295    0      280     1     0     1     1     0     8    0
amappl4     96     2698    0     2661     2     1     1     2     0     8    0
amappl3     88      883    0      870     1     0     1     1     0     8    0
amappl2     80    17220    0    17139     3     1     2     3     0     8    0
amappl1     72    61980    0    61513    25    15    10    20     0     8    0
amappl      80     7824    0     7775     3     1     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      125    0        3     2     0     2     2     0     8    0
uaddrrnd    24     2366    0     2322     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2366    0     2322     1     0     1     1     0     8    0
vmmpekpl   168    25805    0    25768     3     0     3     3     0     8    0
vmmpepl    168   302336    0   300034   254   120   134   140     0   357   31
vmsppl     368     2338    0     2322     2     0     2     2     0     8    0
pdppl      4096    4739    0     4680    10     2     8     8     0     8    0
pvpl        32   752786    0   732259   285    87   198   205     0   265   23
pmappl     232     2365    0     2331     5     2     3     3     0     8    1
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      668    0       40    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/04 21:40 openbsd 8ef9a1f3488d b2f369e5 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.