panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 131 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *314806 80878 0 0x8000000 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a7918) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830622c5,ffffffff83030af6,83,ffffffff830a0a43) at __assert+0x29 rtmap_grow(20,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1f) at rtable_add+0x279 if_createrdomain(1f,ffff8000011a7800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8062336020,8020699f,ffff80002a533c10,ffff80002a47b6f8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47b6f8,ffff80002a533df0,ffff80002a533d40) at sys_ioctl+0x678 syscall(ffff80002a533df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10836efe010, 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 131 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a7918) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830622c5,ffffffff83030af6,83,ffffffff830a0a43) at __assert+0x29 rtmap_grow(20,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1f) at rtable_add+0x279 if_createrdomain(1f,ffff8000011a7800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8062336020,8020699f,ffff80002a533c10,ffff80002a47b6f8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47b6f8,ffff80002a533df0,ffff80002a533d40) at sys_ioctl+0x678 syscall(ffff80002a533df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10836efe010, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a533940 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a47b6f8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x83055a22f63d470 r11 0x6b1b81b08451a8c7 r12 0 r13 0x19 r14 0 r15 0x1 rip 0xffffffff8281ee55 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a533930 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=314806 pid=80878 tcnt=4 stat=onproc flags process=8000000 proc=4000000 runpri=81, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003765e7c0,0xffff80002a47ace8 process=0xffff80002a464450 user=0xffff80002a52e000, vmspace=0xfffffd806c25a168 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73965 418137 58686 0 2 0x8000000 syz-executor 73965 268027 58686 0 2 0xc000000 syz-executor 94737 484955 71183 0 2 0x8000000 syz-executor 94737 416533 71183 0 3 0xc000080 fsleep syz-executor 78417 271628 18426 0 2 0x8000000 syz-executor 78417 5427 18426 0 3 0xc000080 fsleep syz-executor 96073 351301 10755 0 2 0x8000000 syz-executor 96073 168744 10755 0 3 0xc000080 fsleep syz-executor 96073 92783 10755 0 3 0xc000080 fsleep syz-executor 41535 41453 69723 0 2 0x8000000 syz-executor 41535 204977 69723 0 3 0xc000080 fsleep syz-executor 41535 67252 69723 0 2 0xc000000 syz-executor 80878 146788 25342 0 2 0x8000000 syz-executor 80878 287533 25342 0 3 0xc000080 kqread syz-executor 80878 51697 25342 0 2 0xc000000 syz-executor *80878 314806 25342 0 7 0xc000000 syz-executor 10755 497513 39403 0 2 0x8000482 syz-executor 78703 302979 1 0 3 0x18100083 ttyin getty 18426 110384 39403 0 2 0x8000482 syz-executor 3860 2004 39403 0 2 0x8000002 syz-executor 25342 479800 39403 0 3 0x8000082 nanoslp syz-executor 71183 471386 39403 0 2 0x8000482 syz-executor 36655 511505 39403 0 2 0x8000002 syz-executor 69723 285150 39403 0 3 0x8000082 nanoslp syz-executor 58686 504153 39403 0 2 0x8000482 syz-executor 62863 113504 0 0 3 0x14200 acct acct 36362 271224 0 0 3 0x14200 bored sosplice 39403 275784 15393 0 3 0x8000082 kqread syz-executor 15393 38599 39757 0 3 0x810008a sigsusp ksh 39757 312600 34647 0 3 0x18000098 kqread sshd-session 34647 162292 49353 0 3 0x18000092 kqread sshd-session 49353 352845 1 0 3 0x18000088 kqread sshd 17813 84811 15202 73 3 0x19100090 kqread syslogd 15202 340456 1 0 3 0x18100082 sbwait syslogd 58355 281039 1 0 3 0x18100080 kqread resolvd 60618 477040 17909 77 3 0x18100092 kqread dhcpleased 45876 178622 17909 77 3 0x18100092 kqread dhcpleased 17909 478127 1 0 3 0x18000080 kqread dhcpleased 43180 12199 0 0 3 0x14200 bored smr 21125 54196 0 0 2 0x14200 zerothread 58993 299251 0 0 3 0x14200 aiodoned aiodoned 6025 268753 0 0 3 0x14200 syncer update 11644 327936 0 0 3 0x14200 cleaner cleaner 96414 353018 0 0 3 0x14200 reaper reaper 18353 138993 0 0 3 0x14200 pgdaemon pagedaemon 89213 356673 0 0 3 0x14200 bored viomb 64370 476731 0 0 3 0x40014200 acpi0 acpi0 45206 451795 0 0 3 0x14200 bored softnet3 83820 299322 0 0 3 0x14200 bored softnet2 61243 192990 0 0 3 0x14200 bored softnet1 21929 26971 0 0 3 0x14200 bored softnet0 4108 80548 0 0 3 0x14200 bored systqmp 96036 209984 0 0 3 0x14200 bored systq 16850 271556 0 0 2 0x40014200 softclock 31704 211261 0 0 3 0x40014200 idle0 1 328587 0 0 3 0x8080082 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 10214 10114K 14469K 166960K 14108 0 pcb 17 15K 16K 166960K 361 0 rtable 205 7K 8K 166960K 2906 0 pf 36 14K 17K 166960K 277 0 ifaddr 42 8K 8K 166960K 394 0 ifgroup 58 2K 2K 166960K 454 0 sysctl 2 0K 2K 166960K 9 0 counters 32 17K 18K 166960K 137 0 ioctlops 0 0K 4K 166960K 530 0 iov 0 0K 28K 166960K 201 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1474 93K 93K 166960K 4460 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 72K 166960K 65 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 111 0 dirhash 15 2K 3K 166960K 39 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 97K 166960K 2855 0 sigio 0 0K 0K 166960K 136 0 proc 62 75K 124K 166960K 2779 0 subproc 104 6K 7K 166960K 1144 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 258 0 in_multi 88 6K 7K 166960K 971 0 ether_multi 1 0K 0K 166960K 7 0 mrt 0 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 1729 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 221 82K 96K 166960K 24348 0 UVM aobj 143 4K 4K 166960K 161 0 pinsyscall 37 74K 104K 166960K 5878 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 1K 166960K 129 0 NDP 13 0K 2K 166960K 290 0 temp 75 6812K 6940K 166960K 102430 0 kqueue 13 20K 32K 166960K 267 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 461 0 458 2 1 1 2 0 8 0 rtentry 112 1007 0 917 4 1 3 4 0 8 0 unpcb 144 2196 0 2179 10 6 4 4 0 8 3 syncache 336 9 0 9 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 941 0 932 18 10 8 8 0 8 6 arp 88 181 0 164 1 0 1 1 0 8 0 ipq 40 5 0 5 1 1 0 1 0 8 0 ipqe 40 52 0 52 1 1 0 1 0 8 0 inpcb 336 3083 0 3071 21 14 7 10 0 8 5 nd6 104 264 0 243 1 0 1 1 0 8 0 pkpcb 40 23 0 23 3 2 1 1 0 8 1 kcovpl 48 88 0 80 1 0 1 1 0 8 0 ppxss 1072 18 0 18 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 3 0 3 1 1 0 1 0 8 0 pftag 88 3 0 1 1 0 1 1 0 8 0 pfqueue 264 3 0 2 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 344 3 0 1 1 0 1 1 0 8 0 pfrule 1344 5 0 5 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4014 0 3611 35 7 28 30 0 8 0 art_table 32 4015 0 3611 4 0 4 4 0 8 0 art_node 16 1001 0 922 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 4 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 107 0 97 1 0 1 1 0 8 0 shmpl 112 158 0 18 4 0 4 4 0 8 0 dirhash 1024 35 0 16 3 0 3 3 0 8 0 dino2pl 256 5128 0 3475 104 0 104 104 0 8 0 ffsino 240 5128 0 3475 98 0 98 98 0 8 0 nchpl 144 7905 0 6120 67 0 67 67 0 8 0 uvmvnodes 80 7308 0 0 150 0 150 150 0 8 0 vnodes 216 7308 0 0 406 0 406 406 0 8 0 namei 1024 36935 0 36934 4 2 2 2 0 8 1 vcpupl 3904 10 0 3 1 0 1 1 0 8 0 vmpool 664 15 0 8 1 0 1 1 0 8 0 kstatmem 264 236 0 210 3 1 2 3 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 55984 0 55984 11 10 1 8 1 8 1 plimitpl 152 718 0 701 1 0 1 1 0 8 0 sigapl 424 2996 0 2950 9 1 8 8 0 8 2 futexpl 64 32940 0 32935 1 0 1 1 0 8 0 knotepl 120 69433 0 69386 32 22 10 17 0 8 8 kqueuepl 184 854 0 844 11 8 3 6 0 8 2 pipepl 288 800 0 773 10 7 3 7 0 8 0 fdescpl 432 2958 0 2930 5 1 4 5 0 8 0 filepl 120 21609 0 21363 25 12 13 17 0 8 3 lockfpl 104 933 0 930 2 0 2 2 0 8 1 lockfspl 48 294 0 291 1 0 1 1 0 8 0 sessionpl 144 100 0 92 1 0 1 1 0 8 0 pgrppl 48 254 0 238 1 0 1 1 0 8 0 ucredpl 104 3818 0 3806 1 0 1 1 0 8 0 zombiepl 144 3559 0 3559 1 0 1 1 0 8 1 processpl 1096 2996 0 2950 5 0 5 5 0 8 1 procpl 648 5870 0 5814 9 1 8 8 0 8 2 sosppl 168 5 0 5 2 1 1 1 0 8 1 sockpl 504 5784 0 5752 42 30 12 17 0 8 6 mcl64k 65536 17 0 17 3 2 1 1 0 8 1 mcl16k 16384 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 4 0 4 2 1 1 1 0 8 1 mcl9k 9216 3 0 3 3 2 1 1 0 8 1 mcl8k 8192 121 0 121 3 2 1 1 0 8 1 mcl4k 4096 15 0 15 3 2 1 1 0 8 1 mcl2k 2048 11456 0 11355 28 14 14 25 0 8 0 mtagpl 96 150 0 147 2 1 1 2 0 8 0 mbufpl 256 36299 0 36118 67 48 19 62 0 8 6 bufpl 280 12498 0 5190 523 0 523 523 0 8 0 anonpl 24 392535 0 389325 152 72 80 80 0 187 44 amapchunkpl 152 78632 0 78191 77 35 42 42 0 158 20 amappl16 200 6352 0 6325 77 66 11 27 0 8 8 amappl15 192 45 0 45 1 1 0 1 0 8 0 amappl14 184 263 0 253 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 4795 0 4767 3 1 2 3 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 1 0 1 0 8 0 amappl9 144 148 0 147 1 0 1 1 0 8 0 amappl8 136 18 0 17 1 0 1 1 0 8 0 amappl7 128 248 0 238 1 0 1 1 0 8 0 amappl6 120 931 0 930 1 0 1 1 0 8 0 amappl5 112 442 0 433 1 0 1 1 0 8 0 amappl4 104 518 0 503 1 0 1 1 0 8 0 amappl3 96 15359 0 15256 4 0 4 4 0 8 0 amappl2 88 1673 0 1616 2 0 2 2 0 8 0 amappl1 80 20267 0 19728 15 3 12 15 0 8 0 amappl 88 23295 0 23135 5 0 5 5 0 92 0 dma32768 32768 2 0 2 1 0 1 1 0 8 1 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma2048 2048 2 0 2 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 0 1 1 0 8 1 dma256 256 7 0 7 2 1 1 1 0 8 1 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 21 0 20 1 0 1 1 0 8 0 aobjpl 72 160 0 18 3 0 3 3 0 8 0 uaddrrnd 24 2973 0 2938 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2973 0 2938 1 0 1 1 0 8 0 vmmpekpl 168 25903 0 25842 3 0 3 3 0 8 0 vmmpepl 168 183566 0 181848 134 34 100 101 0 357 19 vmsppl 344 2972 0 2938 4 0 4 4 0 8 0 rwobjpl 24 57885 0 49579 52 0 52 52 0 8 1 pdppl 4096 5953 0 5883 236 162 74 83 0 8 4 pvpl 32 1378293 0 1369101 634 282 352 364 0 265 261 pmappl 216 2972 0 2938 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 689 0 305 12 0 12 12 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:437 panic(ffffffff830a7918) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830622c5,ffffffff83030af6,83,ffffffff830a0a43) at __assert+0x29 rtmap_grow(20,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1f) at rtable_add+0x279 if_createrdomain(1f,ffff8000011a7800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8062336020,8020699f,ffff80002a533c10,ffff80002a47b6f8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47b6f8,ffff80002a533df0,ffff80002a533d40) at sys_ioctl+0x678 syscall(ffff80002a533df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10836efe010, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a7918) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830622c5,ffffffff83030af6,83,ffffffff830a0a43) at __assert+0x29 rtmap_grow(20,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1f) at rtable_add+0x279 if_createrdomain(1f,ffff8000011a7800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8062336020,8020699f,ffff80002a533c10,ffff80002a47b6f8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47b6f8,ffff80002a533df0,ffff80002a533d40) at sys_ioctl+0x678 syscall(ffff80002a533df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x10836efe010, count: -10