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 *121399 64668 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83036f0c,83,ffffffff830a7417) 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(fffffd806d429600,8020699f,ffff80002a5395c0,ffff80002a4d1460) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4d1460,ffff80002a5397a0,ffff80002a5396f0) at sys_ioctl+0x678 syscall(ffff80002a5397a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf3f23fe9f60, 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83036f0c,83,ffffffff830a7417) 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(fffffd806d429600,8020699f,ffff80002a5395c0,ffff80002a4d1460) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4d1460,ffff80002a5397a0,ffff80002a5396f0) at sys_ioctl+0x678 syscall(ffff80002a5397a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf3f23fe9f60, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5392f0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4d1460 r8 0 r9 0x8080808080808080 r10 0x1d44b08c40553ed2 r11 0x5d54b51d5e6695b r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81cf7a65 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5392e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=121399 pid=64668 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d11d8,0xffffffff8350cde8 process=0xffff8000327f6258 user=0xffff80002a534000, vmspace=0xfffffd806c192010 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 64668 82053 63576 0 2 0 syz-executor 64668 58959 63576 0 2 0x4000000 syz-executor *64668 121399 63576 0 7 0x4000000 syz-executor 2454 6837 37489 60928 2 0x10 syz-executor 2454 243118 37489 60928 3 0x4000090 fsleep syz-executor 53117 221143 878 0 2 0 syz-executor 9152 402863 54057 0 2 0x1006 sh 54089 426125 67231 0 2 0 syz-executor 54089 475722 67231 0 3 0x4000080 fsleep syz-executor 30401 183327 39570 0 2 0 syz-executor 30401 365195 39570 0 2 0x4000000 syz-executor 40022 475044 65390 0 2 0x2 ifconfig 65390 192496 76609 0 3 0x10008a sigsusp sh 78223 389127 50642 60928 3 0x3010 suspend syz-executor 78223 203728 50642 60928 2 0x4081010 syz-executor 37489 200988 32161 0 2 0x482 syz-executor 76609 420657 32161 0 3 0x82 wait syz-executor 54057 356562 32161 0 3 0x82 wait syz-executor 50642 170803 32161 0 2 0x482 syz-executor 39570 313677 32161 0 2 0x482 syz-executor 67231 337476 32161 0 3 0x82 nanoslp syz-executor 878 65552 32161 0 3 0x82 nanoslp syz-executor 32741 188277 0 0 3 0x14200 acct acct 63576 121903 32161 0 3 0x82 nanoslp syz-executor 39471 21537 0 0 3 0x14200 bored sosplice 32161 85130 84344 0 3 0x82 kqread syz-executor 84344 468762 22774 0 3 0x10008a sigsusp ksh 22774 261383 86309 0 3 0x98 kqread sshd-session 86309 165282 85235 0 3 0x92 kqread sshd-session 62098 214201 1 0 3 0x100083 ttyin getty 85235 254842 1 0 3 0x88 kqread sshd 42675 153813 29164 73 2 0x1100010 syslogd 29164 467700 1 0 3 0x100082 sbwait syslogd 45243 79019 1 0 3 0x100080 kqread resolvd 1633 389241 62561 77 3 0x100092 kqread dhcpleased 6382 98247 62561 77 3 0x100092 kqread dhcpleased 62561 288861 1 0 3 0x80 kqread dhcpleased 36335 175660 0 0 3 0x14200 bored smr 38822 432158 0 0 2 0x14200 zerothread 86719 452354 0 0 3 0x14200 aiodoned aiodoned 77118 321534 0 0 3 0x14200 syncer update 95412 309481 0 0 3 0x14200 cleaner cleaner 77910 474465 0 0 3 0x14200 reaper reaper 69515 195037 0 0 3 0x14200 pgdaemon pagedaemon 85258 70104 0 0 3 0x14200 bored viomb 28607 253177 0 0 3 0x40014200 acpi0 acpi0 39144 434377 0 0 3 0x14200 bored softnet3 49554 175541 0 0 3 0x14200 bored softnet2 11028 120867 0 0 3 0x14200 bored softnet1 2170 211994 0 0 3 0x14200 bored softnet0 87276 77344 0 0 3 0x14200 bored systqmp 39930 513750 0 0 3 0x14200 bored systq 19771 231858 0 0 3 0x40014200 tmoslp softclock 20079 397696 0 0 3 0x40014200 idle0 1 480552 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 10182 11181K 11245K 166960K 11370 0 pcb 17 12K 12K 166960K 39 0 rtable 221 7K 7K 166960K 770 0 pf 32 13K 13K 166960K 60 0 ifaddr 40 6K 7K 166960K 100 0 ifgroup 54 2K 2K 166960K 110 0 sysctl 2 0K 0K 166960K 2 0 counters 31 17K 17K 166960K 45 0 ioctlops 0 0K 4K 166960K 47 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1369 86K 86K 166960K 1607 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 19 69K 97K 166960K 410 0 sigio 0 0K 0K 166960K 1 0 proc 65 67K 124K 166960K 855 0 subproc 104 6K 6K 166960K 286 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 12 0 in_multi 88 6K 7K 166960K 247 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 1 0K 1K 166960K 523 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 211 72K 108K 166960K 4479 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 40 80K 96K 166960K 1766 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 12 0K 2K 166960K 68 0 temp 36 6802K 6870K 166960K 12758 0 kqueue 13 20K 24K 166960K 29 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 70 0 65 1 0 1 1 0 8 0 rtentry 112 254 0 155 4 0 4 4 0 8 0 unpcb 144 76 0 59 1 0 1 1 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 32 0 28 1 0 1 1 0 8 0 arp 88 44 0 28 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 336 189 0 181 2 0 2 2 0 8 1 nd6 104 62 0 42 1 0 1 1 0 8 0 kcovpl 48 22 0 14 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1032 0 622 30 4 26 29 0 8 0 art_table 32 1033 0 622 4 0 4 4 0 8 0 art_node 16 253 0 164 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1680 0 152 96 0 96 96 0 8 0 ffsino 240 1680 0 152 91 0 91 91 0 8 0 nchpl 144 1965 0 275 63 0 63 63 0 8 0 uvmvnodes 80 2006 0 0 41 0 41 41 0 8 0 vnodes 216 2006 0 0 112 0 112 112 0 8 0 namei 1024 7046 0 7042 4 2 2 2 0 8 1 kstatmem 264 52 0 28 2 0 2 2 0 8 0 scxspl 216 9747 0 9747 10 2 8 8 1 8 8 plimitpl 152 56 0 40 1 0 1 1 0 8 0 sigapl 424 661 0 612 7 1 6 7 0 8 0 futexpl 64 1140 0 1138 1 0 1 1 0 8 0 knotepl 120 5599 0 5552 9 7 2 9 0 8 0 kqueuepl 184 35 0 25 1 0 1 1 0 8 0 pipepl 288 157 0 129 3 0 3 3 0 8 0 fdescpl 432 643 0 612 5 1 4 5 0 8 0 filepl 120 2204 0 1959 9 0 9 9 0 8 0 lockfpl 104 86 0 84 1 0 1 1 0 8 0 lockfspl 48 11 0 9 1 0 1 1 0 8 0 sessionpl 144 35 0 27 1 0 1 1 0 8 0 pgrppl 48 60 0 44 1 0 1 1 0 8 0 ucredpl 104 131 0 117 1 0 1 1 0 8 0 zombiepl 144 622 0 621 2 1 1 1 0 8 0 processpl 1096 661 0 612 4 0 4 4 0 8 0 procpl 648 774 0 719 5 0 5 5 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 504 335 0 305 7 1 6 6 0 8 2 mcl64k 65536 2 0 2 1 1 0 1 0 8 0 mcl16k 16384 5 0 5 1 1 0 1 0 8 0 mcl8k 8192 8 0 8 2 1 1 1 0 8 1 mcl4k 4096 2748 0 2697 15 8 7 15 0 8 0 mcl2k 2048 475 0 473 3 0 3 3 0 8 2 mtagpl 96 9 0 9 2 1 1 1 0 8 1 mbufpl 256 6202 0 6066 13 1 12 12 0 8 0 bufpl 280 5508 0 95 387 0 387 387 0 8 0 anonpl 24 182643 0 179548 80 31 49 80 0 187 23 amapchunkpl 152 14742 0 14305 40 11 29 40 0 158 10 amappl16 200 4164 0 4153 5 4 1 5 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 134 0 124 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1470 0 1441 3 1 2 3 0 8 0 amappl11 160 84 0 74 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 123 0 123 1 1 0 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 134 0 124 1 0 1 1 0 8 0 amappl6 120 322 0 318 1 0 1 1 0 8 0 amappl5 112 183 0 173 1 0 1 1 0 8 0 amappl4 104 331 0 317 1 0 1 1 0 8 0 amappl3 96 2617 0 2518 3 0 3 3 0 8 0 amappl2 88 832 0 771 2 0 2 2 0 8 0 amappl1 80 8698 0 8180 13 1 12 13 0 8 1 amappl 88 4042 0 3885 4 0 4 4 0 92 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 643 0 612 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 643 0 612 1 0 1 1 0 8 0 vmmpekpl 168 6431 0 6384 3 0 3 3 0 8 0 vmmpepl 168 48076 0 46399 80 3 77 79 0 357 3 vmsppl 344 642 0 612 4 1 3 4 0 8 0 rwobjpl 24 19824 0 16985 18 0 18 18 0 8 0 pdppl 4096 1292 0 1224 112 44 68 82 0 8 0 pvpl 32 413541 0 404632 359 140 219 357 0 265 131 pmappl 216 642 0 612 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 389 0 66 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:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83036f0c,83,ffffffff830a7417) 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(fffffd806d429600,8020699f,ffff80002a5395c0,ffff80002a4d1460) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4d1460,ffff80002a5397a0,ffff80002a5396f0) at sys_ioctl+0x678 syscall(ffff80002a5397a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf3f23fe9f60, 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83036f0c,83,ffffffff830a7417) 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(fffffd806d429600,8020699f,ffff80002a5395c0,ffff80002a4d1460) at ifioctl+0x19be sys/net/if.c:2294 sys_ioctl(ffff80002a4d1460,ffff80002a5397a0,ffff80002a5396f0) at sys_ioctl+0x678 syscall(ffff80002a5397a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf3f23fe9f60, count: -10