panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *285457 71121 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834bd18b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834f7d97,ffffffff834d4b19,84,ffffffff83549548) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff8000015ce000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800010fe1370,8020699f,ffff80002a879b30,ffff80003a4d7780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003a4d7780,ffff80002a879d00,ffff80002a879c50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a879d00) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879d00) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xafbd8c4e820, count: 5 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 "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 132 ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834bd18b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834f7d97,ffffffff834d4b19,84,ffffffff83549548) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff8000015ce000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800010fe1370,8020699f,ffff80002a879b30,ffff80003a4d7780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003a4d7780,ffff80002a879d00,ffff80002a879c50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a879d00) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879d00) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xafbd8c4e820, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a879860 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003a4d7780 r8 0x101010101010101 r9 0x8080808080808080 r10 0x146436bc63824dcf r11 0x8641a9db5ba731d0 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff833ad515 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a879850 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=285457 pid=71121 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=76, usrpri=76, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003a4d6a88,0xffffffff83a50c40 process=0xffff8000314a4018 user=0xffff80002a874000, vmspace=0xfffffd806d115018 estcpu=26, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 46412 502818 7874 0 2 0 0x1 syz-executor 46412 439107 7874 0 3 0 0x4000080 kqpoll syz-executor 71121 426230 8275 0 2 0 0x1 syz-executor 71121 72774 8275 0 2 0 0x4000000 syz-executor *71121 285457 8275 0 7 0 0x4000000 syz-executor 3510 112277 6435 0 2 0 0x1 syz-executor 3510 233655 6435 0 3 0 0x4000080 fsleep syz-executor 4690 254123 1 0 3 0x2 0x80 nanoslp getty 4190 135429 71193 0 2 0 0x1 syz-executor 4190 392433 71193 0 3 0 0x4000080 fsleep syz-executor 75742 32287 68036 -1 2 0x10 0 syz-executor 75742 342854 68036 -1 2 0x10 0x4000000 syz-executor 75742 521800 68036 -1 3 0x10 0x4000080 fsleep syz-executor 2165 189449 65281 0 2 0x2 0 syz-executor 8275 115186 65281 0 2 0x2 0xc80 syz-executor 71193 167980 65281 0 3 0x2 0x80 nanoslp syz-executor 45954 257316 0 0 3 0x14000 0x200 acct acct 68036 100844 65281 0 3 0x2 0x80 nanoslp syz-executor 6435 9849 65281 0 3 0x2 0x80 nanoslp syz-executor 7874 235759 65281 0 2 0x2 0xc80 syz-executor 65281 419028 1 0 3 0x2 0x80 wait syz-executor 57587 350034 0 0 3 0x14000 0x200 bored smr 12968 3989 0 0 2 0x14000 0x200 zerothread 83411 431290 0 0 3 0x14000 0x200 aiodoned aiodoned 24734 79873 0 0 3 0x14000 0x200 syncer update 74910 17131 0 0 3 0x14000 0x200 cleaner cleaner 79688 517180 0 0 3 0x14000 0x200 reaper reaper 31799 436265 0 0 3 0x14000 0x200 pgdaemon pagedaemon 1381 231211 0 0 3 0x14000 0x200 bored viomb 96918 95765 0 0 3 0x14000 0x40000200 acpi0 acpi0 93471 208640 0 0 3 0x14000 0x200 bored softnet0 17614 146888 0 0 3 0x14000 0x200 bored systqmp 53704 342335 0 0 3 0x14000 0x200 bored systq 42457 418 0 0 2 0x14000 0x40000200 softclock 64284 374911 0 0 3 0x14000 0x40000200 idle0 1 19293 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 11061 12118K 12238K 166960K 12573 0 pcb 20 12K 12K 166960K 63 0 rtable 222 6K 6K 166960K 1503 0 pf 29 12K 16K 166960K 131 0 ifaddr 39 7K 7K 166960K 210 0 ifgroup 46 2K 2K 166960K 222 0 sysctl 2 1K 9K 166960K 6 0 counters 32 17K 17K 166960K 81 0 ioctlops 0 0K 4K 166960K 112 0 iov 0 0K 12K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 8K 166960K 5 0 vnodes 1362 86K 86K 166960K 2003 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 18 1K 1K 166960K 148 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 50K 90K 166960K 934 0 sigio 0 0K 0K 166960K 2 0 proc 20 25K 91K 166960K 1599 0 subproc 63 3K 4K 166960K 414 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 162 0 in_multi 88 5K 6K 166960K 528 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 23 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 874 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 117 82K 160K 166960K 8197 0 UVM aobj 7 4K 6K 166960K 10 0 pinsyscall 17 34K 92K 166960K 3025 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 20 0 NDP 13 0K 2K 166960K 151 0 temp 35 9119K 9179K 166960K 33181 0 kqueue 1 2K 28K 166960K 65 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 119 0 119 1 0 1 1 0 8 1 rtentry 136 530 0 430 4 0 4 4 0 8 0 unpcb 144 328 0 328 4 3 1 4 0 8 1 syncache 336 8 0 8 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 736 65 0 60 2 1 1 2 0 8 0 arp 96 94 0 78 1 0 1 1 0 8 0 inpcb 328 1009 0 997 14 4 10 10 0 8 8 ip6q 80 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 112 139 0 118 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 46 0 39 1 0 1 1 0 8 0 ppxss 1072 10 0 10 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 384 1 0 1 1 1 0 1 0 8 0 pfrule 1360 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2139 0 1721 39 7 32 32 0 8 4 art_table 40 2140 0 1721 6 0 6 6 0 8 0 art_node 32 530 0 440 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 145 0 129 1 0 1 1 0 8 0 shmpl 120 5 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2079 0 526 98 0 98 98 0 8 0 ffsino 256 2079 0 526 98 0 98 98 0 8 0 nchpl 144 2546 0 701 69 0 69 69 0 8 0 vnodes 216 2674 0 0 149 0 149 149 0 8 0 namei 1024 13191 0 13191 5 3 2 3 0 8 2 vcpupl 3968 32 0 32 4 4 0 4 0 8 0 vmpool 808 2 0 2 1 1 0 1 0 8 0 kstatmem 264 119 0 98 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11022 0 11022 8 7 1 8 1 8 1 plimitpl 152 104 0 94 1 0 1 1 0 8 0 sigapl 424 1149 0 1118 6 0 6 6 0 8 0 knotepl 120 37425 0 37408 11 1 10 11 0 8 7 kqueuepl 184 167 0 164 1 0 1 1 0 8 0 pipepl 304 253 0 226 3 0 3 3 0 8 0 fdescpl 448 1135 0 1118 5 1 4 5 0 8 1 filepl 120 4854 0 4700 12 2 10 11 0 8 3 lockfpl 104 118 0 118 1 0 1 1 0 8 1 lockfspl 48 54 0 54 1 0 1 1 0 8 1 sessionpl 144 103 0 101 1 0 1 1 0 8 0 pgrppl 48 152 0 142 1 0 1 1 0 8 0 ucredpl 104 505 0 501 1 0 1 1 0 8 0 zombiepl 144 1254 0 1252 1 0 1 1 0 8 0 processpl 1160 1149 0 1118 4 0 4 4 0 8 0 procpl 664 1611 0 1573 7 1 6 7 0 8 1 sockpl 552 1471 0 1459 21 11 10 13 0 8 8 mcl64k 65536 76 0 76 2 1 1 1 0 8 1 mcl16k 16384 3 0 3 2 1 1 1 0 8 1 mcl9k128 9344 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 8 0 8 2 1 1 1 0 8 1 mcl4k 4096 2791 0 2734 15 7 8 14 0 8 0 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 957 0 957 5 2 3 3 0 8 3 mextrefs 64 254 0 254 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 12804 0 12664 82 67 15 74 0 8 3 bufpl 272 4161 0 102 271 0 271 271 0 8 0 anonpl 24 136878 0 135523 54 9 45 45 0 187 21 amapchunkpl 152 22040 0 21728 28 6 22 23 0 158 8 amappl16 200 1485 0 1476 16 6 10 14 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 864 0 864 1 0 1 1 0 8 1 amappl13 176 212 0 211 1 0 1 1 0 8 0 amappl12 168 1521 0 1506 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 59 0 59 1 0 1 1 0 8 1 amappl9 144 283 0 283 1 1 0 1 0 8 0 amappl8 136 263 0 262 1 0 1 1 0 8 0 amappl7 128 224 0 221 1 0 1 1 0 8 0 amappl6 120 534 0 534 1 0 1 1 0 8 1 amappl5 112 88 0 88 1 0 1 1 0 8 1 amappl4 104 380 0 377 1 0 1 1 0 8 0 amappl3 96 4220 0 4167 3 0 3 3 0 8 0 amappl2 88 1143 0 1121 2 0 2 2 0 8 0 amappl1 80 15996 0 15882 14 1 13 13 0 8 7 amappl 88 6821 0 6718 5 0 5 5 0 92 1 uvmvnodes 80 105 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 4 0 4 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 254 0 254 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 9 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1135 0 1118 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1135 0 1118 1 0 1 1 0 8 0 vmmpekpl 168 10366 0 10314 3 0 3 3 0 8 0 vmmpepl 168 80693 0 79980 91 3 88 88 0 357 47 vmsppl 368 1134 0 1118 4 1 3 4 0 8 0 rwobjpl 40 24654 0 24261 13 0 13 13 0 8 0 pdppl 4096 2280 0 2240 120 56 64 78 0 8 24 pvpl 32 418236 0 414635 118 8 110 110 0 265 60 pmappl 216 1136 0 1120 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 761 0 154 18 0 18 18 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(ffffffff834bd18b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834f7d97,ffffffff834d4b19,84,ffffffff83549548) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff8000015ce000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800010fe1370,8020699f,ffff80002a879b30,ffff80003a4d7780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003a4d7780,ffff80002a879d00,ffff80002a879c50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a879d00) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879d00) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xafbd8c4e820, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834bd18b) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834f7d97,ffffffff834d4b19,84,ffffffff83549548) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff8000015ce000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800010fe1370,8020699f,ffff80002a879b30,ffff80003a4d7780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003a4d7780,ffff80002a879d00,ffff80002a879c50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a879d00) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a879d00) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xafbd8c4e820, count: -10 ddb>