panic: rtable 22 is not empty Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *280845 16217 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8345b612) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff8000015fe800,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff800010fe0008,8020699f,ffff8000318a3790,ffff80002a74c7d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a74c7d8,ffff8000318a3960,ffff8000318a38b0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000318a3960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318a3960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94c9345cdd0, count: 7 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: rtable 22 is not empty ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8345b612) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff8000015fe800,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff800010fe0008,8020699f,ffff8000318a3790,ffff80002a74c7d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a74c7d8,ffff8000318a3960,ffff8000318a38b0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000318a3960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318a3960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94c9345cdd0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000318a3540 rbx 0x16 rdx 0xffff8000015c9fc0 rcx 0 rax 0xffff80002a74c7d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7f109da937c61bd5 r11 0xe0f8ece9a1596be6 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff832283b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000318a3530 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=280845 pid=16217 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=59, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a727230,0xffff80002a74d778 process=0xffff80003c8cb1f0 user=0xffff80003189e000, vmspace=0xffffef006fcd4738 estcpu=9, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 9494 285138 41884 0 2 0x2 0 ifconfig 41884 322760 35778 0 3 0x100002 0x88 sigsusp sh 80740 48828 25553 0 2 0 0 syz-executor 80740 285869 25553 0 3 0 0x4000080 ttyin syz-executor 32842 399303 47436 0 2 0 0 syz-executor 32842 317245 47436 0 3 0 0x4000080 sbwait syz-executor 32842 143544 47436 0 3 0 0x4000080 fsleep syz-executor 35778 448582 90056 0 3 0x2 0x80 wait syz-executor 16217 342806 54570 0 3 0 0x80 nanoslp syz-executor 16217 243321 54570 0 3 0 0x4000080 sbwait syz-executor 16217 327928 54570 0 3 0 0x4000080 fsleep syz-executor *16217 280845 54570 0 7 0 0x4000000 syz-executor 66462 438608 28507 0 3 0 0x80 nanoslp syz-executor 66462 32 28507 0 3 0 0x4000080 sbwait syz-executor 66462 160913 28507 0 3 0 0x4000080 fsleep syz-executor 34634 121853 1 0 3 0x2 0x80 nanoslp getty 77770 272981 90056 0 3 0x2 0x80 nanoslp syz-executor 47436 385422 90056 0 3 0x2 0x80 nanoslp syz-executor 28507 116415 90056 0 3 0x2 0x80 nanoslp syz-executor 86465 171653 90056 0 3 0x2 0x80 nanoslp syz-executor 25553 55397 90056 0 3 0x2 0x80 nanoslp syz-executor 54570 199061 90056 0 3 0x2 0x80 nanoslp syz-executor 90056 369702 70460 0 3 0x2 0x80 wait syz-executor 70460 54026 1 0 3 0x100002 0x88 sigsusp ksh 32082 309121 24818 73 3 0x1100010 0x80 kqread syslogd 24818 114290 1 0 3 0x100002 0x80 sbwait syslogd-parent 60638 506906 0 0 3 0x14000 0x200 bored smr 69833 402262 0 0 2 0x14000 0x200 zerothread 26571 384840 0 0 3 0x14000 0x200 aiodoned aiodoned 93400 169580 0 0 3 0x14000 0x200 syncer update 14351 340196 0 0 3 0x14000 0x200 cleaner cleaner 72694 88354 0 0 3 0x14000 0x200 reaper reaper 19874 447773 0 0 3 0x14000 0x200 pgdaemon pagedaemon 99522 298706 0 0 3 0x14000 0x200 bored viomb 3230 224311 0 0 3 0x14000 0x40000200 acpi0 acpi0 19674 180592 0 0 3 0x14000 0x200 bored softnet0 30969 45653 0 0 3 0x14000 0x200 smrbar systqmp 3452 181644 0 0 3 0x14000 0x200 bored systq 54290 292072 0 0 3 0x14000 0x40000200 tmoslp softclock 58050 81600 0 0 3 0x14000 0x40000200 idle0 1 269617 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 11031 12116K 12243K 166960K 12246 0 pcb 19 12K 12K 166960K 38 0 rtable 171 6K 8K 166960K 569 0 pf 30 12K 14K 166960K 68 0 ifaddr 35 5K 7K 166960K 83 0 ifgroup 46 2K 2K 166960K 98 0 sysctl 2 1K 9K 166960K 7 0 counters 33 17K 17K 166960K 51 0 ioctlops 0 0K 4K 166960K 65 0 iov 0 0K 12K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1298 82K 82K 166960K 1508 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 17 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 97K 166960K 326 0 sigio 0 0K 0K 166960K 3 0 proc 54 43K 116K 166960K 713 0 subproc 72 4K 4K 166960K 144 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 3 0 in_multi 66 4K 6K 166960K 177 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 476 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 14 124K 124K 166960K 15 0 UVM amap 158 108K 175K 166960K 4290 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 25 50K 96K 166960K 1609 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 15 0K 2K 166960K 57 0 temp 33 9118K 9182K 166960K 8933 0 kqueue 4 6K 30K 166960K 39 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 59 0 59 1 0 1 1 0 8 1 rtentry 136 189 0 111 4 0 4 4 0 8 0 unpcb 144 88 0 77 1 0 1 1 0 8 0 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpcb 736 99 0 98 7 0 7 7 0 8 6 arp 96 33 0 20 1 0 1 1 0 8 0 inpcb 328 231 0 226 8 1 7 7 0 8 6 nd6 112 45 0 30 1 0 1 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1072 10 0 8 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfrule 1360 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 766 0 399 29 0 29 29 0 8 3 art_table 40 768 0 399 5 0 5 5 0 8 0 art_node 32 189 0 108 1 0 1 1 0 8 0 semupl 112 2 0 1 1 0 1 1 0 8 0 semapl 72 14 0 5 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1757 0 270 93 0 93 93 0 8 0 ffsino 256 1757 0 270 93 0 93 93 0 8 0 nchpl 144 2053 0 313 65 0 65 65 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 1945 0 0 109 0 109 109 0 8 0 namei 1024 7775 0 7775 5 3 2 4 0 8 2 kstatmem 264 55 0 32 2 0 2 2 0 8 0 scxspl 216 7983 0 7983 11 3 8 8 1 8 8 plimitpl 152 98 0 85 1 0 1 1 0 8 0 sigapl 424 597 0 561 6 1 5 6 0 8 0 knotepl 120 6325 0 6292 17 6 11 17 0 8 8 kqueuepl 184 50 0 45 1 0 1 1 0 8 0 pipepl 304 153 0 126 3 0 3 3 0 8 0 fdescpl 448 584 0 561 5 1 4 5 0 8 0 filepl 120 2342 0 2153 9 0 9 9 0 8 1 lockfpl 104 136 0 135 2 1 1 2 0 8 0 lockfspl 48 26 0 25 1 0 1 1 0 8 0 sessionpl 144 37 0 34 1 0 1 1 0 8 0 pgrppl 48 54 0 43 1 0 1 1 0 8 0 ucredpl 104 245 0 240 1 0 1 1 0 8 0 zombiepl 144 564 0 561 1 0 1 1 0 8 0 processpl 1160 597 0 561 4 0 4 4 0 8 0 procpl 664 750 0 706 5 0 5 5 0 8 0 sockpl 552 381 0 365 7 0 7 7 0 8 5 mcl64k 65536 6 0 6 2 1 1 1 0 8 1 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl8k 8192 14 0 14 2 1 1 1 0 8 1 mcl4k 4096 2656 0 2601 15 7 8 15 0 8 0 mcl2k 2048 332 0 332 4 0 4 4 0 8 4 mextrefs 64 119 0 119 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5920 0 5807 22 2 20 21 0 8 8 bufpl 272 3529 0 89 230 0 230 230 0 8 0 anonpl 24 103530 0 101439 34 10 24 31 0 187 3 amapchunkpl 152 12158 0 11787 30 6 24 24 0 158 7 amappl16 200 1481 0 1466 6 3 3 5 0 8 1 amappl15 192 105 0 105 1 1 0 1 0 8 0 amappl14 184 483 0 481 1 0 1 1 0 8 0 amappl13 176 127 0 124 1 0 1 1 0 8 0 amappl12 168 848 0 827 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 58 0 56 1 0 1 1 0 8 0 amappl9 144 283 0 282 1 0 1 1 0 8 0 amappl8 136 158 0 156 1 0 1 1 0 8 0 amappl7 128 164 0 160 1 0 1 1 0 8 0 amappl6 120 154 0 152 1 0 1 1 0 8 0 amappl5 112 160 0 158 1 0 1 1 0 8 0 amappl4 104 281 0 275 1 0 1 1 0 8 0 amappl3 96 2293 0 2207 3 0 3 3 0 8 0 amappl2 88 465 0 450 2 0 2 2 0 8 0 amappl1 80 11290 0 11096 14 1 13 14 0 8 3 amappl 88 3467 0 3340 4 0 4 4 0 92 0 uvmvnodes 80 105 0 0 3 0 3 3 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 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 584 0 561 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 584 0 561 1 0 1 1 0 8 0 vmmpekpl 168 6357 0 6319 3 0 3 3 0 8 0 vmmpepl 168 46368 0 45360 81 0 81 81 0 357 32 vmsppl 368 583 0 561 4 1 3 4 0 8 0 rwobjpl 40 16120 0 15590 11 0 11 11 0 8 0 pdppl 4096 1174 0 1122 98 34 64 82 0 8 12 pvpl 32 263658 0 257079 89 12 77 81 0 265 11 pmappl 216 583 0 561 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 622 0 54 17 0 17 17 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(ffffffff8345b612) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff8000015fe800,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff800010fe0008,8020699f,ffff8000318a3790,ffff80002a74c7d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a74c7d8,ffff8000318a3960,ffff8000318a38b0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000318a3960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318a3960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94c9345cdd0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8345b612) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,1b) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff8000015fe800,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff800010fe0008,8020699f,ffff8000318a3790,ffff80002a74c7d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a74c7d8,ffff8000318a3960,ffff8000318a38b0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000318a3960) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000318a3960) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94c9345cdd0, count: -8 ddb>