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 *269157 68033 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b085d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066e73,ffffffff83037f3a,83,ffffffff830a8bce) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1945 ifioctl(fffffd80694e3038,8020699f,ffff80002a5874c0,ffff80002a4b0010) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4b0010,ffff80002a5876a0,ffff80002a5875f0) at sys_ioctl+0x678 syscall(ffff80002a5876a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x61a2ffb9ef0, 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(ffffffff830b085d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066e73,ffffffff83037f3a,83,ffffffff830a8bce) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1945 ifioctl(fffffd80694e3038,8020699f,ffff80002a5874c0,ffff80002a4b0010) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4b0010,ffff80002a5876a0,ffff80002a5875f0) at sys_ioctl+0x678 syscall(ffff80002a5876a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x61a2ffb9ef0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5871f0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4b0010 r8 0 r9 0x8080808080808080 r10 0x18418787529d9606 r11 0x83c174f5399dbd6f r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82514195 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5871e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=269157 pid=68033 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d2f50,0xffff80002bfdd1f0 process=0xffff80002eff2268 user=0xffff80002a582000, vmspace=0xfffffd8075b10970 estcpu=36, cpticks=20, pctcpu=0.0, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55461 463478 89496 0 3 0 futex syz-executor 55461 197974 89496 0 3 0x4000000 futex syz-executor 23399 518896 99514 0 2 0 syz-executor 23399 433175 99514 0 2 0x4000000 syz-executor 32332 95198 61280 0 2 0x10 syz-executor 32332 84286 61280 0 2 0x4000010 syz-executor 84900 25155 28138 0 2 0 syz-executor 84900 326603 28138 0 2 0x4000000 syz-executor 84900 300865 28138 0 3 0x4000000 futex syz-executor 68033 433563 47134 0 2 0 syz-executor 68033 474830 47134 0 3 0x4000080 ttyin syz-executor 68033 458988 47134 0 2 0x4000000 syz-executor *68033 269157 47134 0 7 0x4000000 syz-executor 30274 120304 9145 -1 4 0x82014 syz-executor 30274 75442 9145 -1 2 0x4002014 syz-executor 47134 284045 9486 0 2 0x482 syz-executor 86450 8897 1 0 3 0x100083 ttyin getty 61280 522104 9486 0 2 0x482 syz-executor 83912 344428 9486 0 3 0x82 wait syz-executor 99514 325606 9486 0 2 0x482 syz-executor 9145 64204 9486 0 2 0x482 syz-executor 29924 155360 9486 0 2 0x2 syz-executor 28138 19786 9486 0 2 0x482 syz-executor 89496 429600 9486 0 2 0x482 syz-executor 94217 77395 0 0 3 0x14200 bored sosplice 67961 5234 0 0 3 0x14280 nfsidl nfsio 8323 162546 0 0 3 0x14280 nfsidl nfsio 36846 189502 0 0 3 0x14280 nfsidl nfsio 83531 47011 0 0 3 0x14280 nfsidl nfsio 94529 350933 0 0 3 0x14280 nfsidl nfsio 74795 464087 0 0 3 0x14280 nfsidl nfsio 2436 237482 0 0 3 0x14280 nfsidl nfsio 73254 221924 0 0 3 0x14280 nfsidl nfsio 86702 198070 0 0 3 0x14280 nfsidl nfsio 56957 92205 0 0 3 0x14280 nfsidl nfsio 74507 266265 0 0 3 0x14280 nfsidl nfsio 98289 432082 0 0 3 0x14280 nfsidl nfsio 3109 174740 0 0 3 0x14280 nfsidl nfsio 96282 459851 0 0 3 0x14280 nfsidl nfsio 2484 171522 0 0 3 0x14280 nfsidl nfsio 15238 107210 0 0 3 0x14280 nfsidl nfsio 1570 225123 0 0 3 0x14280 nfsidl nfsio 74394 495837 0 0 3 0x14280 nfsidl nfsio 99202 151694 0 0 3 0x14280 nfsidl nfsio 82820 5672 0 0 3 0x14280 nfsidl nfsio 9486 366292 26841 0 3 0x82 kqread syz-executor 26841 266496 36791 0 3 0x10008a sigsusp ksh 36791 76050 58136 0 3 0x98 kqread sshd-session 58136 292483 1 0 3 0x92 kqread sshd-session 81165 37481 55725 73 3 0x1100090 kqread syslogd 55725 353230 1 0 3 0x100082 sbwait syslogd 87055 512027 1 0 3 0x100080 kqread resolvd 68452 515218 8205 77 3 0x100092 kqread dhcpleased 20456 247053 8205 77 3 0x100092 kqread dhcpleased 8205 208269 1 0 3 0x80 kqread dhcpleased 86018 100960 0 0 3 0x14200 bored smr 51033 1776 0 0 2 0x14200 zerothread 86234 240195 0 0 3 0x14200 aiodoned aiodoned 55414 363898 0 0 3 0x14200 syncer update 8334 332078 0 0 3 0x14200 cleaner cleaner 17702 203642 0 0 3 0x14200 reaper reaper 53758 291144 0 0 3 0x14200 pgdaemon pagedaemon 78224 98118 0 0 3 0x14200 bored viomb 74929 454972 0 0 3 0x40014200 acpi0 acpi0 25179 191795 0 0 3 0x14200 bored softnet3 58401 179503 0 0 3 0x14200 bored softnet2 88166 58485 0 0 3 0x14200 bored softnet1 24217 205386 0 0 2 0x14200 softnet0 68408 35190 0 0 3 0x14200 bored systqmp 66696 293678 0 0 3 0x14200 bored systq 39833 296296 0 0 2 0x40014200 softclock 30456 434319 0 0 3 0x40014200 idle0 1 400527 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 10197 11318K 11510K 166960K 14309 0 pcb 18 18K 19K 166960K 432 0 rtable 223 7K 7K 166960K 2939 0 pf 39 14K 22K 166960K 279 0 ifaddr 42 8K 8K 166960K 402 0 ifgroup 62 2K 2K 166960K 480 0 sysctl 3 0K 1K 166960K 6 0 counters 32 17K 17K 166960K 138 0 ioctlops 0 0K 4K 166960K 484 0 iov 1 8K 16K 166960K 234 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1500 94K 95K 166960K 4319 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 51 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 348 0 dirhash 18 3K 3K 166960K 45 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 3540 0 sigio 0 0K 0K 166960K 130 0 proc 61 59K 124K 166960K 2868 0 subproc 104 6K 7K 166960K 1118 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 556 0 in_multi 94 6K 7K 166960K 1065 0 ether_multi 1 0K 0K 166960K 25 0 mrt 1 0K 0K 166960K 14 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 1 0K 1K 166960K 1627 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 220 72K 100K 166960K 29193 0 UVM aobj 117 6K 6K 166960K 124 0 pinsyscall 36 72K 104K 166960K 6630 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 199 0 NDP 13 0K 2K 166960K 297 0 temp 79 6816K 7018K 166960K 99843 0 kqueue 13 20K 31K 166960K 485 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 379 0 376 1 0 1 1 0 8 0 rtentry 112 1043 0 944 4 1 3 4 0 8 0 unpcb 144 2185 0 2166 9 8 1 6 0 8 0 syncache 336 12 0 12 2 2 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 808 1156 0 1150 13 12 1 7 0 8 0 arp 88 186 0 170 1 0 1 1 0 8 0 ipq 40 13 0 11 1 0 1 1 0 8 0 ipqe 40 118 0 116 1 0 1 1 0 8 0 inpcb 336 3867 0 3854 26 24 2 13 0 8 0 nd6 104 275 0 252 1 0 1 1 0 8 0 pkpcb 40 14 0 14 2 2 0 1 0 8 0 kcovpl 48 86 0 78 1 0 1 1 0 8 0 ppxss 1072 13 0 13 2 2 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 1 1 0 1 1 0 8 0 pfstate 344 2 0 1 1 0 1 1 0 8 0 pfrule 1344 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 4152 0 3716 36 7 29 30 0 8 0 art_table 32 4155 0 3716 4 0 4 4 0 8 0 art_node 16 1036 0 948 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 29 1 0 1 1 0 8 0 semapl 112 344 0 334 1 0 1 1 0 8 0 shmpl 112 121 0 7 4 0 4 4 0 8 0 dirhash 1024 39 0 18 3 0 3 3 0 8 0 dino2pl 256 5802 0 4152 104 0 104 104 0 8 0 ffsino 240 5802 0 4152 98 0 98 98 0 8 0 nchpl 144 9229 0 7436 67 0 67 67 0 8 0 uvmvnodes 80 7449 0 0 153 0 153 153 0 8 0 vnodes 216 7449 0 0 414 0 414 414 0 8 0 namei 1024 39115 0 39114 3 2 1 2 0 8 0 kstatmem 264 238 0 212 2 0 2 2 0 8 0 scsiplug 72 8 0 8 3 2 1 1 0 8 1 scxspl 216 61831 0 61831 10 9 1 8 1 8 1 plimitpl 152 900 0 883 1 0 1 1 0 8 0 sigapl 424 3697 0 3632 8 0 8 8 0 8 0 futexpl 64 36023 0 36022 1 0 1 1 0 8 0 knotepl 120 89785 0 89738 35 33 2 16 0 8 0 kqueuepl 184 949 0 937 11 9 2 6 0 8 0 pipepl 288 800 0 773 7 4 3 7 0 8 0 fdescpl 432 3657 0 3629 5 1 4 5 0 8 0 filepl 120 22171 0 21915 22 12 10 17 0 8 0 lockfpl 104 776 0 774 2 1 1 2 0 8 0 lockfspl 48 309 0 307 1 0 1 1 0 8 0 sessionpl 144 106 0 99 1 0 1 1 0 8 0 pgrppl 48 222 0 207 1 0 1 1 0 8 0 ucredpl 104 3447 0 3433 1 0 1 1 0 8 0 zombiepl 144 3633 0 3632 2 1 1 1 0 8 0 processpl 1096 3697 0 3632 6 0 6 6 0 8 0 procpl 648 6934 0 6860 9 2 7 8 0 8 0 sosppl 168 12 0 12 2 2 0 1 0 8 0 sockpl 504 6559 0 6524 77 72 5 26 0 8 0 mcl64k 65536 90 0 89 2 1 1 1 0 8 0 mcl16k 16384 36 0 36 2 2 0 1 0 8 0 mcl12k 12288 9 0 9 2 2 0 1 0 8 0 mcl9k 9216 5 0 5 2 2 0 1 0 8 0 mcl8k 8192 144 0 144 2 2 0 1 0 8 0 mcl4k 4096 6321 0 6268 16 9 7 15 0 8 0 mcl2k2 2112 14 0 14 2 2 0 1 0 8 0 mcl2k 2048 4136 0 4132 4 3 1 3 0 8 0 mtagpl 96 77 0 56 2 1 1 1 0 8 0 mbufpl 256 39629 0 39443 57 41 16 48 0 8 0 bufpl 280 13947 0 6498 533 0 533 533 0 8 0 anonpl 24 502802 0 499481 105 72 33 81 0 187 0 amapchunkpl 152 108989 0 108493 58 37 21 41 0 158 0 amappl16 200 8603 0 8577 53 50 3 15 0 8 0 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 282 0 273 1 0 1 1 0 8 0 amappl13 176 15 0 15 2 2 0 1 0 8 0 amappl12 168 5524 0 5496 3 1 2 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 142 0 142 1 1 0 1 0 8 0 amappl8 136 29 0 27 1 0 1 1 0 8 0 amappl7 128 324 0 314 1 0 1 1 0 8 0 amappl6 120 956 0 955 1 0 1 1 0 8 0 amappl5 112 444 0 435 1 0 1 1 0 8 0 amappl4 104 541 0 529 1 0 1 1 0 8 0 amappl3 96 19225 0 19118 5 2 3 4 0 8 0 amappl2 88 1864 0 1810 2 0 2 2 0 8 0 amappl1 80 23234 0 22791 15 5 10 14 0 8 0 amappl 88 28011 0 27840 6 1 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 8 0 8 2 2 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 9 0 9 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 123 0 7 3 0 3 3 0 8 0 uaddrrnd 24 3657 0 3629 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3657 0 3629 1 0 1 1 0 8 0 vmmpekpl 168 26272 0 26228 3 0 3 3 0 8 0 vmmpepl 168 222705 0 221084 98 25 73 88 0 357 0 vmsppl 344 3656 0 3629 4 1 3 4 0 8 0 rwobjpl 24 65804 0 57478 52 1 51 52 0 8 0 pdppl 4096 7320 0 7258 250 186 64 82 0 8 2 pvpl 32 1992911 0 1983036 498 398 100 357 0 265 0 pmappl 216 3656 0 3629 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 713 0 374 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(ffffffff830b085d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066e73,ffffffff83037f3a,83,ffffffff830a8bce) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1945 ifioctl(fffffd80694e3038,8020699f,ffff80002a5874c0,ffff80002a4b0010) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4b0010,ffff80002a5876a0,ffff80002a5875f0) at sys_ioctl+0x678 syscall(ffff80002a5876a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x61a2ffb9ef0, 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(ffffffff830b085d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83066e73,ffffffff83037f3a,83,ffffffff830a8bce) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1945 ifioctl(fffffd80694e3038,8020699f,ffff80002a5874c0,ffff80002a4b0010) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4b0010,ffff80002a5876a0,ffff80002a5875f0) at sys_ioctl+0x678 syscall(ffff80002a5876a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x61a2ffb9ef0, count: -10