syzbot


assert "sc->sc_dev == NUM" failed in if_tun.c (4)

Status: auto-obsoleted due to no activity on 2024/01/09 18:17
Reported-by: syzbot+3f950af8adf0e949dbd7@syzkaller.appspotmail.com
First crash: 205d, last: 205d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd assert "sc->sc_dev == NUM" failed in if_tun.c 24 806d 838d 3/3 fixed on 2022/02/16 17:50
openbsd assert "sc->sc_dev == NUM" failed in if_tun.c (2) 1 802d 802d 3/3 fixed on 2022/02/26 07:36
openbsd assert "sc->sc_dev == NUM" failed in if_tun.c (5) 4 20d 68d 0/3 upstream: reported on 2024/02/23 03:53
openbsd assert "sc->sc_dev == NUM" failed in if_tun.c (3) 68 305d 794d 0/3 auto-obsoleted due to no activity on 2023/09/29 16:10

Sample crash report:
panic: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 315
Stopped at      db_enter+0x1c:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82780000) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fd334,ffffffff8283409e,13b,ffffffff82814215) at __assert+0x29 sys/kern/subr_prf.c:157
tun_clone_destroy(ffff800000d5d800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315
if_clone_destroy(ffff80002b2745c0) at if_clone_destroy+0x132 sys/net/if.c:1384
tun_dev_close(44002802,81) at tun_dev_close+0x141 sys/net/if_tun.c:521
spec_close(ffff80002b2746a0) at spec_close+0x2c7 sys/kern/spec_vnops.c:541
VOP_CLOSE(fffffd806777d948,81,fffffd807f7d78f0,ffff8000216d4800) at VOP_CLOSE+0xe2 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 vn_close sys/kern/vfs_vnops.c:292 [inline]
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 sys/kern/vfs_vnops.c:609
fdrop(fffffd806b80f3d8,ffff8000216d4800) at fdrop+0xcb sys/kern/kern_descrip.c:1274
closef(fffffd806b80f3d8,ffff8000216d4800) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff8000216d4800) at fdfree+0xf3 sys/kern/kern_descrip.c:1190
exit1(ffff8000216d4800,0,0,1) at exit1+0x367 sys/kern/kern_exit.c:199
sys_exit(ffff8000216d4800,ffff80002b274940,ffff80002b274990) at sys_exit+0x1a sys/kern/kern_exit.c:89
end trace frame: 0xffff80002b274a00, 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> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: kernel diagnostic assertion "sc->sc_dev == 0" failed: file "/syzkaller/managers/main/kernel/sys/net/if_tun.c", line 315
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82780000) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fd334,ffffffff8283409e,13b,ffffffff82814215) at __assert+0x29 sys/kern/subr_prf.c:157
tun_clone_destroy(ffff800000d5d800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315
if_clone_destroy(ffff80002b2745c0) at if_clone_destroy+0x132 sys/net/if.c:1384
tun_dev_close(44002802,81) at tun_dev_close+0x141 sys/net/if_tun.c:521
spec_close(ffff80002b2746a0) at spec_close+0x2c7 sys/kern/spec_vnops.c:541
VOP_CLOSE(fffffd806777d948,81,fffffd807f7d78f0,ffff8000216d4800) at VOP_CLOSE+0xe2 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 vn_close sys/kern/vfs_vnops.c:292 [inline]
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 sys/kern/vfs_vnops.c:609
fdrop(fffffd806b80f3d8,ffff8000216d4800) at fdrop+0xcb sys/kern/kern_descrip.c:1274
closef(fffffd806b80f3d8,ffff8000216d4800) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff8000216d4800) at fdfree+0xf3 sys/kern/kern_descrip.c:1190
exit1(ffff8000216d4800,0,0,1) at exit1+0x367 sys/kern/kern_exit.c:199
sys_exit(ffff8000216d4800,ffff80002b274940,ffff80002b274990) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002b274a10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d9809d422b0, count: -16
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80002b274450
rbx               0xffffffff8255d290    tunclose
rdx                                0
rcx                                0
rax               0xffff8000216d4800
r8                                 0
r9                0x8080808080808080
r10               0xc16601c67d7fa68c
r11               0xd3550ec1d91d6308
r12                                0
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff81721bdc    db_enter+0x1c
cs                               0x8
rflags                         0x246
rsp               0xffff80002b274440
ss                                 0
db_enter+0x1c:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.2) tid=520197 pid=40775 tcnt=1 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    runpri=8, usrpri=85, slppri=8, nice=20
    wchan=0x0, wmesg=, ps_single=0xffff8000216d4800
    forw=0xffffffffffffffff, list=0xffff8000216d6010,0xffff8000216d3d70
    process=0xffff80002b27d3c0 user=0xffff80002b26f000, vmspace=0xfffffd8069b30740
    estcpu=35, cpticks=5, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 30060  501827  21779      0  2           0                syz-executor.0
 30060  433437  21779      0  2   0x4000000                syz-executor.0
 30060  114372  21779      0  3   0x4000000  inode         syz-executor.0
 30060  452359  21779      0  2   0x4000000                syz-executor.0
 30060  148146  21779      0  2   0x4000000                syz-executor.0
 30060   22038  21779      0  2   0x4000000                syz-executor.0
 62725  112865  22042      0  3        0x80  nanoslp       syz-executor.5
 62725  177990  22042      0  3   0x4000080  rest          syz-executor.5
 62725  255146  22042      0  3   0x4000080  fsleep        syz-executor.5
 92295  430088  14260      0  3        0x80  nanoslp       syz-executor.1
 92295  131383  14260      0  2   0x4000000                syz-executor.1
 92295  461706  14260      0  3   0x4000080  fsleep        syz-executor.1
 38767  311060  87490      0  2         0x2                syz-executor.3
 42244  516290  87490      0  3        0x82  nanoslp       syz-executor.2
 52545   72001  87490      0  2         0x2                syz-executor.6
 21779  307668  87490      0  3        0x82  nanoslp       syz-executor.0
  4101  101063  87490      0  2         0x2                syz-executor.4
 14260   75481  87490      0  3        0x82  nanoslp       syz-executor.1
 23083  403824  87490      0  2         0x2                syz-executor.7
 22042  362551  87490      0  3        0x82  nanoslp       syz-executor.5
 76434  489935      0      0  3     0x14280  nfsidl        nfsio
 74017  289976      0      0  3     0x14280  nfsidl        nfsio
 87107   26608      0      0  3     0x14280  nfsidl        nfsio
  2353  417290      0      0  3     0x14280  nfsidl        nfsio
 88822  266975      0      0  3     0x14280  nfsidl        nfsio
 34747  158354      0      0  3     0x14280  nfsidl        nfsio
 57598   38177      0      0  3     0x14280  nfsidl        nfsio
  4485  248816      0      0  3     0x14280  nfsidl        nfsio
 96941  180710      0      0  3     0x14280  nfsidl        nfsio
 54730  447106      0      0  3     0x14280  nfsidl        nfsio
 52835  331422      0      0  3     0x14280  nfsidl        nfsio
 10872  327053      0      0  3     0x14280  nfsidl        nfsio
 47308  448788      0      0  3     0x14280  nfsidl        nfsio
 31737   16886      0      0  3     0x14280  nfsidl        nfsio
 72612  239157      0      0  3     0x14280  nfsidl        nfsio
 37452  273433      0      0  3     0x14280  nfsidl        nfsio
 79586   41940      0      0  3     0x14280  nfsidl        nfsio
 32164  124153      0      0  3     0x14280  nfsidl        nfsio
 38554  108734      0      0  3     0x14280  nfsidl        nfsio
  4495  143376      0      0  3     0x14280  nfsidl        nfsio
 58056  405088      0      0  3     0x14200  bored         sosplice
 87490  332322  14168      0  3   0x2000082  wait          syz-fuzzer
 87490  150479  14168      0  3   0x6000082  thrsleep      syz-fuzzer
 87490  360982  14168      0  3   0x6000082  wait          syz-fuzzer
 87490  496444  14168      0  3   0x6000082  wait          syz-fuzzer
 87490  434033  14168      0  3   0x6000082  thrsleep      syz-fuzzer
 87490  143161  14168      0  3   0x6000082  thrsleep      syz-fuzzer
 87490  128945  14168      0  3   0x6000082  wait          syz-fuzzer
 87490  187029  14168      0  3   0x6000082  wait          syz-fuzzer
 87490   47421  14168      0  3   0x6000082  thrsleep      syz-fuzzer
 87490  162970  14168      0  3   0x6000082  kqread        syz-fuzzer
 87490  147682  14168      0  3   0x6000082  thrsleep      syz-fuzzer
 87490  474285  14168      0  3   0x6000082  wait          syz-fuzzer
 87490  481293  14168      0  3   0x6000082  wait          syz-fuzzer
 87490  186724  14168      0  3   0x6000082  wait          syz-fuzzer
 14168  467362  67597      0  3    0x10008a  sigsusp       ksh
 67597  494245  83833      0  3        0x9a  kqread        sshd
 81008   78392      1      0  3    0x100083  ttyin         getty
 83833  252075      1      0  3        0x88  kqread        sshd
  5865  456038  12659     73  3   0x1100090  kqread        syslogd
 12659   45280      1      0  3    0x100082  netio         syslogd
 17968  416768      1      0  3    0x100080  kqread        resolvd
 60232  289186  67902     77  3    0x100092  kqread        dhcpleased
 72484  180997  67902     77  3    0x100092  kqread        dhcpleased
 67902   86061      1      0  3        0x80  kqread        dhcpleased
 76200  407030      0      0  3     0x14200  bored         smr
 54596  449406      0      0  2     0x14200                zerothread
 79203  227296      0      0  3     0x14200  aiodoned      aiodoned
 10553  522055      0      0  3     0x14200  syncer        update
 83105   97360      0      0  3     0x14200  cleaner       cleaner
 15136  489168      0      0  3     0x14200  reaper        reaper
 85536  396288      0      0  3     0x14200  pgdaemon      pagedaemon
 85220  510704      0      0  3     0x14200  bored         viomb
 44963  323512      0      0  3  0x40014200  acpi0         acpi0
 60254  152964      0      0  3     0x14200  bored         softnet3
 26014  319814      0      0  3     0x14200  bored         softnet2
  4710  291175      0      0  3     0x14200  bored         softnet1
 94809   80373      0      0  3     0x14200  bored         softnet0
  1607  335938      0      0  3     0x14200  bored         systqmp
 70276  359693      0      0  3     0x14200  bored         systq
 99396  229264      0      0  3  0x40014200  bored         softclock
 30605  319930      0      0  3  0x40014200                idle0
     1  442553      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10194   6545K    7706K  78643K     19017        0
            pcb    13     10K      12K  78643K       260        0
         rtable   237      7K       7K  78643K       775        0
             pf    32      9K       9K  78643K       143        0
         ifaddr    44     11K      12K  78643K       138        0
        ifgroup    55      2K       2K  78643K       224        0
         sysctl     3      0K       0K  78643K         3        0
       counters    29     17K      17K  78643K        78        0
       ioctlops     0      0K       2K  78643K        96        0
            iov     0      0K      14K  78643K       279        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1417     89K      89K  78643K      3065        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         8        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       1K  78643K        82        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    14     49K      77K  78643K      1576        0
          sigio     0      0K       0K  78643K         7        0
           proc    56     58K      83K  78643K       893        0
        subproc   104      6K       6K  78643K       282        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        50        0
       in_multi    99      7K       7K  78643K       271        0
    ether_multi     1      0K       0K  78643K        11        0
            mrt     1      0K       0K  78643K         4        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   109    493K     493K  78643K       109        0
           exec     0      0K       1K  78643K       616        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     8     62K      64K  78643K        10        0
       UVM amap   322     82K      85K  78643K     15913        0
       UVM aobj    15      2K       2K  78643K        15        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        41        0
            NDP    12      0K       2K  78643K       103        0
           temp    74   5912K    6040K  78643K     19217        0
         kqueue    12     18K      30K  78643K       148        0
      SYN cache     2     16K      16K  78643K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb      120       93    0       90     1     0     1     1     0     8    0
rtentry    112      258    0      148     4     0     4     4     0     8    0
unpcb      144     1048    0     1035    12    11     1     6     0     8    0
syncache   304       20    0       20     4     4     0     1     0     8    0
sackhl      24        1    0        1     1     1     0     1     0     8    0
tcpqe       32      127    0      127     5     5     0     1     0     8    0
tcpcb      808      513    0      501    22    14     8     9     0     8    5
arp         88       44    0       26     1     0     1     1     0     8    0
inpcb      336     1075    0     1060    25    18     7     8     0     8    4
nd6        104       67    0       43     1     0     1     1     0     8    0
kcovpl      48       21    0       13     1     0     1     1     0     8    0
ppxss      1160      20    0       20     4     4     0     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     1050    0      595    40    11    29    29     0     8    0
art_table   32     1051    0      595     5     1     4     4     0     8    0
art_node    16      257    0      157     1     0     1     1     0     8    0
sysvmsgpl   40        4    0        1     1     0     1     1     0     8    0
semupl     112        5    0        5     1     1     0     1     0     8    0
semapl     112       76    0       66     1     0     1     1     0     8    0
shmpl      112       12    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     3191    0     1742    91     0    91    91     0     8    0
ffsino     240     3192    0     1742    86     0    86    86     0     8    0
nchpl      144     5333    0     4851    63    41    22    63     0     8    0
uvmvnodes   80     4957    0        0   102     0   102   102     0     8    0
vnodes     216     4957    0        0   276     0   276   276     0     8    0
namei      1024   20942    0    20937    10     9     1     3     0     8    0
kstatmem   264      122    0       98     2     0     2     2     0     8    0
scxspl     216    28507    0    28507    14    13     1     8     1     8    1
plimitpl   152      286    0      271     1     0     1     1     0     8    0
sigapl     424     1857    0     1795    10     2     8     8     0     8    0
futexpl     64    13680    0    13678     5     4     1     1     0     8    0
knotepl    120    31277    0    31197    11     7     4    10     0     8    1
kqueuepl   184      177    0      169     1     0     1     1     0     8    0
pipepl     288      664    0      636    26    19     7    11     0     8    5
fdescpl    432     1820    0     1795     5     1     4     4     0     8    0
filepl     120    11189    0    10949    32    20    12    15     0     8    4
lockfpl    104     1202    0     1199     2     1     1     2     0     8    0
lockfspl    48      501    0      498     1     0     1     1     0     8    0
sessionpl  144       36    0       20     1     0     1     1     0     8    0
pgrppl      48       43    0       27     1     0     1     1     0     8    0
ucredpl    104      981    0      971     1     0     1     1     0     8    0
zombiepl   144     1796    0     1795     2     1     1     1     0     8    0
processpl  1008    1857    0     1795    12     3     9     9     0     8    0
procpl     680     3892    0     3808    14     6     8     9     0     8    0
sosppl     168       24    0       24     3     3     0     1     0     8    0
sockpl     456     2219    0     2188    75    62    13    20     0     8    7
mcl64k     65536     80    0       80     6     5     1     1     0     8    1
mcl16k     16384     50    0       50     7     7     0     1     0     8    0
mcl12k     12288     65    0       65     6     5     1     1     0     8    1
mcl9k      9216      20    0       20     6     6     0     1     0     8    0
mcl8k      8192     152    0      152     7     6     1     1     0     8    1
mcl4k      4096     180    0      180     5     4     1     1     0     8    1
mcl2k2     2112      12    0       12     6     6     0     1     0     8    0
mcl2k      2048   67397    0    67350    35    22    13    26     0     8    6
mtagpl      96      361    0      355     9     4     5     8     0     8    4
mbufpl     256   121491    0   121318    88    65    23    69     0     8    7
bufpl      288     7837    0     1438   458     0   458   458     0     8    0
anonpl      24   339755    0   327790   128    31    97   108     0   188    7
amapchunkpl 152   51972    0    51151    61    23    38    47     0   158    3
amappl16   200     7667    0     7290    36    15    21    33     0     8    0
amappl15   192       16    0       16     2     2     0     1     0     8    0
amappl14   184      198    0      185     2     0     2     2     0     8    0
amappl13   176       15    0       15     2     2     0     1     0     8    0
amappl12   168     2665    0     2638     2     0     2     2     0     8    0
amappl11   160       52    0       39     1     0     1     1     0     8    0
amappl10   152       46    0       35     1     0     1     1     0     8    0
amappl9    144      155    0      155     6     6     0     1     0     8    0
amappl8    136      222    0      162     3     0     3     3     0     8    0
amappl7    128       65    0       52     1     0     1     1     0     8    0
amappl6    120      308    0      291     2     1     1     2     0     8    0
amappl5    112      240    0      230     1     0     1     1     0     8    0
amappl4    104      628    0      593     2     0     2     2     0     8    0
amappl3     96    10780    0    10705     5     2     3     3     0     8    0
amappl2     88     2047    0     1988     3     1     2     3     0     8    0
amappl1     80    15792    0    15287    23    12    11    22     0     8    0
amappl      88    15296    0    15084     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       14    0        0     1     0     1     1     0     8    0
uaddrrnd    24     1820    0     1795     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1820    0     1795     1     0     1     1     0     8    0
vmmpekpl   168    19609    0    19557     3     0     3     3     0     8    0
vmmpepl    168   134766    0   132696   182    71   111   128     0   357    8
vmsppl     368     1819    0     1795     3     0     3     3     0     8    0
rwobjpl     24    43108    0    36752    41     2    39    39     0     8    0
pdppl      4096    3647    0     3590   183   118    65    71     0     8    8
pvpl        32  1134706    0  1117109   448   241   207   331     0   265   37
pmappl     216     1819    0     1795     2     0     2     2     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     1113    0      306    24     0    24    24     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82780000) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fd334,ffffffff8283409e,13b,ffffffff82814215) at __assert+0x29 sys/kern/subr_prf.c:157
tun_clone_destroy(ffff800000d5d800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315
if_clone_destroy(ffff80002b2745c0) at if_clone_destroy+0x132 sys/net/if.c:1384
tun_dev_close(44002802,81) at tun_dev_close+0x141 sys/net/if_tun.c:521
spec_close(ffff80002b2746a0) at spec_close+0x2c7 sys/kern/spec_vnops.c:541
VOP_CLOSE(fffffd806777d948,81,fffffd807f7d78f0,ffff8000216d4800) at VOP_CLOSE+0xe2 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 vn_close sys/kern/vfs_vnops.c:292 [inline]
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 sys/kern/vfs_vnops.c:609
fdrop(fffffd806b80f3d8,ffff8000216d4800) at fdrop+0xcb sys/kern/kern_descrip.c:1274
closef(fffffd806b80f3d8,ffff8000216d4800) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff8000216d4800) at fdfree+0xf3 sys/kern/kern_descrip.c:1190
exit1(ffff8000216d4800,0,0,1) at exit1+0x367 sys/kern/kern_exit.c:199
sys_exit(ffff8000216d4800,ffff80002b274940,ffff80002b274990) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002b274a10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d9809d422b0, count: -16
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82780000) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fd334,ffffffff8283409e,13b,ffffffff82814215) at __assert+0x29 sys/kern/subr_prf.c:157
tun_clone_destroy(ffff800000d5d800) at tun_clone_destroy+0x234 sys/net/if_tun.c:315
if_clone_destroy(ffff80002b2745c0) at if_clone_destroy+0x132 sys/net/if.c:1384
tun_dev_close(44002802,81) at tun_dev_close+0x141 sys/net/if_tun.c:521
spec_close(ffff80002b2746a0) at spec_close+0x2c7 sys/kern/spec_vnops.c:541
VOP_CLOSE(fffffd806777d948,81,fffffd807f7d78f0,ffff8000216d4800) at VOP_CLOSE+0xe2 sys/kern/vfs_vops.c:156
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 vn_close sys/kern/vfs_vnops.c:292 [inline]
vn_closefile(fffffd806b80f3d8,ffff8000216d4800) at vn_closefile+0xd6 sys/kern/vfs_vnops.c:609
fdrop(fffffd806b80f3d8,ffff8000216d4800) at fdrop+0xcb sys/kern/kern_descrip.c:1274
closef(fffffd806b80f3d8,ffff8000216d4800) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff8000216d4800) at fdfree+0xf3 sys/kern/kern_descrip.c:1190
exit1(ffff8000216d4800,0,0,1) at exit1+0x367 sys/kern/kern_exit.c:199
sys_exit(ffff8000216d4800,ffff80002b274940,ffff80002b274990) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002b274a10) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d9809d422b0, count: -16

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/09 08:15 openbsd 142580dd4dc7 5e837c76 .config console log report ci-openbsd-main assert "sc->sc_dev == NUM" failed in if_tun.c
* Struck through repros no longer work on HEAD.