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 *346484 58239 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8349d0f1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834db500,ffffffff834bc23a,84,ffffffff83530e03) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(3,21) at rtmap_grow+0x1f2 rtable_add(2) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(2) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(2,ffff8000015fd000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001606688,8020699f,ffff80003c922e40,ffff80002a77cfa8) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a77cfa8,ffff80003c923010,ffff80003c922f60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c923010) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c923010) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfa41fb2dfd0, 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(ffffffff8349d0f1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834db500,ffffffff834bc23a,84,ffffffff83530e03) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(3,21) at rtmap_grow+0x1f2 rtable_add(2) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(2) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(2,ffff8000015fd000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001606688,8020699f,ffff80003c922e40,ffff80002a77cfa8) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a77cfa8,ffff80003c923010,ffff80003c922f60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c923010) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c923010) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfa41fb2dfd0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c922b70 rbx 0x21 rdx 0xffff8000015ea900 rcx 0 rax 0xffff80002a77cfa8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xaddfc87a1883e12a r11 0xf4e0fb683a1476a1 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff82ca9f95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c922b60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=346484 pid=58239 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000398d54f0,0xffff8000398d0a90 process=0xffff80003c994930 user=0xffff80003c91e000, vmspace=0xfffff4006da84468 estcpu=22, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 48534 364780 75372 0 3 0 0 vmmaplk syz-executor 48534 515089 75372 0 2 0 0x4000000 syz-executor 48534 172200 75372 0 2 0 0x4000000 syz-executor 16686 265958 13260 0 3 0 0 vmmaplk syz-executor 16686 19213 13260 0 2 0 0x4000000 syz-executor 16686 56632 13260 0 2 0 0x4000000 syz-executor 58239 2912 65988 0 3 0 0x80 nanoslp syz-executor *58239 346484 65988 0 7 0 0x4000000 syz-executor 58239 207637 65988 0 2 0 0x4000000 syz-executor 13612 425468 5484 0 2 0 0 syz-executor 13612 193662 5484 0 3 0 0x4000080 fsleep syz-executor 13612 486389 5484 0 3 0 0x4000080 fsleep syz-executor 59120 340620 0 0 3 0x14000 0x280 nfsidl nfsio 21177 168204 0 0 3 0x14000 0x280 nfsidl nfsio 39731 48546 0 0 3 0x14000 0x280 nfsidl nfsio 57150 454199 0 0 3 0x14000 0x280 nfsidl nfsio 88358 39094 0 0 3 0x14000 0x280 nfsidl nfsio 75540 337289 0 0 3 0x14000 0x280 nfsidl nfsio 66268 356172 0 0 3 0x14000 0x280 nfsidl nfsio 71051 313206 0 0 3 0x14000 0x280 nfsidl nfsio 8514 305385 0 0 3 0x14000 0x280 nfsidl nfsio 52048 392927 0 0 3 0x14000 0x280 nfsidl nfsio 54218 341320 0 0 3 0x14000 0x280 nfsidl nfsio 90411 135231 0 0 3 0x14000 0x280 nfsidl nfsio 53343 320963 0 0 3 0x14000 0x280 nfsidl nfsio 98131 297315 0 0 3 0x14000 0x280 nfsidl nfsio 89079 240001 0 0 3 0x14000 0x280 nfsidl nfsio 68210 40219 0 0 3 0x14000 0x280 nfsidl nfsio 77261 195964 0 0 3 0x14000 0x280 nfsidl nfsio 2286 460318 0 0 3 0x14000 0x280 nfsidl nfsio 75051 184211 0 0 3 0x14000 0x280 nfsidl nfsio 44233 368401 0 0 3 0x14000 0x280 nfsidl nfsio 65988 387595 87759 0 2 0x2 0x1 syz-executor 75372 222692 87759 0 2 0x2 0x1 syz-executor 26205 161117 87759 0 2 0x2 0 syz-executor 13260 253286 87759 0 2 0x2 0x1 syz-executor 3778 24933 87759 0 2 0x2 0 syz-executor 5484 1029 87759 0 2 0x2 0x1 syz-executor 54015 440547 87759 0 2 0x2 0 syz-executor 18981 140420 87759 0 2 0x2 0x1 syz-executor 87759 140096 535 0 3 0x2 0x80 kqread syz-executor 535 201176 21356 0 3 0x100002 0x88 sigsusp ksh 21356 423654 74530 0 3 0x10 0x88 kqread sshd-session 74530 103591 60996 0 3 0x12 0x80 kqread sshd-session 33906 512737 1 0 3 0x100003 0x80 ttyin getty 60996 135610 1 0 3 0 0x88 kqread sshd 79226 82130 80634 73 3 0x1100010 0x80 kqread syslogd 80634 102405 1 0 3 0x100002 0x80 sbwait syslogd 57582 335633 1 0 3 0x100000 0x80 kqread resolvd 27031 166193 3754 77 3 0x100012 0x80 kqread dhcpleased 43631 11722 3754 77 3 0x100012 0x80 kqread dhcpleased 3754 445440 1 0 3 0 0x80 kqread dhcpleased 36257 228754 0 0 3 0x14000 0x200 bored smr 42397 122823 0 0 2 0x14000 0x200 zerothread 90882 230782 0 0 3 0x14000 0x200 aiodoned aiodoned 47224 479811 0 0 3 0x14000 0x200 syncer update 12967 351526 0 0 3 0x14000 0x200 cleaner cleaner 1066 489900 0 0 3 0x14000 0x200 reaper reaper 1552 210202 0 0 3 0x14000 0x200 pgdaemon pagedaemon 54634 194654 0 0 3 0x14000 0x200 bored viomb 91105 64639 0 0 3 0x14000 0x40000200 acpi0 acpi0 14046 518978 0 0 3 0x14000 0x200 bored softnet0 45626 205074 0 0 3 0x14000 0x200 bored systqmp 36284 387805 0 0 3 0x14000 0x200 bored systq 3545 71129 0 0 3 0x14000 0x40000200 tmoslp softclock 86491 364630 0 0 3 0x14000 0x40000200 idle0 1 363013 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 12105K 12657K 166960K 12265 0 pcb 18 12K 12K 166960K 19 0 rtable 248 7K 7K 166960K 372 0 pf 32 13K 13K 166960K 34 0 ifaddr 43 7K 7K 166960K 46 0 ifgroup 52 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 17K 166960K 35 0 ioctlops 0 0K 4K 166960K 32 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1329 84K 84K 166960K 1411 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 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 57K 93K 166960K 157 0 proc 57 58K 108K 166960K 498 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 3 0 in_multi 99 6K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 369 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 211 158K 166K 166960K 3142 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 37 74K 92K 166960K 1267 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 12 0K 2K 166960K 29 0 temp 34 9110K 9130K 166960K 4640 0 kqueue 15 24K 28K 166960K 33 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 39 0 35 1 0 1 1 0 8 0 rtentry 136 112 0 1 4 0 4 4 0 8 0 unpcb 144 49 0 34 1 0 1 1 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 14 0 10 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 75 0 66 2 1 1 2 0 8 0 nd6 112 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 468 0 0 30 0 30 30 0 8 0 art_table 40 469 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1608 0 143 92 0 92 92 0 8 0 ffsino 256 1608 0 143 92 0 92 92 0 8 0 nchpl 144 1818 0 118 64 0 64 64 0 8 0 vnodes 216 1731 0 0 97 0 97 97 0 8 0 namei 1024 6167 0 6167 3 2 1 3 0 8 1 kstatmem 264 27 0 2 2 0 2 2 0 8 0 scxspl 216 6169 0 6169 4 3 1 4 1 8 1 plimitpl 152 30 0 14 1 0 1 1 0 8 0 sigapl 424 475 0 414 9 1 8 8 0 8 0 knotepl 120 3589 0 3535 16 7 9 9 0 8 7 kqueuepl 184 35 0 24 1 0 1 1 0 8 0 pipepl 304 123 0 96 3 0 3 3 0 8 0 fdescpl 448 442 0 414 5 1 4 5 0 8 0 filepl 120 1563 0 1352 8 0 8 8 0 8 0 lockfpl 104 13 0 8 1 0 1 1 0 8 0 lockfspl 48 9 0 4 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 86 0 75 1 0 1 1 0 8 0 zombiepl 144 426 0 425 2 1 1 1 0 8 0 processpl 1160 475 0 414 5 0 5 5 0 8 0 procpl 664 520 0 450 7 0 7 7 0 8 0 sockpl 552 163 0 135 3 0 3 3 0 8 0 mcl64k 65536 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 2523 0 2472 14 7 7 14 0 8 0 mcl2k 2048 139 0 130 3 1 2 2 0 8 0 mextrefs 64 55 0 47 2 1 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4477 0 4311 11 0 11 11 0 8 0 bufpl 272 2269 0 102 145 0 145 145 0 8 0 anonpl 24 77852 0 74874 20 0 20 20 0 187 0 amapchunkpl 152 8318 0 7886 21 0 21 21 0 158 0 amappl16 200 1019 0 1002 5 3 2 4 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 411 0 410 1 0 1 1 0 8 0 amappl13 176 120 0 110 1 0 1 1 0 8 0 amappl12 168 678 0 652 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 108 0 107 1 0 1 1 0 8 0 amappl7 128 142 0 130 1 0 1 1 0 8 0 amappl6 120 198 0 197 1 0 1 1 0 8 0 amappl5 112 92 0 83 1 0 1 1 0 8 0 amappl4 104 277 0 261 1 0 1 1 0 8 0 amappl3 96 1466 0 1383 3 0 3 3 0 8 0 amappl2 88 558 0 492 2 0 2 2 0 8 0 amappl1 80 10222 0 9682 13 0 13 13 0 8 0 amappl 88 2435 0 2289 4 0 4 4 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 441 0 414 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 441 0 414 1 0 1 1 0 8 0 vmmpekpl 168 5573 0 5542 2 0 2 2 0 8 0 vmmpepl 168 37169 0 35503 82 2 80 80 0 357 3 vmsppl 368 441 0 414 4 1 3 4 0 8 0 rwobjpl 40 13612 0 12702 11 0 11 11 0 8 0 pdppl 4096 889 0 828 96 30 66 80 0 8 5 pvpl 32 203170 0 195332 73 0 73 73 0 265 2 pmappl 216 441 0 414 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 506 0 47 14 0 14 14 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(ffffffff8349d0f1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834db500,ffffffff834bc23a,84,ffffffff83530e03) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(3,21) at rtmap_grow+0x1f2 rtable_add(2) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(2) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(2,ffff8000015fd000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001606688,8020699f,ffff80003c922e40,ffff80002a77cfa8) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a77cfa8,ffff80003c923010,ffff80003c922f60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c923010) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c923010) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfa41fb2dfd0, 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(ffffffff8349d0f1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834db500,ffffffff834bc23a,84,ffffffff83530e03) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(3,21) at rtmap_grow+0x1f2 rtable_add(2) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(2) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(2,ffff8000015fd000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001606688,8020699f,ffff80003c922e40,ffff80002a77cfa8) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a77cfa8,ffff80003c923010,ffff80003c922f60) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c923010) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c923010) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfa41fb2dfd0, count: -10