syzbot


assert "TAILQ_EMPTY(&ifp->if_addrhooks)" failed in if.c (2)

Status: fixed on 2021/12/30 10:09
Reported-by: syzbot+a7ac144b48f7f471f689@syzkaller.appspotmail.com
Fix commit: 188a0a692db5 Prevent concurrent access to incomplete or dying `sc' caused by sleep points in pppacopen() and pppacclose() paths. Use the same "sc_ready" logic we use for 'pppx_if' structure.
First crash: 1059d, last: 1059d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd assert "TAILQ_EMPTY(&ifp->if_addrhooks)" failed in if.c 2 1834d 1836d 3/3 fixed on 2019/11/19 08:59

Sample crash report:
panic: kernel diagnostic assertion "TAILQ_EMPTY(&ifp->if_addrhooks)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if.c", line 1072
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*419545  68890      0           0  0x4000000    1K syz-executor.2
 338684  99058      0    0x100000          0    0  resolvd
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457611) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c7114,ffffffff824ff86a,430,ffffffff824a863d) at __assert+0x25 sys/kern/subr_prf.c:161
if_detach(ffff800000cff000) at if_detach+0x59a sys/net/if.c:1092
pppacclose(26338,2,2000,ffff800021260fd0) at pppacclose+0x98 sys/net/if_pppx.c:1311
spec_close(ffff800023ce9180) at spec_close+0x334 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_close(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at vn_close+0x73 sys/kern/vfs_vnops.c:298
sys_acct(ffff800021260fd0,ffff800023ce9378,ffff800023ce93d0) at sys_acct+0x1a7 sys/kern/kern_acct.c:126
syscall(ffff800023ce9440) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023ce9440) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xa4678e9be0, count: 4
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
*cpu1: kernel diagnostic assertion "TAILQ_EMPTY(&ifp->if_addrhooks)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if.c", line 1072
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457611) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c7114,ffffffff824ff86a,430,ffffffff824a863d) at __assert+0x25 sys/kern/subr_prf.c:161
if_detach(ffff800000cff000) at if_detach+0x59a sys/net/if.c:1092
pppacclose(26338,2,2000,ffff800021260fd0) at pppacclose+0x98 sys/net/if_pppx.c:1311
spec_close(ffff800023ce9180) at spec_close+0x334 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_close(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at vn_close+0x73 sys/kern/vfs_vnops.c:298
sys_acct(ffff800021260fd0,ffff800023ce9378,ffff800023ce93d0) at sys_acct+0x1a7 sys/kern/kern_acct.c:126
syscall(ffff800023ce9440) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023ce9440) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xa4678e9be0, count: -11
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800023ce8f80
rbx               0xffff800020d39bff
rdx                                0
rcx                                0
rax               0xffff800021260fd0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xc9ed5fd7e4f9223a
r11               0xc6543b021a9c5061
r12               0xffff800020d39a00
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff8167b298    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800023ce8f70
ss                                 0
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.2) pid=419545 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=82, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800021260d30,0xffff800021261a60
    process=0xffff8000ffff8430 user=0xffff800023ce4000, vmspace=0xfffffd806088a460
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 44136  260416  39056      0  2           0                syz-executor.0
 57502  272581   8193      0  2           0                syz-executor.3
 68890  120660  85248      0  3        0x80  nanoslp       syz-executor.2
*68890  419545  85248      0  7   0x4000000                syz-executor.2
 68890  192830  85248      0  3   0x4000080  fsleep        syz-executor.2
 43710  246826      0      0  3     0x14200  acct          acct
 39056   50869  68313      0  3        0x82  nanoslp       syz-executor.0
  8193  357149  68313      0  3        0x82  nanoslp       syz-executor.3
 85248  271584  68313      0  3        0x82  nanoslp       syz-executor.2
 35813   79935      0      0  3     0x14280  nfsidl        nfsio
 29446  176847      0      0  3     0x14280  nfsidl        nfsio
 86749  373657      0      0  3     0x14280  nfsidl        nfsio
 42587  159987      0      0  3     0x14280  nfsidl        nfsio
 76296  282528      0      0  3     0x14280  nfsidl        nfsio
 73060  183964      0      0  3     0x14280  nfsidl        nfsio
 62660  322112      0      0  3     0x14280  nfsidl        nfsio
 20920  119989      0      0  3     0x14280  nfsidl        nfsio
 93599  339483      0      0  3     0x14280  nfsidl        nfsio
 53264  206936      0      0  3     0x14280  nfsidl        nfsio
 33717  489254      0      0  3     0x14280  nfsidl        nfsio
 73663  175409      0      0  3     0x14280  nfsidl        nfsio
  6823  359866      0      0  3     0x14280  nfsidl        nfsio
 28854  413429      0      0  3     0x14280  nfsidl        nfsio
 33352  248977      0      0  3     0x14280  nfsidl        nfsio
 20897  305249      0      0  3     0x14280  nfsidl        nfsio
 40874  270681      0      0  3     0x14280  nfsidl        nfsio
 93993  187918      0      0  3     0x14280  nfsidl        nfsio
 20626  304521      0      0  3     0x14280  nfsidl        nfsio
 57304  329507      0      0  3     0x14280  nfsidl        nfsio
 44790  441413      0      0  3     0x14200  bored         sosplice
 68313  136476  93935      0  3        0x82  thrsleep      syz-fuzzer
 68313  286989  93935      0  3   0x4000082  nanoslp       syz-fuzzer
 68313  242620  93935      0  3   0x4000082  kqread        syz-fuzzer
 68313  294584  93935      0  3   0x4000082  thrsleep      syz-fuzzer
 68313  173585  93935      0  3   0x4000082  thrsleep      syz-fuzzer
 68313  488337  93935      0  3   0x4000082  thrsleep      syz-fuzzer
 68313   73147  93935      0  3   0x4000002  biowait       syz-fuzzer
 68313   25265  93935      0  3   0x4000082  thrsleep      syz-fuzzer
 93935  245434  38576      0  3    0x10008a  sigsusp       ksh
 38576  395513  88191      0  3        0x9a  poll          sshd
 70111  463761      1      0  3    0x100083  ttyin         getty
 88191  367756      1      0  3        0x88  poll          sshd
 65168  214363  47487     74  3    0x100092  bpf           pflogd
 47487  463201      1      0  3        0x80  netio         pflogd
 49332   51927  97854     73  3    0x100090  kqread        syslogd
 97854  130910      1      0  3    0x100082  netio         syslogd
 99058  338684      1      0  7    0x100000                resolvd
 99839  343196  68507     77  2    0x100092                dhcpleased
 20842  192053  68507     77  3    0x100092  kqread        dhcpleased
 68507  198913      1      0  3        0x80  kqread        dhcpleased
 58337   34316      0      0  3     0x14200  bored         smr
 34825  326556      0      0  2     0x14200                zerothread
 89752  523802      0      0  3     0x14200  aiodoned      aiodoned
 21308   92449      0      0  3     0x14200  syncer        update
 28585  328531      0      0  3     0x14200  cleaner       cleaner
 83800  444415      0      0  3     0x14200  reaper        reaper
 27233  130435      0      0  3     0x14200  pgdaemon      pagedaemon
  6317   85955      0      0  3     0x14200  bored         viomb
 71005  347343      0      0  3  0x40014200  acpi0         acpi0
 21162  319394      0      0  3  0x40014200                idle1
 50907  301808      0      0  3     0x14200  bored         softnet
 11804  354513      0      0  3     0x14200  bored         systqmp
 45926  147186      0      0  3     0x14200  bored         systq
 55329  222518      0      0  3  0x40014200  bored         softclock
   663  194534      0      0  3  0x40014200                idle0
     1  443527      0      0  3     0x80082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 57502 (syz-executor.3) thread 0xffff800021261a50 (272581)
exclusive rwlock vmmaplk r = 0 (0xfffffd806088aa38)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5458
#3  uvmfault_lookup+0xb9 sys/uvm/uvm_fault.c:1740
#4  uvm_fault_check+0x603 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline]
#4  uvm_fault_check+0x603 sys/uvm/uvm_fault.c:714
#5  uvm_fault+0x102 sys/uvm/uvm_fault.c:602
#6  upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181
#7  usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403
#8  recall_trap+0x8
Process 68890 (syz-executor.2) thread 0xffff800021260fd0 (419545)
exclusive rwlock netlock r = 0 (0xffffffff82812260)
#0  witness_lock+0x44d
#1  if_detach+0xd9 sys/net/if.c:1027
#2  pppacclose+0x98 sys/net/if_pppx.c:1311
#3  spec_close+0x334 sys/kern/spec_vnops.c:572
#4  VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
#5  vn_close+0x73 sys/kern/vfs_vnops.c:298
#6  sys_acct+0x1a7 sys/kern/kern_acct.c:126
#7  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#8  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292d590)
#0  witness_lock+0x44d
#1  __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2  mi_switch+0x3d3 sys/kern/sched_bsd.c:416
#3  yield+0x5a sys/kern/sched_bsd.c:291
#4  malloc+0xa6 sys/kern/kern_malloc.c:184
#5  if_alloc_sadl+0xbe sys/net/if.c:474
#6  pppacopen+0x21d sys/net/if_pppx.c:1049
#7  spec_open+0x3d7 sys/kern/spec_vnops.c:157
#8  VOP_OPEN+0x75 sys/kern/vfs_vops.c:138
#9  vn_open+0x467 sys/kern/vfs_vnops.c:183
#10 sys_acct+0x88 sys/kern/kern_acct.c:122
#11 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#11 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#12 Xsyscall+0x128
Process 68313 (syz-fuzzer) thread 0xffff8000211937a8 (73147)
exclusive rrwlock inode r = 0 (0xfffffd806a5e45e8)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5  vget+0x1d3 sys/kern/vfs_subr.c:677
#6  ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318
#8  ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487
#9  VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561
#11 namei+0x36a sys/kern/vfs_lookup.c:245
#12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1849
#13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806a5e4918)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5  vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413
#6  namei+0x36a sys/kern/vfs_lookup.c:245
#7  dounlinkat+0x99 sys/kern/vfs_syscalls.c:1849
#8  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#9  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10200   6497K    7005K  78643K     22133        0
            pcb    13     22K      26K  78643K      2031        0
         rtable   138     20K      22K  78643K      2970        0
         ifaddr    69     16K      18K  78643K      1204        0
         sysctl     2      0K       0K  78643K         2        0
       counters    50     34K      35K  78643K       202        0
       ioctlops     0      0K       4K  78643K      2364        0
            iov     0      0K      24K  78643K       728        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1429     90K      91K  78643K      5225        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        56        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       0K  78643K       635        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12598        0
      file desc     8     25K      45K  78643K      8005        0
          sigio     0      0K       0K  78643K        82        0
           proc    70     87K     111K  78643K      1285        0
        subproc    39      2K       3K  78643K       367        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       492        0
       in_multi    31      2K       3K  78643K       473        0
    ether_multi     1      0K       0K  78643K        73        0
            mrt     1      0K       0K  78643K        46        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   229   1023K    1023K  78643K       229        0
           exec     0      0K       2K  78643K      1814        0
     pfkey data     0      0K       1K  78643K         3        0
            tdb     3      0K       0K  78643K         3        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   373    624K     633K  78643K    102107        0
       UVM aobj   131      4K       4K  78643K       145        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       291        0
            NDP    10      0K       1K  78643K       146        0
           temp   111   4231K    4344K  78643K    103044        0
         kqueue    10     14K      20K  78643K       217        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
plcache    128       22    0        0     1     0     1     1     0     8    0
rtpcb      120      592    0      589    10     9     1     3     0     8    0
rtentry    112      445    0      406     2     0     2     2     0     8    0
unpcb      136     9839    0     9824    57    56     1     9     0     8    0
syncache   296       31    0       31    12    11     1     1     0     8    1
tcpqe       32      136    0      136     7     6     1     1     0     8    1
tcpcb      736     2987    0     2976   103    94     9    19     0     8    6
arp        120       60    0       52     1     0     1     1     0     8    0
inpcb      304     9162    0     9151    97    90     7    16     0     8    5
rttmr       72        2    0        2     1     1     0     1     0     8    0
ip6q        72       15    0       15     5     5     0     1     0     8    0
ip6af       40       45    0       45     5     5     0     1     0     8    0
nd6         48       94    0       88     1     0     1     1     0     8    0
pkpcb       40       14    0       14     2     2     0     1     0     8    0
kcovpl      48       28    0       25     1     0     1     1     0     8    0
ppxss      1248      32    0       30     5     4     1     1     0     8    0
pfstscr     40        9    0        9     3     2     1     1     0     8    1
pffrag     232       76    0       76     3     2     1     1     0   482    1
pffrnode    88       76    0       76     3     2     1     1     0     8    1
pffrent     40      320    0      320     3     2     1     1     0     8    1
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfrktable  1344     788    0      772     8     6     2     2     0     8    0
pftag       88       13    0       10     2     1     1     1     0     8    0
pfqueue    264        2    0        2     1     1     0     1     0     8    0
pfstitem    24       34    0       32     1     0     1     1     0     8    0
pfstkey    112       50    0       48     1     0     1     1     0     8    0
pfstate    320       41    0       39     3     2     1     3     0     8    0
pfrule     1360     540    0      482     5     0     5     5     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     1550    0     1392    23     7    16    18     0     8    0
art_table   32     1551    0     1392     3     0     3     3     0     8    0
art_node    16      384    0      353     1     0     1     1     0     8    0
sysvmsgpl   40       45    0        5     1     0     1     1     0     8    0
semupl     112        5    0        5     2     2     0     1     0     8    0
semapl     112      633    0      623     1     0     1     1     0     8    0
shmpl      112      142    0       14     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    11404    0     9969    90     0    90    90     0     8    0
ffsino     272    11404    0     9969    96     0    96    96     0     8    0
nchpl      144    21617    0    20014    61     0    61    61     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024   75009    0    75009     6     5     1     1     0     8    1
percpumem   16      113    0       76     1     0     1     1     0     8    0
vcpupl     2048      83    0        0    11     0    11    11     0     8    0
vmpool     560      154    0       71     6     0     6     6     0     8    0
pfiaddrpl  120      230    0      207     2     1     1     1     0     8    0
scsiplug    72        5    0        5     2     2     0     1     0     8    0
scxspl     216    73754    0    73753    21    20     1     8     0     8    0
plimitpl   152      540    0      530     1     0     1     1     0     8    0
sigapl     424     8209    0     8152     7     0     7     7     0     8    0
futexpl     64    64166    0    64165     6     5     1     1     0     8    0
knotepl    112      113    0        0     3     0     3     3     0     8    0
kqueuepl   216     1090    0     1079    23    20     3     5     0     8    2
pipepl     336      963    0      948    27    25     2     7     0     8    0
fdescpl    496     8163    0     8142     4     1     3     4     0     8    0
filepl     152    56505    0    56369    96    87     9    16     0     8    3
lockfpl    104     2000    0     1998     3     2     1     2     0     8    0
lockfspl    48      523    0      521     1     0     1     1     0     8    0
sessionpl  144       44    0       32     1     0     1     1     0     8    0
pgrppl      48      513    0      501     1     0     1     1     0     8    0
ucredpl     96     6470    0     6456     1     0     1     1     0     8    0
zombiepl   144     8750    0     8750     2     1     1     1     0     8    1
processpl  1064    8209    0     8152     4     0     4     4     0     8    0
procpl     672    22829    0    22763    16     9     7     8     0     8    0
srpgc       96       30    0       30     7     6     1     1     0     8    1
sosppl     168       55    0       53    10     9     1     1     0     8    0
sockpl     480    19692    0    19663   388   375    13    34     0     8    9
mcl64k     65536     19    0        0     3     0     3     3     0     8    0
mcl16k     16384     17    0        0     3     0     3     3     0     8    0
mcl12k     12288     25    0        0     2     0     2     2     0     8    0
mcl9k      9216      25    0        0     2     0     2     2     0     8    0
mcl8k      8192      18    0        0     3     0     3     3     0     8    0
mcl4k      4096      33    0        0     4     1     3     3     0     8    0
mcl2k2     2112       5    0        0     1     0     1     1     0     8    0
mcl2k      2048     311    0        0    31     3    28    31     0     8    2
mtagpl      96      588    0        0     8     0     8     8     0     8    0
mbufpl     256     1168    0        0    55     1    54    54     0     8    0
bufpl      288    17562    0    11217   454     0   454   454     0     8    0
anonpl      24  2323444    0  2304595   289   167   122   190     0   186    0
amapchunkpl 152  252022    0   251269    98    65    33    61     0   158    1
amappl16   200    21226    0    20592   108    74    34    46     0     8    0
amappl15   192     1323    0     1323     3     2     1     1     0     8    1
amappl14   184     1326    0     1322     1     0     1     1     0     8    0
amappl13   176      260    0      255     1     0     1     1     0     8    0
amappl12   168     1044    0     1040     1     0     1     1     0     8    0
amappl11   160     1072    0     1056     1     0     1     1     0     8    0
amappl10   152      444    0      434     1     0     1     1     0     8    0
amappl9    144     1887    0     1885     1     0     1     1     0     8    0
amappl8    136     3050    0     2985     5     2     3     3     0     8    0
amappl7    128     2364    0     2353     1     0     1     1     0     8    0
amappl6    120     1708    0     1687     1     0     1     1     0     8    0
amappl5    112     6796    0     6773     1     0     1     1     0     8    0
amappl4    104     3258    0     3231     1     0     1     1     0     8    0
amappl3     96     1684    0     1662     1     0     1     1     0     8    0
amappl2     88     1322    0     1274     3     1     2     2     0     8    0
amappl1     80   151287    0   150797    21     9    12    13     0     8    0
amappl      88   101179    0   100953     6     0     6     6     0    92    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       1    0        0     1     0     1     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      72      144    0       14     3     0     3     3     0     8    0
uaddrrnd    24     8317    0     8213     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     8317    0     8213     1     0     1     1     0     8    0
vmmpekpl   168    57510    0    57451     3     0     3     3     0     8    0
vmmpepl    168   748108    0   745848   312   185   127   140     0   357   19
vmsppl     368     8316    0     8213    10     0    10    10     0     8    0
rwobjpl     56   187182    0   179596   125    16   109   111     0     8    1
pdppl      4096   16642    0    16509   182    45   137   138     0     8    4
pvpl        32  3923860    0  3902415   450   265   185   306     0   265    0
pmappl     248     8316    0     8213     7     0     7     7     0     8    0
extentpl    40       57    0       38     1     0     1     1     0     8    0
phpool     112     1113    0      183    27     0    27    27     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
x86_ipi_db(ffffffff8279bff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 sys/kern/kern_lock.c:147
softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88
Xsoftclock() at Xsoftclock+0x1f
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 sys/kern/kern_lock.c:147
kqueue_scan(ffff8000211fa400,3,ffff8000211fa300,0,ffff8000ffff6550,ffff8000211fa54c) at kqueue_scan+0xd8 sys/kern/kern_event.c:1290
sys_kevent(ffff8000ffff6550,ffff8000211fa5b0,ffff8000211fa610) at sys_kevent+0x47b sys/kern/kern_event.c:982
syscall(ffff8000211fa680) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211fa680) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbebd0, count: 4
ddb{0}> trace
x86_ipi_db(ffffffff8279bff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 sys/kern/kern_lock.c:147
softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88
Xsoftclock() at Xsoftclock+0x1f
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff8292d388) at __mp_lock+0x122 sys/kern/kern_lock.c:147
kqueue_scan(ffff8000211fa400,3,ffff8000211fa300,0,ffff8000ffff6550,ffff8000211fa54c) at kqueue_scan+0xd8 sys/kern/kern_event.c:1290
sys_kevent(ffff8000ffff6550,ffff8000211fa5b0,ffff8000211fa610) at sys_kevent+0x47b sys/kern/kern_event.c:982
syscall(ffff8000211fa680) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000211fa680) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbebd0, count: -11
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457611) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c7114,ffffffff824ff86a,430,ffffffff824a863d) at __assert+0x25 sys/kern/subr_prf.c:161
if_detach(ffff800000cff000) at if_detach+0x59a sys/net/if.c:1092
pppacclose(26338,2,2000,ffff800021260fd0) at pppacclose+0x98 sys/net/if_pppx.c:1311
spec_close(ffff800023ce9180) at spec_close+0x334 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_close(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at vn_close+0x73 sys/kern/vfs_vnops.c:298
sys_acct(ffff800021260fd0,ffff800023ce9378,ffff800023ce93d0) at sys_acct+0x1a7 sys/kern/kern_acct.c:126
syscall(ffff800023ce9440) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023ce9440) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xa4678e9be0, count: 4
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82457611) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824c7114,ffffffff824ff86a,430,ffffffff824a863d) at __assert+0x25 sys/kern/subr_prf.c:161
if_detach(ffff800000cff000) at if_detach+0x59a sys/net/if.c:1092
pppacclose(26338,2,2000,ffff800021260fd0) at pppacclose+0x98 sys/net/if_pppx.c:1311
spec_close(ffff800023ce9180) at spec_close+0x334 sys/kern/spec_vnops.c:572
VOP_CLOSE(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156
vn_close(fffffd806e53b488,2,fffffd807f7d73c0,ffff800021260fd0) at vn_close+0x73 sys/kern/vfs_vnops.c:298
sys_acct(ffff800021260fd0,ffff800023ce9378,ffff800023ce93d0) at sys_acct+0x1a7 sys/kern/kern_acct.c:126
syscall(ffff800023ce9440) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023ce9440) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xa4678e9be0, count: -11

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/28 12:56 openbsd bb818c30de60 6b3c5e64 .config console log report ci-openbsd-multicore assert "TAILQ_EMPTY(&ifp->if_addrhooks)" failed in if.c
* Struck through repros no longer work on HEAD.