panic: kernel diagnostic assertion "TAILQ_EMPTY(&ifp->if_addrhooks)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if.c", line 1177 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 156338 1680 0 0 0x1 0 dhclient 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(ffffffff82207767,ffffffff82234f0d,499,ffffffff821f183f) at __assert+0x2b sys/kern/subr_prf.c:154 if_detach(ffff800000aed800) at if_detach+0x618 sys/net/if.c:1178 tun_clone_destroy(ffff800000aed800) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff80002360d4b0) at spec_close+0x311 sys/kern/spec_vnops.c:555 VOP_CLOSE(fffffd80650e0d08,ce,fffffd807f7c6a80,ffff800020ab0290) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd807046c1e0,ffff800020ab0290) at vn_closefile+0xd8 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd807046c1e0,ffff800020ab0290) at vn_closefile+0xd8 sys/kern/vfs_vnops.c:610 fdrop(fffffd807046c1e0,ffff800020ab0290) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd807046c1e0,ffff800020ab0290) at closef+0x11d sys/kern/kern_descrip.c:1257 fdfree(ffff800020ab0290) at fdfree+0x101 sys/kern/kern_descrip.c:1189 exit1(ffff800020ab0290,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020ab0290,ffff80002360d740,ffff80002360d790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff80002360d810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002360d810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff80002360d890, 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 kernel diagnostic assertion "TAILQ_EMPTY(&ifp->if_addrhooks)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/if.c", line 1177 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(ffffffff82207767,ffffffff82234f0d,499,ffffffff821f183f) at __assert+0x2b sys/kern/subr_prf.c:154 if_detach(ffff800000aed800) at if_detach+0x618 sys/net/if.c:1178 tun_clone_destroy(ffff800000aed800) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 spec_close(ffff80002360d4b0) at spec_close+0x311 sys/kern/spec_vnops.c:555 VOP_CLOSE(fffffd80650e0d08,ce,fffffd807f7c6a80,ffff800020ab0290) at VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 vn_closefile(fffffd807046c1e0,ffff800020ab0290) at vn_closefile+0xd8 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd807046c1e0,ffff800020ab0290) at vn_closefile+0xd8 sys/kern/vfs_vnops.c:610 fdrop(fffffd807046c1e0,ffff800020ab0290) at fdrop+0xc2 sys/kern/kern_descrip.c:1273 closef(fffffd807046c1e0,ffff800020ab0290) at closef+0x11d sys/kern/kern_descrip.c:1257 fdfree(ffff800020ab0290) at fdfree+0x101 sys/kern/kern_descrip.c:1189 exit1(ffff800020ab0290,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020ab0290,ffff80002360d740,ffff80002360d790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff80002360d810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002360d810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe7694) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe7660, count: -15 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002360d2b0 rbx 0xffff80002360d360 rdx 0xffff800020ab0290 rcx 0 rax 0 r8 0xffffffff819d4e5f kprintf+0x16f r9 0x1 r10 0x25 r11 0xa922170da1f5c180 r12 0x3000000008 r13 0xffff80002360d2c0 r14 0x100 r15 0x1 rip 0xffffffff81b2bfb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002360d2a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=281864 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace510,0xffffffff82642758 process=0xffff800020adc000 user=0xffff800023608000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60974 97062 1 0 3 0x100083 ttyin getty 57651 454530 35416 0 3 0x82 nanosleep syz-executor.0 80195 460816 35416 0 3 0x2 biowait syz-executor.1 80802 260813 0 0 3 0x14200 acct acct 84186 38077 0 0 3 0x14200 bored sosplice 35416 65881 62860 0 3 0x82 thrsleep syz-fuzzer 35416 354015 62860 0 3 0x4000082 nanosleep syz-fuzzer 35416 333377 62860 0 3 0x4000082 thrsleep syz-fuzzer 35416 277262 62860 0 3 0x4000082 thrsleep syz-fuzzer 35416 155198 62860 0 3 0x4000082 thrsleep syz-fuzzer 35416 364327 62860 0 3 0x4000082 kqread syz-fuzzer 35416 11699 62860 0 3 0x4000082 thrsleep syz-fuzzer 35416 132086 62860 0 3 0x4000082 thrsleep syz-fuzzer 35416 312915 62860 0 3 0x4000082 nanosleep syz-fuzzer 35416 70560 62860 0 3 0x4000082 thrsleep syz-fuzzer 62860 66613 18506 0 3 0x10008a pause ksh 18506 396500 59830 0 3 0x92 select sshd 59830 100395 1 0 3 0x80 select sshd 26614 406415 36518 74 3 0x100092 bpf pflogd 36518 55228 1 0 3 0x80 netio pflogd 49961 41022 19717 73 3 0x100090 kqread syslogd 19717 406961 1 0 3 0x100082 netio syslogd 12878 75521 1 77 3 0x100090 poll dhclient 1680 156338 1 0 7 0x1 dhclient 28007 433717 0 0 3 0x14200 pgzero zerothread 56670 249586 0 0 3 0x14200 aiodoned aiodoned 23749 388677 0 0 3 0x14200 syncer update 37450 217353 0 0 3 0x14200 cleaner cleaner 56418 184889 0 0 3 0x14200 reaper reaper 74974 348477 0 0 3 0x14200 pgdaemon pagedaemon 46587 348523 0 0 3 0x14200 bored crynlk 33835 202235 0 0 3 0x14200 bored crypto 11811 42062 0 0 3 0x40014200 acpi0 acpi0 48269 113767 0 0 3 0x40014200 idle1 49839 79467 0 0 2 0x14200 softnet 49862 302135 0 0 3 0x14200 bored systqmp 40308 341350 0 0 2 0x14200 systq 31372 320086 0 0 3 0x40014200 bored softclock 43994 160201 0 0 3 0x40014200 idle0 83785 522646 0 0 3 0x14200 bored smr 1 213907 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 80195 (syz-executor.1) thread 0xffff800020acf658 (460816) exclusive rrwlock inode r = 0 (0xfffffd806162c3d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd805ea0e3d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 cache_lookup+0x2bb sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #9 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #10 namei+0x63c sys/kern/vfs_lookup.c:249 #11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9630 6759K 9210K 78643K 55531 0 0 pcb 13 11K 13K 78643K 1752 0 0 rtable 106 13K 15K 78643K 5025 0 0 ifaddr 413 43K 44K 78643K 1670 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1899 0 0 iov 0 0K 60K 78643K 1757 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 14602 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 91 0 0 VM map 68 34K 34K 78643K 93 0 0 sem 12 0K 1K 78643K 4454 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7843 0 0 sigio 1 0K 0K 78643K 131 0 0 proc 62 63K 95K 78643K 3537 0 0 subproc 32 2K 2K 78643K 1003 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 762 0 0 in_multi 18 1K 2K 78643K 1016 0 0 ether_multi 1 0K 0K 78643K 89 0 0 mrt 0 0K 0K 78643K 41 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1776 0 0 pfkey data 0 0K 4K 78643K 4 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 268 597K 602K 78643K 29613 0 0 UVM aobj 130 8K 8K 78643K 130 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 1652 0 0 NDP 27 0K 1K 78643K 445 0 0 temp 187 3556K 4196K 78643K 266679 0 0 kqueue 0 0K 0K 78643K 82 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 193 0 188 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 785 0 783 1 0 1 1 0 8 0 rtentry 112 918 0 883 2 0 2 2 0 8 0 unpcb 120 12955 0 12938 46 43 3 5 0 8 2 syncache 264 41 0 41 19 18 1 1 0 8 1 tcpqe 32 107 0 107 13 13 0 1 0 8 0 tcpcb 544 4105 0 4097 53 51 2 14 0 8 1 ipq 40 3 0 3 2 2 0 1 0 8 0 ipqe 40 6 0 6 2 2 0 1 0 8 0 inpcb 280 15056 0 15045 56 53 3 9 0 8 2 rttmr 72 11 0 11 10 10 0 1 0 8 0 ip6q 72 4 0 4 3 3 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 128 0 127 6 5 1 1 0 8 0 pkpcb 40 41 0 41 12 12 0 1 0 8 0 swfcl 56 10 0 0 1 0 1 1 0 8 0 ppxss 1128 182 0 182 25 24 1 1 0 8 1 pffrag 232 246 0 246 11 10 1 1 0 482 1 pffrnode 88 243 0 243 11 10 1 1 0 8 1 pffrent 40 9181 0 9181 11 10 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 724 0 654 1 0 1 1 0 8 0 pfstkey 112 725 0 655 4 1 3 4 0 8 0 pfstate 328 725 0 655 12 5 7 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 46 0 45 22 21 1 4 0 8 0 art_heap4 256 4034 0 3843 63 46 17 18 0 8 4 art_table 32 4080 0 3888 5 2 3 3 0 8 0 art_node 16 917 0 884 1 0 1 1 0 8 0 sysvmsgpl 40 87 0 47 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 4452 0 4442 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14616 0 13164 47 0 47 47 0 8 0 ffsino 272 14616 0 13164 98 1 97 97 0 8 0 nchpl 144 27397 0 26869 61 41 20 61 0 8 0 uvmvnodes 72 7045 0 0 129 0 129 129 0 8 0 vnodes 208 7045 0 0 371 0 371 371 0 8 0 namei 1024 102437 0 102437 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 66 0 0 9 0 9 9 0 8 0 vmpool 552 91 0 25 5 0 5 5 0 8 0 scsiplug 64 17 0 17 13 13 0 1 0 8 0 scxspl 192 92402 0 92401 62 59 3 6 0 8 2 plimitpl 152 703 0 695 1 0 1 1 0 8 0 sigapl 432 7878 0 7863 4 2 2 3 0 8 0 futexpl 56 289062 0 289062 2 1 1 1 0 8 1 knotepl 112 1888 0 1869 6 5 1 3 0 8 0 kqueuepl 104 2717 0 2715 11 10 1 4 0 8 0 pipepl 160 5180 0 5161 26 24 2 2 0 8 1 fdescpl 488 7879 0 7863 3 0 3 3 0 8 0 filepl 152 87168 0 87066 96 89 7 14 0 8 2 lockfpl 104 9190 0 9189 1 0 1 1 0 8 0 lockfspl 48 2648 0 2647 1 0 1 1 0 8 0 sessionpl 112 83 0 72 1 0 1 1 0 8 0 pgrppl 48 189 0 178 1 0 1 1 0 8 0 ucredpl 96 7762 0 7753 1 0 1 1 0 8 0 zombiepl 144 7867 0 7866 2 1 1 1 0 8 0 processpl 896 7899 0 7866 5 1 4 5 0 8 0 procpl 632 25720 0 25678 5 0 5 5 0 8 0 srpgc 64 98 0 98 25 24 1 1 0 8 1 sosppl 128 261 0 261 26 25 1 1 0 8 1 sockpl 384 29079 0 29049 175 164 11 20 0 8 6 mcl64k 65536 528 0 0 61 33 28 33 0 8 1 mcl16k 16384 26 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 259 0 0 24 12 12 24 0 8 0 mtagpl 80 200 0 0 2 0 2 2 0 8 0 mbufpl 256 1011 0 0 48 0 48 48 0 8 0 bufpl 256 31007 0 23393 476 0 476 476 0 8 0 anonpl 16 1014813 0 980925 297 146 151 154 0 124 12 amapchunkpl 152 61041 0 60346 122 91 31 41 0 158 2 amappl16 192 41456 0 39976 260 177 83 87 0 8 7 amappl15 184 668 0 668 6 6 0 1 0 8 0 amappl14 176 1595 0 1589 1 0 1 1 0 8 0 amappl13 168 1056 0 1056 5 5 0 1 0 8 0 amappl12 160 637 0 627 1 0 1 1 0 8 0 amappl11 152 2281 0 2265 1 0 1 1 0 8 0 amappl10 144 433 0 429 1 0 1 1 0 8 0 amappl9 136 2627 0 2623 1 0 1 1 0 8 0 amappl8 128 2310 0 2230 3 0 3 3 0 8 0 amappl7 120 686 0 676 1 0 1 1 0 8 0 amappl6 112 2111 0 2096 1 0 1 1 0 8 0 amappl5 104 1562 0 1547 1 0 1 1 0 8 0 amappl4 96 8042 0 8008 1 0 1 1 0 8 0 amappl3 88 2143 0 2128 1 0 1 1 0 8 0 amappl2 80 59980 0 59893 3 0 3 3 0 8 0 amappl1 72 188880 0 188444 26 15 11 20 0 8 0 amappl 80 27101 0 27014 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 7970 0 7863 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7970 0 7863 1 0 1 1 0 8 0 vmmpekpl 168 66476 0 66426 3 0 3 3 0 8 0 vmmpepl 168 1031821 0 1028895 420 243 177 181 0 357 38 vmsppl 368 7878 0 7863 2 0 2 2 0 8 0 pdppl 4096 15947 0 15842 17 3 14 14 0 8 0 pvpl 32 2611111 0 2585856 472 235 237 248 0 265 23 pmappl 232 7969 0 7888 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 883 0 173 21 0 21 21 0 8 0