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 *461536 95324 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b205f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306729f,ffffffff830341b8,83,ffffffff830a4aec) at __assert+0x29 rtmap_grow(10,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(f) at rtable_add+0x279 if_createrdomain(f,ffff800001294800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d121be8,8020699f,ffff800037647660,ffff80002a4d1bf8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4d1bf8,ffff800037647840,ffff800037647790) at sys_ioctl+0x678 syscall(ffff800037647840) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f2afe32360, 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(ffffffff830b205f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306729f,ffffffff830341b8,83,ffffffff830a4aec) at __assert+0x29 rtmap_grow(10,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(f) at rtable_add+0x279 if_createrdomain(f,ffff800001294800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d121be8,8020699f,ffff800037647660,ffff80002a4d1bf8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4d1bf8,ffff800037647840,ffff800037647790) at sys_ioctl+0x678 syscall(ffff800037647840) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f2afe32360, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037647390 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4d1bf8 r8 0 r9 0x8080808080808080 r10 0x56dceefd89f7099 r11 0xc383be3d47b87716 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81240d95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037647380 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=461536 pid=95324 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d0530,0xffffffff835dd8c0 process=0xffff8000ffff6ae8 user=0xffff800037642000, vmspace=0xfffffd806c1aa978 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95324 303244 57737 0 2 0 syz-executor 95324 293192 57737 0 2 0x4000000 syz-executor *95324 461536 57737 0 7 0x4000000 syz-executor 88373 179110 65295 0 2 0x10 syz-executor 88373 67690 65295 0 3 0x4000090 fsleep syz-executor 4702 319826 70708 0 2 0 syz-executor 4702 167933 70708 0 3 0x4000080 fsleep syz-executor 4702 441618 70708 0 3 0x4000080 fsleep syz-executor 76179 198679 16286 0 2 0x2 syz-executor 70902 438122 16286 0 2 0x2 syz-executor 59968 237367 16286 0 2 0x2 syz-executor 88855 418686 16286 0 2 0x482 syz-executor 60380 397051 16286 0 3 0x2 lockflk syz-executor 65295 119470 16286 0 2 0x482 syz-executor 57737 344792 16286 0 2 0x482 syz-executor 70708 8126 16286 0 2 0x482 syz-executor 34201 115761 1 0 3 0x100083 ttyopn getty 32274 489070 0 0 3 0x14200 acct acct 52767 335228 0 0 3 0x14200 bored sosplice 16286 143144 67742 0 2 0x2 syz-executor 67742 112013 26511 0 3 0x10008a sigsusp ksh 26511 101367 15209 0 3 0x98 kqread sshd-session 15209 192997 79611 0 3 0x92 kqread sshd-session 79611 377710 1 0 3 0x88 kqread sshd 61074 100585 20143 73 2 0x1100010 syslogd 20143 290869 1 0 3 0x100082 sbwait syslogd 53731 456733 1 0 3 0x100080 kqread resolvd 67535 135358 6058 77 3 0x100092 kqread dhcpleased 14908 88035 6058 77 3 0x100092 kqread dhcpleased 6058 298623 1 0 3 0x80 kqread dhcpleased 81603 364219 0 0 3 0x14200 bored smr 9946 314773 0 0 2 0x14200 zerothread 14791 402595 0 0 3 0x14200 aiodoned aiodoned 1624 443319 0 0 3 0x14200 syncer update 78269 474020 0 0 3 0x14200 cleaner cleaner 47297 479016 0 0 3 0x14200 reaper reaper 32863 399370 0 0 3 0x14200 pgdaemon pagedaemon 48654 441901 0 0 3 0x14200 bored viomb 94918 200320 0 0 3 0x40014200 acpi0 acpi0 85031 68875 0 0 3 0x14200 bored softnet3 56538 446682 0 0 3 0x14200 bored softnet2 19541 31462 0 0 3 0x14200 bored softnet1 9121 333204 0 0 3 0x14200 bored softnet0 80208 390126 0 0 3 0x14200 bored systqmp 1013 333635 0 0 3 0x14200 bored systq 16474 148815 0 0 3 0x40014200 tmoslp softclock 88457 440167 0 0 3 0x40014200 idle0 1 498939 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 10205 11053K 11312K 166960K 12031 0 pcb 17 12K 12K 166960K 106 0 rtable 177 6K 7K 166960K 1654 0 pf 35 14K 269K 166960K 136 0 ifaddr 37 6K 8K 166960K 217 0 ifgroup 54 2K 2K 166960K 232 0 sysctl 3 0K 0K 166960K 3 0 counters 31 17K 17K 166960K 75 0 ioctlops 0 0K 4K 166960K 122 0 iov 0 0K 24K 166960K 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1425 90K 90K 166960K 2360 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 72K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 61 0 dirhash 18 3K 3K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 97K 166960K 1229 0 sigio 0 0K 0K 166960K 3 0 proc 61 59K 124K 166960K 1675 0 subproc 104 6K 8K 166960K 650 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 134 0 in_multi 69 5K 7K 166960K 549 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 944 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 196 71K 93K 166960K 10410 0 UVM aobj 21 4K 4K 166960K 23 0 pinsyscall 37 74K 96K 166960K 3306 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 36 0 NDP 12 0K 1K 166960K 150 0 temp 49 6809K 6878K 166960K 18450 0 kqueue 13 20K 32K 166960K 103 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 214 0 211 3 0 3 3 0 8 2 rtentry 112 562 0 486 4 1 3 4 0 8 0 unpcb 144 411 0 392 4 0 4 4 0 8 3 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 132 0 126 2 0 2 2 0 8 1 arp 88 101 0 85 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 45 0 45 1 0 1 1 0 8 1 inpcb 336 741 0 731 6 2 4 4 0 8 3 nd6 104 142 0 126 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 50 0 42 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfstitem 24 6 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 3 1 0 1 1 0 8 0 pfstate 344 4 0 1 1 0 1 1 0 8 0 pfrule 1344 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 2272 0 1934 34 5 29 29 0 8 6 art_table 32 2273 0 1934 4 0 4 4 0 8 1 art_node 16 560 0 491 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semapl 112 59 0 49 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 4 3 0 3 3 0 8 0 dino2pl 256 2526 0 954 99 0 99 99 0 8 0 ffsino 240 2526 0 954 93 0 93 93 0 8 0 nchpl 144 3385 0 1653 65 0 65 65 0 8 0 uvmvnodes 80 3427 0 0 70 0 70 70 0 8 0 vnodes 216 3427 0 0 191 0 191 191 0 8 0 namei 1024 15125 0 15125 2 1 1 2 0 8 1 kstatmem 264 112 0 88 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 29313 0 29313 8 7 1 8 1 8 1 plimitpl 152 214 0 198 1 0 1 1 0 8 0 sigapl 424 1426 0 1380 7 1 6 7 0 8 0 futexpl 64 8086 0 8083 1 0 1 1 0 8 0 knotepl 120 22401 0 22354 32 22 10 17 0 8 8 kqueuepl 184 141 0 131 1 0 1 1 0 8 0 pipepl 288 263 0 236 3 0 3 3 0 8 0 fdescpl 432 1408 0 1380 5 1 4 5 0 8 0 filepl 120 6192 0 5947 16 2 14 14 0 8 5 lockfpl 104 182 0 177 1 0 1 1 0 8 0 lockfspl 48 78 0 75 1 0 1 1 0 8 0 sessionpl 144 65 0 57 1 0 1 1 0 8 0 pgrppl 48 122 0 106 1 0 1 1 0 8 0 ucredpl 104 983 0 971 1 0 1 1 0 8 0 zombiepl 144 1629 0 1628 2 1 1 1 0 8 0 processpl 1096 1426 0 1380 4 0 4 4 0 8 0 procpl 648 2266 0 2215 7 1 6 6 0 8 0 sosppl 168 6 0 6 2 1 1 1 0 8 1 sockpl 504 1382 0 1350 18 6 12 13 0 8 8 mcl64k 65536 5 0 5 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 3400 0 3348 14 6 8 13 0 8 1 mcl2k 2048 1397 0 1396 4 0 4 4 0 8 3 mtagpl 96 54 0 51 1 0 1 1 0 8 0 mbufpl 256 19658 0 19517 418 400 18 414 0 8 8 bufpl 280 7477 0 1230 447 0 447 447 0 8 0 anonpl 24 266503 0 263502 152 101 51 125 0 187 18 amapchunkpl 152 33795 0 33402 75 42 33 60 0 158 16 amappl16 200 5162 0 5153 24 15 9 14 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 195 0 184 1 0 1 1 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 2667 0 2641 2 0 2 2 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 133 0 133 1 1 0 1 0 8 0 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 172 0 162 1 0 1 1 0 8 0 amappl6 120 566 0 565 1 0 1 1 0 8 0 amappl5 112 301 0 292 1 0 1 1 0 8 0 amappl4 104 399 0 384 1 0 1 1 0 8 0 amappl3 96 6289 0 6200 5 1 4 4 0 8 0 amappl2 88 1230 0 1168 2 0 2 2 0 8 0 amappl1 80 13145 0 12634 13 1 12 13 0 8 0 amappl 88 9703 0 9561 6 1 5 5 0 92 1 dma16384 16384 2 0 2 2 1 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 22 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1408 0 1380 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1408 0 1380 1 0 1 1 0 8 0 vmmpekpl 168 12181 0 12130 3 0 3 3 0 8 0 vmmpepl 168 92777 0 91205 94 6 88 88 0 357 12 vmsppl 344 1407 0 1380 4 1 3 4 0 8 0 rwobjpl 24 32664 0 28411 28 0 28 28 0 8 0 pdppl 4096 2822 0 2760 176 104 72 82 0 8 10 pvpl 32 758740 0 750117 549 328 221 410 0 265 120 pmappl 216 1407 0 1380 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 884 0 529 21 0 21 21 0 8 6 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b205f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306729f,ffffffff830341b8,83,ffffffff830a4aec) at __assert+0x29 rtmap_grow(10,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(f) at rtable_add+0x279 if_createrdomain(f,ffff800001294800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d121be8,8020699f,ffff800037647660,ffff80002a4d1bf8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4d1bf8,ffff800037647840,ffff800037647790) at sys_ioctl+0x678 syscall(ffff800037647840) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f2afe32360, 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(ffffffff830b205f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306729f,ffffffff830341b8,83,ffffffff830a4aec) at __assert+0x29 rtmap_grow(10,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(f) at rtable_add+0x279 if_createrdomain(f,ffff800001294800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d121be8,8020699f,ffff800037647660,ffff80002a4d1bf8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4d1bf8,ffff800037647840,ffff800037647790) at sys_ioctl+0x678 syscall(ffff800037647840) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f2afe32360, count: -10