panic: kernel diagnostic assertion "rdomain == rtable_l2(rdomain)" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1312 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 45525 33609 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83489e15) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c43bc,ffffffff83502883,520,ffffffff83520322) at __assert+0x29 sys/kern/subr_prf.c:-1 rt_ifa_del(ffff80000169a700,200404,ffff80000169a750,1) at rt_ifa_del+0x4ad rt_ifa_dellocal(ffff80000169a700) at rt_ifa_dellocal+0x1a8 sys/net/route.c:1446 in6_purgeaddr(ffff80000169a700) at in6_purgeaddr+0x13a sys/netinet6/in6.c:913 in6_ifdetach(ffff8000015bf000) at in6_ifdetach+0x9e sys/netinet6/in6_ifattach.c:416 if_detach(ffff8000015bf000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff8000015bf000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000348c3030) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8ddcb0,ffff8000348c3200,ffff8000348c3150) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000348c3200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000348c3200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc6c6a3cf50, count: 2 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 "rdomain == rtable_l2(rdomain)" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1312 ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83489e15) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c43bc,ffffffff83502883,520,ffffffff83520322) at __assert+0x29 sys/kern/subr_prf.c:-1 rt_ifa_del(ffff80000169a700,200404,ffff80000169a750,1) at rt_ifa_del+0x4ad rt_ifa_dellocal(ffff80000169a700) at rt_ifa_dellocal+0x1a8 sys/net/route.c:1446 in6_purgeaddr(ffff80000169a700) at in6_purgeaddr+0x13a sys/netinet6/in6.c:913 in6_ifdetach(ffff8000015bf000) at in6_ifdetach+0x9e sys/netinet6/in6_ifattach.c:416 if_detach(ffff8000015bf000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff8000015bf000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000348c3030) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8ddcb0,ffff8000348c3200,ffff8000348c3150) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000348c3200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000348c3200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc6c6a3cf50, count: -13 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000348c2bd0 rbx 0x1 rdx 0xffff8000015baa00 rcx 0 rax 0xffff80003c8ddcb0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf982b8d2a80a2a0c r11 0x9f7baf8714019a r12 0 r13 0xffff80000169a750 r14 0 r15 0x1 rip 0xffffffff82b35015 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000348c2bc0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=45525 pid=33609 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a736a68,0xffff80002f0b07f0 process=0xffff800045ff8498 user=0xffff8000348be000, vmspace=0xfffff9006d3032f8 estcpu=29, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 81651 315806 10784 0 2 0 0 syz-executor 81651 76114 10784 0 2 0 0x4000000 syz-executor 7325 383585 17178 -1 2 0x10 0 syz-executor 7325 66395 17178 -1 3 0x10 0x4000080 fsleep syz-executor 11664 332831 61846 60929 2 0x10 0 syz-executor 11664 425102 61846 60929 3 0x10 0x4000080 fsleep syz-executor 56237 318330 20635 0 2 0 0 syz-executor 56237 513649 20635 0 3 0 0x4000080 fsleep syz-executor 22828 179601 21865 0 3 0 0x80 nanoslp syz-executor 22828 99296 21865 0 3 0 0x4000080 sbwait syz-executor 22828 201766 21865 0 3 0 0x4000080 fsleep syz-executor 33609 218557 6838 0 3 0 0x80 nanoslp syz-executor 33609 316745 6838 0 3 0 0x4000080 kqread syz-executor *33609 45525 6838 0 7 0 0x4000000 syz-executor 33609 463677 6838 0 3 0 0x4000080 fsleep syz-executor 68642 461994 5039 -1 3 0x11 0x80 nanoslp syz-executor 68642 75128 5039 -1 3 0x11 0x4000080 msgwait syz-executor 68642 97000 5039 -1 3 0x11 0x4000080 fsleep syz-executor 83972 305122 1 0 3 0x100003 0x80 ttyin getty 48798 400716 0 0 3 0x14000 0x200 acct acct 45476 35336 61847 0 3 0x2 0x80 wait syz-executor 61846 431784 61847 0 3 0x2 0x80 nanoslp syz-executor 20635 30866 61847 0 3 0x2 0x80 nanoslp syz-executor 17178 509515 61847 0 3 0x2 0x80 nanoslp syz-executor 10784 480416 61847 0 3 0x2 0x80 nanoslp syz-executor 5039 220835 61847 0 3 0x2 0x80 nanoslp syz-executor 6838 102291 61847 0 3 0x2 0x80 nanoslp syz-executor 21865 327584 61847 0 3 0x2 0x80 nanoslp syz-executor 61847 264459 35249 0 3 0x2 0x80 kqread syz-executor 35249 107059 82871 0 3 0x100002 0x88 sigsusp ksh 82871 518502 38350 0 3 0x10 0x88 kqread sshd-session 38350 275438 73577 0 3 0x12 0x80 kqread sshd-session 73577 263849 1 0 3 0 0x88 kqread sshd 16148 37481 21513 73 3 0x1100010 0x80 kqread syslogd 21513 312618 1 0 3 0x100002 0x80 sbwait syslogd 17599 367923 1 0 3 0x100000 0x80 kqread resolvd 82376 419806 36477 77 3 0x100012 0x80 kqread dhcpleased 31575 8320 36477 77 3 0x100012 0x80 kqread dhcpleased 36477 145266 1 0 3 0 0x80 kqread dhcpleased 83503 196086 0 0 3 0x14000 0x200 bored smr 83263 430160 0 0 2 0x14000 0x200 zerothread 33239 206498 0 0 3 0x14000 0x200 aiodoned aiodoned 10645 250772 0 0 3 0x14000 0x200 syncer update 46952 451522 0 0 3 0x14000 0x200 cleaner cleaner 83565 280358 0 0 3 0x14000 0x200 reaper reaper 71327 174325 0 0 3 0x14000 0x200 pgdaemon pagedaemon 98752 479415 0 0 3 0x14000 0x200 bored viomb 89376 311057 0 0 3 0x14000 0x40000200 acpi0 acpi0 63935 259557 0 0 3 0x14000 0x200 bored softnet0 47873 253243 0 0 3 0x14000 0x200 bored systqmp 96805 70401 0 0 3 0x14000 0x200 bored systq 75511 317687 0 0 3 0x14000 0x40000200 tmoslp softclock 48429 28157 0 0 3 0x14000 0x40000200 idle0 1 170774 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11071 12187K 12493K 166960K 12590 0 pcb 20 16K 21K 166960K 287 0 rtable 284 10K 10K 166960K 473 0 pf 34 13K 19K 166960K 75 0 ifaddr 45 8K 8K 166960K 62 0 ifgroup 54 2K 2K 166960K 80 0 sysctl 3 1K 9K 166960K 10 0 counters 34 17K 18K 166960K 49 0 ioctlops 0 0K 4K 166960K 118 0 iov 0 0K 16K 166960K 20 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1360 85K 86K 166960K 1773 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 93 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 93K 166960K 471 0 sigio 0 0K 0K 166960K 10 0 proc 63 67K 91K 166960K 551 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 40 0 in_multi 102 6K 6K 166960K 124 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 271 1208K 1208K 166960K 271 0 exec 0 0K 1K 166960K 406 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 228 151K 165K 166960K 5909 0 UVM aobj 8 2K 2K 166960K 8 0 pinsyscall 39 78K 94K 166960K 1575 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 21 0 NDP 14 0K 1K 166960K 40 0 temp 39 9110K 9182K 166960K 8681 0 kqueue 18 25K 33K 166960K 119 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 60 0 57 1 0 1 1 0 8 0 rtentry 136 135 0 16 5 0 5 5 0 8 0 unpcb 144 287 0 263 4 0 4 4 0 8 3 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 736 202 0 193 8 6 2 7 0 8 1 arp 96 22 0 2 1 0 1 1 0 8 0 ipq 40 5 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 0 1 0 1 1 0 8 0 inpcb 328 655 0 635 15 7 8 10 0 8 5 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 31 0 4 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 2 0 2 2 1 1 1 0 8 1 ppxss 1072 13 0 13 2 1 1 1 0 8 1 pfstscr 40 3 0 3 1 1 0 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 4 0 2 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfstkey 128 4 0 4 1 1 0 1 0 8 0 pfstate 384 2 0 2 1 1 0 1 0 8 0 pfrule 1360 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 541 0 46 31 0 31 31 0 8 0 art_table 40 543 0 46 6 0 6 6 0 8 0 art_node 32 132 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 72 91 0 81 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2203 0 747 92 0 92 92 0 8 0 ffsino 256 2203 0 747 92 0 92 92 0 8 0 nchpl 144 2882 0 1185 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 vnodes 216 2543 0 0 142 0 142 142 0 8 0 namei 1024 9364 0 9364 3 2 1 2 0 8 1 kstatmem 264 45 0 20 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 9694 0 9694 12 4 8 8 1 8 8 plimitpl 152 182 0 162 1 0 1 1 0 8 0 sigapl 424 768 0 724 6 1 5 6 0 8 0 knotepl 120 40889 0 40785 32 16 16 18 0 8 12 kqueuepl 184 183 0 167 3 0 3 3 0 8 2 pipepl 304 142 0 114 3 0 3 3 0 8 0 fdescpl 448 754 0 724 5 1 4 5 0 8 0 filepl 120 4464 0 4221 14 2 12 14 0 8 2 lockfpl 104 118 0 116 1 0 1 1 0 8 0 lockfspl 48 53 0 51 1 0 1 1 0 8 0 sessionpl 144 42 0 32 1 0 1 1 0 8 0 pgrppl 48 52 0 34 1 0 1 1 0 8 0 ucredpl 104 756 0 741 1 0 1 1 0 8 0 zombiepl 144 725 0 724 2 1 1 1 0 8 0 processpl 1152 768 0 724 4 0 4 4 0 8 0 procpl 664 1295 0 1240 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 1020 0 973 14 6 8 10 0 8 4 mcl64k 65536 33 0 30 1 0 1 1 0 8 0 mcl16k 16384 4 0 4 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k128 9344 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 20 0 19 1 0 1 1 0 8 0 mcl4k 4096 3005 0 2953 14 6 8 13 0 8 1 mcl2k 2048 378 0 374 1 0 1 1 0 8 0 mextrefs 64 217 0 216 2 1 1 1 0 8 0 mtagpl 96 6 0 5 2 1 1 1 0 8 0 mbufpl 256 8975 0 8815 30 18 12 29 0 8 1 bufpl 272 3066 0 103 198 0 198 198 0 8 0 anonpl 24 129904 0 126628 65 29 36 57 0 187 7 amapchunkpl 152 18511 0 18000 32 4 28 28 0 158 6 amappl16 200 2153 0 2123 15 11 4 14 0 8 1 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 412 0 411 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 1040 0 1010 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 99 0 97 1 0 1 1 0 8 0 amappl7 128 152 0 141 1 0 1 1 0 8 0 amappl6 120 180 0 179 1 0 1 1 0 8 0 amappl5 112 92 0 85 1 0 1 1 0 8 0 amappl4 104 321 0 302 1 0 1 1 0 8 0 amappl3 96 3299 0 3199 3 0 3 3 0 8 0 amappl2 88 886 0 812 2 0 2 2 0 8 0 amappl1 80 11523 0 10964 13 1 12 13 0 8 0 amappl 88 5160 0 4994 5 0 5 5 0 92 1 uvmvnodes 80 101 0 0 3 0 3 3 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 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 8 0 8 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 754 0 724 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 754 0 724 1 0 1 1 0 8 0 vmmpekpl 168 7700 0 7665 2 0 2 2 0 8 0 vmmpepl 168 55768 0 53925 93 9 84 90 0 357 2 vmsppl 368 753 0 724 4 1 3 4 0 8 0 rwobjpl 40 17815 0 16840 12 1 11 12 0 8 0 pdppl 4096 1514 0 1448 98 32 66 80 0 8 0 pvpl 32 355379 0 346351 130 31 99 125 0 265 10 pmappl 216 753 0 724 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 593 0 73 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83489e15) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c43bc,ffffffff83502883,520,ffffffff83520322) at __assert+0x29 sys/kern/subr_prf.c:-1 rt_ifa_del(ffff80000169a700,200404,ffff80000169a750,1) at rt_ifa_del+0x4ad rt_ifa_dellocal(ffff80000169a700) at rt_ifa_dellocal+0x1a8 sys/net/route.c:1446 in6_purgeaddr(ffff80000169a700) at in6_purgeaddr+0x13a sys/netinet6/in6.c:913 in6_ifdetach(ffff8000015bf000) at in6_ifdetach+0x9e sys/netinet6/in6_ifattach.c:416 if_detach(ffff8000015bf000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff8000015bf000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000348c3030) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8ddcb0,ffff8000348c3200,ffff8000348c3150) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000348c3200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000348c3200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc6c6a3cf50, count: -13 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83489e15) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c43bc,ffffffff83502883,520,ffffffff83520322) at __assert+0x29 sys/kern/subr_prf.c:-1 rt_ifa_del(ffff80000169a700,200404,ffff80000169a750,1) at rt_ifa_del+0x4ad rt_ifa_dellocal(ffff80000169a700) at rt_ifa_dellocal+0x1a8 sys/net/route.c:1446 in6_purgeaddr(ffff80000169a700) at in6_purgeaddr+0x13a sys/netinet6/in6.c:913 in6_ifdetach(ffff8000015bf000) at in6_ifdetach+0x9e sys/netinet6/in6_ifattach.c:416 if_detach(ffff8000015bf000) at if_detach+0x333 sys/net/if.c:1314 tun_clone_destroy(ffff8000015bf000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff8000348c3030) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8ddcb0,ffff8000348c3200,ffff8000348c3150) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000348c3200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000348c3200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc6c6a3cf50, count: -13