syzbot


assert "m->m_pkthdr.pf.prio <= IFQ_MAXPRIO" failed in ifq.c

Status: fixed on 2022/02/16 17:50
Reported-by: syzbot+a8f8e24a44b441e71d93@syzkaller.appspotmail.com
Fix commit: 2960c8affbaf check pf rule "set prio" values consistently.
First crash: 803d, last: 803d

Sample crash report:
login: panic: kernel diagnostic assertion "m->m_pkthdr.pf.prio <= IFQ_MAXPRIO" failed: file "/syzkaller/managers/multicore/kernel/sys/net/ifq.c", line 858
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*102370  17733      0         0x2          0    1K ifconfig
 429331  43069      0    0x100002          0    0  sh
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff825739a5) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825e91ae,ffffffff825cdabe,35a,ffffffff82591901) at __assert+0x25 sys/kern/subr_prf.c:161
priq_enq(ffff800000bffab0,fffffd80761e0200) at priq_enq+0x2ae sys/net/ifq.c:858
ifq_enqueue(ffff800000bffab0,fffffd80761e0200) at ifq_enqueue+0x48 sys/net/ifq.c:365
tun_enqueue(ffff800000bff800,fffffd80761e0200) at tun_enqueue+0x3a sys/net/if_tun.c:615
ether_output(ffff800000bff800,fffffd80761e0200,ffff800021314588,0) at ether_output+0xb7 sys/net/if_ethersubr.c:358
ip6_output(fffffd80761e0200,0,0,1,ffff800021314728,0) at ip6_output+0x195c sys/netinet6/ip6_output.c:706
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
in6_ioctl_change_ifaddr(8080691a,ffff800021314a40,ffff800000bff800) at in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
ifioctl(fffffd806d5ff798,8080691a,ffff800021314a40,ffff8000212b6a90) at ifioctl+0xdf4 sys/net/if.c:2261
soo_ioctl(fffffd806a1b0b48,8080691a,ffff800021314a40,ffff8000212b6a90) at soo_ioctl+0x26c
sys_ioctl(ffff8000212b6a90,ffff800021314b50,ffff800021314bb0) at sys_ioctl+0x4a2
end trace frame: 0xffff800021314c10, count: 0
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 "m->m_pkthdr.pf.prio <= IFQ_MAXPRIO" failed: file "/syzkaller/managers/multicore/kernel/sys/net/ifq.c", line 858
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff825739a5) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825e91ae,ffffffff825cdabe,35a,ffffffff82591901) at __assert+0x25 sys/kern/subr_prf.c:161
priq_enq(ffff800000bffab0,fffffd80761e0200) at priq_enq+0x2ae sys/net/ifq.c:858
ifq_enqueue(ffff800000bffab0,fffffd80761e0200) at ifq_enqueue+0x48 sys/net/ifq.c:365
tun_enqueue(ffff800000bff800,fffffd80761e0200) at tun_enqueue+0x3a sys/net/if_tun.c:615
ether_output(ffff800000bff800,fffffd80761e0200,ffff800021314588,0) at ether_output+0xb7 sys/net/if_ethersubr.c:358
ip6_output(fffffd80761e0200,0,0,1,ffff800021314728,0) at ip6_output+0x195c sys/netinet6/ip6_output.c:706
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
in6_ioctl_change_ifaddr(8080691a,ffff800021314a40,ffff800000bff800) at in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
ifioctl(fffffd806d5ff798,8080691a,ffff800021314a40,ffff8000212b6a90) at ifioctl+0xdf4 sys/net/if.c:2261
soo_ioctl(fffffd806a1b0b48,8080691a,ffff800021314a40,ffff8000212b6a90) at soo_ioctl+0x26c
sys_ioctl(ffff8000212b6a90,ffff800021314b50,ffff800021314bb0) at sys_ioctl+0x4a2
syscall(ffff800021314c20) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021314c20) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc25c0, count: -16
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800021314330
rbx               0xffff800020ce9bff
rdx                            0x3fd
rcx                                0
rax                             0x94
r8                 0x101010101010101
r9                0x8080808080808080
r10                0xfb8d2089734fcaf
r11               0x6bc825f97bee6713
r12               0xffff800020ce9a00
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff8147cfe8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800021314320
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (ifconfig) pid=102370 stat=onproc
    flags process=2<EXEC> proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000212b6010,0xffff8000212b7a60
    process=0xffff8000ffff3a48 user=0xffff80002130f000, vmspace=0xfffffd8069c60d08
    estcpu=0, cpticks=2, pctcpu=0.0
    user=0, sys=2, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 79409  481467  43069      0  2    0x100000                sh
 85272  381225    268      0  2    0x100000                sh
*17733  102370  43207      0  7         0x2                ifconfig
 43207   15466  79541      0  3    0x10008a  sigsusp       sh
 43069  429331  32441      0  7    0x100002                sh
 25019  169876  24156      0  2    0x100000                sh
 81984  524226  91985      0  2    0x100000                sh
 50502  355995  36157      0  2         0x2                ifconfig
 36157  292808  63484      0  3    0x10008a  sigsusp       sh
 24156  279690  71650      0  3    0x10008a  sigsusp       sh
 91985  193410   8413      0  3    0x10008a  sigsusp       sh
 32441  463089   1067      0  3        0x82  wait          syz-executor.6
 79541  165607   1067      0  3        0x82  wait          syz-executor.3
 63484  210605   1067      0  3        0x82  wait          syz-executor.1
   268  392158    771      0  3    0x10008a  sigsusp       sh
   771  148795   1067      0  3        0x82  wait          syz-executor.7
  7267  250687   1067      0  3         0x2  biowait       syz-executor.0
  8413  252734   1067      0  3        0x82  wait          syz-executor.2
 71650  450961   1067      0  3        0x82  wait          syz-executor.5
 87293  220595   1067      0  3         0x2  biowait       syz-executor.4
  1067  457437  19864      0  3        0x82  kqread        syz-execprog
  1067  464723  19864      0  3   0x4000082  nanoslp       syz-execprog
  1067  148652  19864      0  2   0x4000002                syz-execprog
  1067  494999  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  339793  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  435269  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  291835  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  198493  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  336649  19864      0  3   0x4000082  thrsleep      syz-execprog
  1067  174499  19864      0  3   0x4000082  thrsleep      syz-execprog
 19864  123535  98199      0  3    0x10008a  sigsusp       ksh
 98199   30018  30015      0  3        0x9a  kqread        sshd
 83202  117659      1      0  3    0x100083  ttyin         getty
 30015   59992      1      0  3        0x88  kqread        sshd
 98355  114048  28777     74  3    0x100092  bpf           pflogd
 28777  411607      1      0  3        0x80  netio         pflogd
 21095  208952  43554     73  3    0x100090  kqread        syslogd
 43554  425079      1      0  3    0x100082  netio         syslogd
 14294   55514      1      0  3    0x100080  kqread        resolvd
 81344  389447  93014     77  3    0x100092  kqread        dhcpleased
 65200   14980  93014     77  3    0x100092  kqread        dhcpleased
 93014  332466      1      0  3        0x80  kqread        dhcpleased
 20923   56435      0      0  3     0x14200  bored         smr
 66898  418965      0      0  2     0x14200                zerothread
 36896  487104      0      0  3     0x14200  aiodoned      aiodoned
 31693  216463      0      0  3     0x14200  syncer        update
 37736  399475      0      0  3     0x14200  cleaner       cleaner
 92469  145268      0      0  3     0x14200  reaper        reaper
 22821  446567      0      0  3     0x14200  pgdaemon      pagedaemon
 23615  322525      0      0  3     0x14200  bored         viomb
 47384  384396      0      0  3  0x40014200  acpi0         acpi0
 82652  339047      0      0  3  0x40014200                idle1
 44765  142270      0      0  3     0x14200  bored         softnet
 56027  425563      0      0  3     0x14200  bored         systqmp
 61561  505779      0      0  3     0x14200  bored         systq
 45915  176002      0      0  3  0x40014200  bored         softclock
 85459  203260      0      0  3  0x40014200                idle0
     1   54594      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
CPU 1:
exclusive mutex &ifq->ifq_mtx r = 0 (0xffff800000bffad8)
#0  witness_lock+0x44d
#1  mtx_enter_try+0x100
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  ifq_enqueue+0x34 sys/net/ifq.c:365
#4  tun_enqueue+0x3a sys/net/if_tun.c:615
#5  ether_output+0xb7 sys/net/if_ethersubr.c:358
#6  ip6_output+0x195c sys/netinet6/ip6_output.c:706
#7  nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
#7  nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
#8  nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
#8  nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
#9  in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
#10 ifioctl+0xdf4 sys/net/if.c:2261
#11 soo_ioctl+0x26c
#12 sys_ioctl+0x4a2
#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
Process 17733 (ifconfig) thread 0xffff8000212b6a90 (102370)
exclusive rwlock netlock r = 0 (0xffffffff828e4ab0)
#0  witness_lock+0x44d
#1  in6_ioctl_change_ifaddr+0xba
#2  ifioctl+0xdf4 sys/net/if.c:2261
#3  soo_ioctl+0x26c
#4  sys_ioctl+0x4a2
#5  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#6  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a3d4a8)
#0  witness_lock+0x44d
#1  soo_ioctl+0x25a sys/kern/sys_socket.c:136
#2  sys_ioctl+0x4a2
#3  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#3  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#4  Xsyscall+0x128
exclusive mutex &ifq->ifq_mtx r = 0 (0xffff800000bffad8)
#0  witness_lock+0x44d
#1  mtx_enter_try+0x100
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  ifq_enqueue+0x34 sys/net/ifq.c:365
#4  tun_enqueue+0x3a sys/net/if_tun.c:615
#5  ether_output+0xb7 sys/net/if_ethersubr.c:358
#6  ip6_output+0x195c sys/netinet6/ip6_output.c:706
#7  nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
#7  nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
#8  nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
#8  nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
#9  in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
#10 ifioctl+0xdf4 sys/net/if.c:2261
#11 soo_ioctl+0x26c
#12 sys_ioctl+0x4a2
#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
Process 7267 (syz-executor.0) thread 0xffff8000ffff5500 (250687)
exclusive rrwlock inode r = 0 (0xfffffd806c62a5f8)
#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 (0xfffffd806c384810)
#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
Process 87293 (syz-executor.4) thread 0xffff8000ffff4fc0 (220595)
exclusive rrwlock inode r = 0 (0xfffffd806c62a708)
#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 (0xfffffd806c384920)
#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 10172   6471K    6471K  78643K     11262        0
            pcb    13      8K       8K  78643K        13        0
         rtable   148      4K       4K  78643K       226        0
         ifaddr    70     14K      14K  78643K        74        0
       counters    54     35K      35K  78643K        54        0
       ioctlops     0      0K       4K  78643K      1486        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         5        0
         vnodes  1167     73K      73K  78643K      1180        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  1697    195K     286K  78643K     12548        0
      file desc    22     81K      89K  78643K       107        0
           proc    81    111K     124K  78643K       443        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    52      3K       3K  78643K        52        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    25    122K     122K  78643K        25        0
           exec     0      0K       2K  78643K       594        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   237     73K      74K  78643K      2959        0
       UVM aobj     3      2K       2K  78643K         3        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
            NDP    18      1K       1K  78643K        18        0
           temp    53   4683K    4747K  78643K      4084        0
         kqueue    12     18K      18K  78643K        25        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       24    0       21     1     0     1     1     0     8    0
rtentry    112       66    0        1     2     0     2     2     0     8    0
unpcb      136       35    0       20     1     0     1     1     0     8    0
syncache   296        5    0        5     1     0     1     1     0     8    1
tcpcb      736        8    0        5     1     0     1     1     0     8    0
arp        120       12    0        0     1     0     1     1     0     8    0
inpcb      304       55    0       47     1     0     1     1     0     8    0
nd6         48        9    0        0     1     0     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24       12    0        0     1     0     1     1     0     8    0
pfstkey    112       12    0        0     1     0     1     1     0     8    0
pfstate    320       12    0        0     1     0     1     1     0     8    0
pfrule     1360      23    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      263    0        0    17     0    17    17     0     8    0
art_table   32      264    0        0     3     0     3     3     0     8    0
art_node    16       65    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1480    0       49    90     0    90    90     0     8    0
ffsino     272     1480    0       49    96     0    96    96     0     8    0
nchpl      144     1729    0       63    62     0    62    62     0     8    0
uvmvnodes   80     1490    0        0    31     0    31    31     0     8    0
vnodes     224     1490    0        0    88     0    88    88     0     8    0
namei      1024    5728    0     5728     2     0     2     2     0     8    2
percpumem   16       39    0        0     1     0     1     1     0     8    0
scxspl     216     5270    0     5268     2     1     1     2     0     8    0
plimitpl   152       24    0        9     1     0     1     1     0     8    0
sigapl     424      411    0      362     6     0     6     6     0     8    0
futexpl     64       10    0       10     1     0     1     1     0     8    1
knotepl    120      102    0        0     4     0     4     4     0     8    0
kqueuepl   216       21    0       13     1     0     1     1     0     8    0
pipepl     336      134    0      106     3     0     3     3     0     8    0
fdescpl    496      397    0      362     5     0     5     5     0     8    0
filepl     152     1486    0     1352     6     0     6     6     0     8    0
lockfpl    104        6    0        4     1     0     1     1     0     8    0
lockfspl    48        4    0        2     1     0     1     1     0     8    0
sessionpl  144       26    0        9     1     0     1     1     0     8    0
pgrppl      48       26    0        9     1     0     1     1     0     8    0
ucredpl     96       69    0       57     1     0     1     1     0     8    0
zombiepl   144      362    0      362     1     0     1     1     0     8    1
processpl  1064     411    0      362     4     0     4     4     0     8    0
procpl     672      422    0      364     6     0     6     6     0     8    0
sockpl     480      114    0       88     4     0     4     4     0     8    0
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096       2    0        0     1     0     1     1     0     8    0
mcl2k      2048      57    0        0     8     0     8     8     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256      200    0        0    12     0    12    12     0     8    0
bufpl      288     3614    0      139   249     0   249   249     0     8    0
anonpl      24    56483    0    50614    50     4    46    47     0   186    9
amapchunkpl 152    5935    0     5440    20     0    20    20     0   158    0
amappl16   200      225    0      150     6     1     5     5     0     8    0
amappl15   192       97    0       90     1     0     1     1     0     8    0
amappl14   184       26    0       23     1     0     1     1     0     8    0
amappl13   176       96    0       86     1     0     1     1     0     8    0
amappl12   168       15    0       12     1     0     1     1     0     8    0
amappl11   160       48    0       33     1     0     1     1     0     8    0
amappl10   152       40    0       35     1     0     1     1     0     8    0
amappl9    144      444    0      441     1     0     1     1     0     8    0
amappl8    136      519    0      487     2     0     2     2     0     8    0
amappl7    128      107    0       95     1     0     1     1     0     8    0
amappl6    120      211    0      192     2     0     2     2     0     8    1
amappl5    112      191    0      176     1     0     1     1     0     8    0
amappl4    104      808    0      772     2     0     2     2     0     8    0
amappl3     96      160    0      148     1     0     1     1     0     8    0
amappl2     88      517    0      469     3     0     3     3     0     8    1
amappl1     80    10893    0    10291    19     0    19    19     0     8    5
amappl      88     2563    0     2381     5     0     5     5     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        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24      397    0      362     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      397    0      362     1     0     1     1     0     8    0
vmmpekpl   168     8356    0     8335     2     0     2     2     0     8    0
vmmpepl    168    37432    0    35642    91     0    91    91     0   357   11
vmsppl     368      396    0      362     4     0     4     4     0     8    0
rwobjpl     56    12120    0     9601    41     0    41    41     0     8    4
pdppl      4096     801    0      724    95    14    81    81     0     8    4
pvpl        32   236261    0   226259   262     0   262   262     0   265  178
pmappl     248      396    0      362     3     0     3     3     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112      588    0       17    17     0    17    17     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
x86_ipi_db(ffffffff8291fff0) 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(ffffffff82a3d2a0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff8000212e4360,ffff80000004ad00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff8000212e4530) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline]
syscall(ffff8000212e4530) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffdc590, count: 6
ddb{0}> trace
x86_ipi_db(ffffffff8291fff0) 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(ffffffff82a3d2a0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff8000212e4360,ffff80000004ad00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3d2a0) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff8000212e4530) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline]
syscall(ffff8000212e4530) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffdc590, count: -9
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(ffffffff825739a5) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825e91ae,ffffffff825cdabe,35a,ffffffff82591901) at __assert+0x25 sys/kern/subr_prf.c:161
priq_enq(ffff800000bffab0,fffffd80761e0200) at priq_enq+0x2ae sys/net/ifq.c:858
ifq_enqueue(ffff800000bffab0,fffffd80761e0200) at ifq_enqueue+0x48 sys/net/ifq.c:365
tun_enqueue(ffff800000bff800,fffffd80761e0200) at tun_enqueue+0x3a sys/net/if_tun.c:615
ether_output(ffff800000bff800,fffffd80761e0200,ffff800021314588,0) at ether_output+0xb7 sys/net/if_ethersubr.c:358
ip6_output(fffffd80761e0200,0,0,1,ffff800021314728,0) at ip6_output+0x195c sys/netinet6/ip6_output.c:706
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
in6_ioctl_change_ifaddr(8080691a,ffff800021314a40,ffff800000bff800) at in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
ifioctl(fffffd806d5ff798,8080691a,ffff800021314a40,ffff8000212b6a90) at ifioctl+0xdf4 sys/net/if.c:2261
soo_ioctl(fffffd806a1b0b48,8080691a,ffff800021314a40,ffff8000212b6a90) at soo_ioctl+0x26c
sys_ioctl(ffff8000212b6a90,ffff800021314b50,ffff800021314bb0) at sys_ioctl+0x4a2
end trace frame: 0xffff800021314c10, count: 0
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff825739a5) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825e91ae,ffffffff825cdabe,35a,ffffffff82591901) at __assert+0x25 sys/kern/subr_prf.c:161
priq_enq(ffff800000bffab0,fffffd80761e0200) at priq_enq+0x2ae sys/net/ifq.c:858
ifq_enqueue(ffff800000bffab0,fffffd80761e0200) at ifq_enqueue+0x48 sys/net/ifq.c:365
tun_enqueue(ffff800000bff800,fffffd80761e0200) at tun_enqueue+0x3a sys/net/if_tun.c:615
ether_output(ffff800000bff800,fffffd80761e0200,ffff800021314588,0) at ether_output+0xb7 sys/net/if_ethersubr.c:358
ip6_output(fffffd80761e0200,0,0,1,ffff800021314728,0) at ip6_output+0x195c sys/netinet6/ip6_output.c:706
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 icmp6stat_inc sys/netinet/icmp6.h:584 [inline]
nd6_ns_output(ffff800000bff800,0,ffff800000bf2b48,0,1) at nd6_ns_output+0x579 sys/netinet6/nd6_nbr.c:539
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 nd6_dad_ns_output sys/netinet6/nd6_nbr.c:1318 [inline]
nd6_dad_start(ffff800000bf2b00) at nd6_dad_start+0x341 sys/netinet6/nd6_nbr.c:1132
in6_ioctl_change_ifaddr(8080691a,ffff800021314a40,ffff800000bff800) at in6_ioctl_change_ifaddr+0x54f sys/netinet6/in6.c:339
ifioctl(fffffd806d5ff798,8080691a,ffff800021314a40,ffff8000212b6a90) at ifioctl+0xdf4 sys/net/if.c:2261
soo_ioctl(fffffd806a1b0b48,8080691a,ffff800021314a40,ffff8000212b6a90) at soo_ioctl+0x26c
sys_ioctl(ffff8000212b6a90,ffff800021314b50,ffff800021314bb0) at sys_ioctl+0x4a2
syscall(ffff800021314c20) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021314c20) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc25c0, count: -16
ddb{1}> 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/10 11:08 openbsd 4e4477fd5c2f 0b33604d .config console log report syz ci-openbsd-multicore assert "m->m_pkthdr.pf.prio <= IFQ_MAXPRIO" failed in ifq.c
2022/02/10 10:51 openbsd 4e4477fd5c2f 0b33604d .config console log report ci-openbsd-multicore assert "m->m_pkthdr.pf.prio <= IFQ_MAXPRIO" failed in ifq.c
* Struck through repros no longer work on HEAD.