load: 0.05 not a panic: rtable 22 is not empty Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *202044 62626 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83459900) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff80000160c000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015a39e8,8020699f,ffff80003c8ef240,ffff80003c8f0fb0) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80003c8f0fb0,ffff80003c8ef410,ffff80003c8ef360) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8ef410) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ef410) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x855379ea7f0, 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(ffffffff83459900) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff80000160c000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015a39e8,8020699f,ffff80003c8ef240,ffff80003c8f0fb0) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80003c8f0fb0,ffff80003c8ef410,ffff80003c8ef360) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8ef410) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ef410) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x855379ea7f0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c8eeff0 rbx 0x16 rdx 0xffff8000015e8740 rcx 0 rax 0xffff80003c8f0fb0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x39ee52453dea19b3 r11 0x43b0caf56b2f9258 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff82b5e635 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c8eefe0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=202044 pid=62626 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8f02b8,0xffff80002a784a88 process=0xffff80003a4c8928 user=0xffff80003c8ea000, vmspace=0xfffff6006d0df460 estcpu=0, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 40932 202038 14543 0 2 0x2 0 ifconfig 14543 183826 34502 0 3 0x100002 0x88 sigsusp sh 93149 331017 17853 0 3 0 0x80 nanoslp syz-executor 93149 182112 17853 0 3 0 0x4000080 ttyin syz-executor 93149 151824 17853 0 3 0 0x4000080 fsleep syz-executor 34502 224235 93939 0 3 0x2 0x80 wait syz-executor 62626 518760 48207 0 3 0 0x80 nanoslp syz-executor *62626 202044 48207 0 7 0 0x4000000 syz-executor 68083 472069 14087 0 3 0 0x80 nanoslp syz-executor 68083 104512 14087 0 3 0 0x4000080 fsleep syz-executor 68083 59393 14087 0 3 0 0x4000080 kqsel syz-executor 68083 141829 14087 0 3 0 0x4000080 fsleep syz-executor 63456 409295 1 0 3 0x2 0x80 nanoslp getty 89563 282330 0 0 3 0x14000 0x200 acct acct 14087 466392 93939 0 3 0x2 0x80 nanoslp syz-executor 17853 52454 93939 0 3 0x2 0x80 nanoslp syz-executor 5417 305510 93939 0 3 0x2 0x80 piperd syz-executor 48207 420044 93939 0 3 0x2 0x80 nanoslp syz-executor 50795 501028 93939 0 3 0x2 0x80 piperd syz-executor 81536 449445 93939 0 3 0x2 0x80 piperd syz-executor 93939 165731 1 0 3 0x2 0x80 wait syz-executor 27126 160582 1 73 3 0x1100010 0x80 kqread syslogd 44614 368701 0 0 3 0x14000 0x200 bored smr 48505 434810 0 0 3 0x14000 0x200 pgzero zerothread 6048 508204 0 0 3 0x14000 0x200 aiodoned aiodoned 82075 430857 0 0 3 0x14000 0x200 syncer update 93999 218143 0 0 3 0x14000 0x200 cleaner cleaner 20711 165429 0 0 3 0x14000 0x200 reaper reaper 5154 395670 0 0 3 0x14000 0x200 pgdaemon pagedaemon 74785 471692 0 0 3 0x14000 0x200 bored viomb 32246 252924 0 0 3 0x14000 0x40000200 acpi0 acpi0 18314 212118 0 0 3 0x14000 0x200 bored softnet0 80486 305565 0 0 3 0x14000 0x200 smrbar systqmp 43944 71003 0 0 3 0x14000 0x200 bored systq 63163 466548 0 0 3 0x14000 0x40000200 tmoslp softclock 38415 402464 0 0 3 0x14000 0x40000200 idle0 1 509357 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 11021 12097K 12254K 166960K 12163 0 pcb 18 12K 12K 166960K 25 0 rtable 190 6K 7K 166960K 357 0 pf 27 12K 17K 166960K 39 0 ifaddr 35 6K 7K 166960K 47 0 ifgroup 43 1K 2K 166960K 60 0 sysctl 2 1K 9K 166960K 7 0 counters 32 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 111 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 82K 166960K 1412 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 15 53K 97K 166960K 194 0 proc 27 33K 124K 166960K 514 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 77 5K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 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 381 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 124 91K 167K 166960K 3455 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 19 38K 96K 166960K 1306 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 2 0 NDP 10 0K 2K 166960K 30 0 temp 35 9118K 9182K 166960K 3771 0 kqueue 3 4K 28K 166960K 35 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 41 0 40 1 0 1 1 0 8 0 rtentry 136 112 0 23 4 0 4 4 0 8 0 unpcb 144 71 0 65 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 20 0 18 1 0 1 1 0 8 0 arp 96 19 0 4 1 0 1 1 0 8 0 inpcb 328 128 0 123 4 0 4 4 0 8 3 ip6q 80 17 0 16 1 0 1 1 0 8 0 ip6af 40 33 0 32 1 0 1 1 0 8 0 nd6 112 24 0 6 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 2 art_table 40 454 0 44 5 0 5 5 0 8 0 art_node 32 112 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 7 0 1 1 0 1 1 0 8 0 shmpl 120 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1669 0 207 93 0 93 93 0 8 1 ffsino 256 1669 0 207 93 0 93 93 0 8 1 nchpl 144 1929 0 242 64 0 64 64 0 8 0 vnodes 216 1783 0 0 100 0 100 100 0 8 0 namei 1024 6451 0 6451 4 0 4 4 0 8 4 kstatmem 264 29 0 8 2 0 2 2 0 8 0 scxspl 216 6578 0 6578 4 0 4 4 1 8 4 plimitpl 152 38 0 26 1 0 1 1 0 8 0 sigapl 424 484 0 452 6 0 6 6 0 8 1 knotepl 120 5063 0 5041 6 0 6 6 0 8 4 kqueuepl 184 38 0 33 1 0 1 1 0 8 0 pipepl 304 131 0 104 3 0 3 3 0 8 0 fdescpl 448 470 0 452 5 0 5 5 0 8 1 filepl 120 1806 0 1625 10 0 10 10 0 8 2 lockfpl 104 22 0 21 1 0 1 1 0 8 0 lockfspl 48 11 0 10 1 0 1 1 0 8 0 sessionpl 144 24 0 21 1 0 1 1 0 8 0 pgrppl 48 34 0 23 1 0 1 1 0 8 0 ucredpl 104 133 0 128 1 0 1 1 0 8 0 zombiepl 144 453 0 452 1 0 1 1 0 8 0 processpl 1160 484 0 452 4 0 4 4 0 8 0 procpl 664 574 0 536 5 0 5 5 0 8 0 sockpl 552 246 0 234 5 0 5 5 0 8 3 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 1 0 1 1 0 8 1 mcl4k 4096 2627 0 2574 15 0 15 15 0 8 8 mcl2k 2048 191 0 182 2 0 2 2 0 8 0 mextrefs 64 73 0 65 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4916 0 4752 11 0 11 11 0 8 0 bufpl 272 2457 0 85 159 0 159 159 0 8 0 anonpl 24 89210 0 84472 36 0 36 36 0 187 0 amapchunkpl 152 9494 0 9197 22 0 22 22 0 158 5 amappl16 200 1436 0 1249 14 0 14 14 0 8 2 amappl15 192 10 0 10 1 0 1 1 0 8 1 amappl14 184 459 0 458 1 0 1 1 0 8 0 amappl13 176 113 0 111 1 0 1 1 0 8 0 amappl12 168 706 0 690 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 59 0 57 1 0 1 1 0 8 0 amappl9 144 282 0 282 1 0 1 1 0 8 1 amappl8 136 89 0 87 1 0 1 1 0 8 0 amappl7 128 138 0 135 1 0 1 1 0 8 0 amappl6 120 113 0 112 1 0 1 1 0 8 0 amappl5 112 129 0 126 1 0 1 1 0 8 0 amappl4 104 265 0 258 1 0 1 1 0 8 0 amappl3 96 1781 0 1719 3 0 3 3 0 8 0 amappl2 88 439 0 426 2 0 2 2 0 8 0 amappl1 80 10518 0 10367 13 0 13 13 0 8 2 amappl 88 2771 0 2669 4 0 4 4 0 92 1 uvmvnodes 80 99 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 470 0 452 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 470 0 452 1 0 1 1 0 8 0 vmmpekpl 168 5525 0 5493 2 0 2 2 0 8 0 vmmpepl 168 39512 0 38576 79 0 79 79 0 357 28 vmsppl 368 469 0 452 4 0 4 4 0 8 1 rwobjpl 40 14517 0 13890 11 0 11 11 0 8 1 pdppl 4096 946 0 904 92 20 72 82 0 8 30 pvpl 32 225175 0 216164 94 0 94 94 0 265 13 pmappl 216 469 0 452 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 519 0 20 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(ffffffff83459900) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff80000160c000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015a39e8,8020699f,ffff80003c8ef240,ffff80003c8f0fb0) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80003c8f0fb0,ffff80003c8ef410,ffff80003c8ef360) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8ef410) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ef410) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x855379ea7f0, 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(ffffffff83459900) at panic+0x1cf sys/kern/subr_prf.c:198 rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_entry sys/net/rtable.c:204 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 rtable_exists sys/net/rtable.c:238 [inline] rtable_l2set(16,16,e) at rtable_l2set+0x411 sys/net/rtable.c:359 if_createrdomain(ffff80000160c000,16) at if_createrdomain+0x250 sys/net/if.c:2047 ifioctl(ffff8000015a39e8,8020699f,ffff80003c8ef240,ffff80003c8f0fb0) at ifioctl+0x1c02 sys/net/if.c:2381 sys_ioctl(ffff80003c8f0fb0,ffff80003c8ef410,ffff80003c8ef360) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8ef410) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ef410) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x855379ea7f0, count: -8 ddb>