panic: rtable 22 is not empty Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *243964 46158 0 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8345ccc7) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,30) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,30) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,30) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff800001607000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015b0458,8020699f,ffff8000380c7d40,ffff80002a7854d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a7854d8,ffff8000380c7f10,ffff8000380c7e60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000380c7f10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380c7f10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdaa365e9ce0, 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(ffffffff8345ccc7) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,30) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,30) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,30) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff800001607000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015b0458,8020699f,ffff8000380c7d40,ffff80002a7854d8) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80002a7854d8,ffff8000380c7f10,ffff8000380c7e60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000380c7f10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000380c7f10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdaa365e9ce0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000380c7af0 rbx 0x16 rdx 0 rcx 0 rax 0xffff80002a7854d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7e0feffcad3ab2d7 r11 0x5ffc30a9247731d r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff829e7665 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000380c7ae0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=243964 pid=46158 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a785240,0xffff80003c0cc560 process=0xffff80002a735fc0 user=0xffff8000380c2000, vmspace=0xfffff3806d257180 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 81717 295388 24386 0 3 0x2 0 clonelk ifconfig 24386 273468 3684 0 3 0x100002 0x88 sigsusp sh 3684 455197 64875 0 3 0x2 0x80 wait syz-executor 46158 473534 43773 0 3 0x10 0x80 nanoslp syz-executor *46158 243964 43773 0 7 0x10 0x4000000 syz-executor 67223 92966 87672 0 3 0 0x80 nanoslp syz-executor 67223 111179 87672 0 3 0 0x4000080 kqsel syz-executor 67223 513962 87672 0 3 0 0x4000080 fsleep syz-executor 9041 460250 1 0 3 0x100003 0x80 ttyin getty 87672 350328 64875 0 3 0x2 0x80 nanoslp syz-executor 98978 515312 64875 0 3 0x2 0x80 piperd syz-executor 43773 119117 64875 0 3 0x2 0x80 nanoslp syz-executor 42696 202373 64875 0 3 0x2 0x80 piperd syz-executor 64875 485455 1 0 3 0x2 0x80 nanoslp syz-executor 59854 254389 0 0 3 0x14000 0x200 bored smr 61667 220410 0 0 3 0x14000 0x200 pgzero zerothread 25002 383462 0 0 3 0x14000 0x200 aiodoned aiodoned 92529 136816 0 0 3 0x14000 0x200 syncer update 42886 238488 0 0 3 0x14000 0x200 cleaner cleaner 17822 12377 0 0 3 0x14000 0x200 reaper reaper 58586 12970 0 0 3 0x14000 0x200 pgdaemon pagedaemon 20586 266524 0 0 3 0x14000 0x200 bored viomb 51633 139382 0 0 3 0x14000 0x40000200 acpi0 acpi0 25698 251052 0 0 3 0x14000 0x200 bored softnet0 37714 481927 0 0 3 0x14000 0x200 smrbar systqmp 15480 282411 0 0 3 0x14000 0x200 bored systq 50386 268124 0 0 3 0x14000 0x40000200 tmoslp softclock 34187 157330 0 0 3 0x14000 0x40000200 idle0 1 513500 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 11022 12111K 12235K 166960K 12416 0 pcb 18 14K 15K 166960K 58 0 rtable 180 6K 8K 166960K 1335 0 pf 28 12K 19K 166960K 123 0 ifaddr 34 6K 7K 166960K 181 0 ifgroup 42 1K 2K 166960K 193 0 sysctl 3 1K 9K 166960K 7 0 counters 31 17K 18K 166960K 70 0 ioctlops 0 0K 4K 166960K 558 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1300 82K 82K 166960K 1957 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 13 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 12 45K 85K 166960K 787 0 sigio 0 0K 0K 166960K 1 0 proc 28 34K 91K 166960K 1420 0 subproc 63 3K 4K 166960K 369 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 9 0 in_multi 66 4K 6K 166960K 451 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 797 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 94 74K 164K 166960K 7155 0 UVM aobj 17 2K 2K 166960K 17 0 pinsyscall 15 30K 91K 166960K 2721 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 37 0 NDP 13 0K 1K 166960K 128 0 temp 35 9119K 9182K 166960K 15832 0 kqueue 1 2K 26K 166960K 53 0 SYN cache 2 16K 16K 166960K 2 0 ddb>