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 *308736 83315 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834807f0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c274d,ffffffff834a4495,84,ffffffff835189a2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(5,ffff8000015f4800) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001605378,8020699f,ffff80003c9490d0,ffff80003c8d6a88) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003c8d6a88,ffff80003c9492a0,ffff80003c9491f0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9492a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9492a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e2bb84fe0, 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> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834807f0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c274d,ffffffff834a4495,84,ffffffff835189a2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(5,ffff8000015f4800) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001605378,8020699f,ffff80003c9490d0,ffff80003c8d6a88) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003c8d6a88,ffff80003c9492a0,ffff80003c9491f0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9492a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9492a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e2bb84fe0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c948e00 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003c8d6a88 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7252a0f5c36e8d52 r11 0xa8c899cc0e84bd6b r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff82b91815 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c948df0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=308736 pid=83315 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=81, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8d7a18,0xffff80003c8d62d0 process=0xffff8000ffffb198 user=0xffff80003c944000, vmspace=0xfffff3806cab52f0 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84321 222341 93828 0 2 0 syz-executor 84321 40057 93828 0 3 0x4000080 fsleep syz-executor 50662 21777 19161 0 2 0 syz-executor 50662 92515 19161 0 3 0x4000080 fsleep syz-executor 50662 169546 19161 0 3 0x4000080 fsleep syz-executor 83315 245343 45171 0 2 0 syz-executor 83315 187463 45171 0 2 0x4000000 syz-executor 83315 313398 45171 0 2 0x4000000 syz-executor *83315 308736 45171 0 7 0x4000000 syz-executor 23796 411063 39294 0 3 0x80 nanoslp syz-executor 23796 141711 39294 0 2 0x4000001 syz-executor 23796 388994 39294 0 3 0x4000080 fsleep syz-executor 63628 285267 6670 0 2 0x1 syz-executor 63628 241184 6670 0 3 0x4000080 fsleep syz-executor 25491 29741 7252 0 2 0x1 syz-executor 25491 340951 7252 0 3 0x4000080 fsleep syz-executor 43661 199545 99459 0 3 0x80 nanoslp syz-executor 43661 467078 99459 0 3 0x4000080 fsleep syz-executor 43661 334894 99459 0 3 0x4000080 fsleep syz-executor 43661 383143 99459 0 3 0x4000080 fsleep syz-executor 69215 179404 16925 0 2 0x1 syz-executor 69215 431412 16925 0 2 0x4000001 syz-executor 69215 183995 16925 0 3 0x4000080 fsleep syz-executor 67002 332404 0 0 3 0x14200 acct acct 39294 386951 55055 0 3 0x82 nanoslp syz-executor 19161 309719 55055 0 3 0x82 nanoslp syz-executor 16925 101539 55055 0 3 0x82 nanoslp syz-executor 45171 212535 55055 0 3 0x82 nanoslp syz-executor 99459 270977 55055 0 3 0x82 nanoslp syz-executor 6670 293010 55055 0 3 0x82 nanoslp syz-executor 7252 115247 55055 0 3 0x82 nanoslp syz-executor 93828 172162 55055 0 3 0x82 nanoslp syz-executor 55055 16228 46201 0 3 0x82 kqread syz-executor 46201 483053 84124 0 3 0x10008a sigsusp ksh 84124 411190 19373 0 3 0x98 kqread sshd-session 19373 170160 53993 0 3 0x92 kqread sshd-session 48310 53575 1 0 3 0x100083 ttyin getty 53993 394220 1 0 3 0x88 kqread sshd 21824 20113 82599 73 3 0x1100090 kqread syslogd 82599 357240 1 0 3 0x100082 sbwait syslogd 54254 44734 1 0 3 0x100080 kqread resolvd 82978 446295 26373 77 3 0x100092 kqread dhcpleased 46254 440089 26373 77 3 0x100092 kqread dhcpleased 26373 187876 1 0 3 0x80 kqread dhcpleased 62246 185273 0 0 3 0x14200 bored smr 13109 26255 0 0 2 0x14200 zerothread 44872 319475 0 0 3 0x14200 aiodoned aiodoned 23239 155496 0 0 2 0x14e00 update 37133 288464 0 0 3 0x14200 cleaner cleaner 79604 310818 0 0 3 0x14200 reaper reaper 87852 89284 0 0 3 0x14200 pgdaemon pagedaemon 27547 8017 0 0 3 0x14200 bored viomb 20109 180632 0 0 3 0x40014200 acpi0 acpi0 81940 54836 0 0 3 0x14200 bored softnet0 7549 387501 0 0 3 0x14200 bored systqmp 77185 84357 0 0 3 0x14200 bored systq 29083 174769 0 0 3 0x40014200 tmoslp softclock 3502 372268 0 0 3 0x40014200 idle0 1 175041 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11037 12182K 12636K 166960K 12498 0 pcb 19 12K 12K 166960K 58 0 rtable 201 6K 6K 166960K 375 0 pf 29 13K 19K 166960K 73 0 ifaddr 34 6K 7K 166960K 51 0 ifgroup 42 1K 2K 166960K 66 0 sysctl 1 1K 9K 166960K 5 0 counters 31 17K 17K 166960K 39 0 ioctlops 0 0K 9K 166960K 63 0 iov 0 0K 12K 166960K 38 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1355 85K 86K 166960K 1729 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 320 0 sigio 1 0K 0K 166960K 6 0 proc 60 59K 124K 166960K 517 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 2 0K 0K 166960K 13 0 in_multi 77 5K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 19 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 379 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 239 151K 164K 166960K 4628 0 UVM aobj 12 2K 2K 166960K 13 0 pinsyscall 39 78K 96K 166960K 1420 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 9 0K 2K 166960K 33 0 temp 42 9109K 9173K 166960K 19116 0 kqueue 14 22K 26K 166960K 72 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 48 0 44 1 0 1 1 0 8 0 rtentry 136 114 0 25 4 0 4 4 0 8 0 unpcb 144 131 0 114 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 44 0 39 1 0 1 1 0 8 0 arp 96 18 0 4 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 219 0 208 4 2 2 4 0 8 0 nd6 112 25 0 6 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 0 1 1 0 8 1 pfstscr 40 4 0 4 1 0 1 1 0 8 1 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 7 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 4 1 0 1 1 0 8 1 pfstate 384 2 0 2 1 0 1 1 0 8 1 pfrule 1360 5 0 3 2 1 1 1 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 485 0 119 29 0 29 29 0 8 4 art_table 40 486 0 119 5 0 5 5 0 8 0 art_node 32 114 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 72 7 0 0 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2057 0 604 92 0 92 92 0 8 0 ffsino 256 2057 0 604 92 0 92 92 0 8 0 nchpl 144 2486 0 790 64 0 64 64 0 8 1 vnodes 216 2299 0 0 128 0 128 128 0 8 0 namei 1024 8236 0 8236 3 2 1 2 0 8 1 kstatmem 264 33 0 14 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 8420 0 8420 11 3 8 8 1 8 8 plimitpl 152 47 0 30 1 0 1 1 0 8 0 sigapl 424 616 0 572 6 1 5 6 0 8 0 knotepl 120 10596 0 10448 18 8 10 10 0 8 5 kqueuepl 184 93 0 81 1 0 1 1 0 8 0 pipepl 304 133 0 106 3 0 3 3 0 8 0 fdescpl 448 602 0 572 5 1 4 5 0 8 0 filepl 120 3046 0 2820 10 0 10 10 0 8 2 lockfpl 104 93 0 91 1 0 1 1 0 8 0 lockfspl 48 41 0 39 1 0 1 1 0 8 0 sessionpl 144 29 0 21 1 0 1 1 0 8 0 pgrppl 48 40 0 23 1 0 1 1 0 8 0 ucredpl 104 630 0 619 1 0 1 1 0 8 0 zombiepl 144 725 0 725 1 0 1 1 0 8 1 processpl 1152 616 0 572 4 0 4 4 0 8 0 procpl 664 986 0 927 6 0 6 6 0 8 0 sockpl 552 406 0 374 5 1 4 5 0 8 0 mcl64k 65536 79 0 79 2 1 1 1 0 8 1 mcl16k 16384 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 2778 0 2727 15 6 9 15 0 8 2 mcl2k 2048 279 0 277 4 0 4 4 0 8 3 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 6249 0 6094 20 0 20 20 0 8 6 bufpl 280 2869 0 103 198 0 198 198 0 8 0 anonpl 24 116903 0 113358 56 23 33 45 0 186 9 amapchunkpl 152 14299 0 13755 35 6 29 29 0 158 8 amappl16 200 2185 0 2160 15 12 3 14 0 8 0 amappl15 192 24 0 24 1 1 0 1 0 8 0 amappl14 184 413 0 411 1 0 1 1 0 8 0 amappl13 176 113 0 103 1 0 1 1 0 8 0 amappl12 168 842 0 813 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 1 0 1 0 8 0 amappl8 136 93 0 92 1 0 1 1 0 8 0 amappl7 128 140 0 129 1 0 1 1 0 8 0 amappl6 120 153 0 151 1 0 1 1 0 8 0 amappl5 112 100 0 93 1 0 1 1 0 8 0 amappl4 104 260 0 244 1 0 1 1 0 8 0 amappl3 96 2693 0 2572 4 0 4 4 0 8 0 amappl2 88 524 0 471 2 0 2 2 0 8 0 amappl1 80 10838 0 10283 13 1 12 13 0 8 0 amappl 88 3908 0 3731 5 0 5 5 0 92 0 uvmvnodes 80 101 0 0 3 0 3 3 0 8 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 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 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 602 0 572 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 602 0 572 1 0 1 1 0 8 0 vmmpekpl 168 6794 0 6762 2 0 2 2 0 8 0 vmmpepl 168 47135 0 45294 94 12 82 91 0 357 1 vmsppl 368 601 0 572 4 1 3 4 0 8 0 rwobjpl 40 16596 0 15617 13 0 13 13 0 8 0 pdppl 4096 1210 0 1144 98 32 66 82 0 8 0 pvpl 32 287901 0 278597 136 42 94 114 0 265 15 pmappl 216 601 0 572 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 380 0 49 10 0 10 10 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(ffffffff834807f0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c274d,ffffffff834a4495,84,ffffffff835189a2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(5,ffff8000015f4800) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001605378,8020699f,ffff80003c9490d0,ffff80003c8d6a88) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003c8d6a88,ffff80003c9492a0,ffff80003c9491f0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9492a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9492a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e2bb84fe0, 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(ffffffff834807f0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff834c274d,ffffffff834a4495,84,ffffffff835189a2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(5,ffff8000015f4800) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff800001605378,8020699f,ffff80003c9490d0,ffff80003c8d6a88) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80003c8d6a88,ffff80003c9492a0,ffff80003c9491f0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9492a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9492a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e2bb84fe0, count: -10