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 *186810 88827 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) 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,ffff800001162000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d382be8,8020699f,ffff80002a599c10,ffff80002a4f4ce0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4f4ce0,ffff80002a599df0,ffff80002a599d40) at sys_ioctl+0x678 syscall(ffff80002a599df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a5c66b560, 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) 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,ffff800001162000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d382be8,8020699f,ffff80002a599c10,ffff80002a4f4ce0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4f4ce0,ffff80002a599df0,ffff80002a599d40) at sys_ioctl+0x678 syscall(ffff80002a599df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a5c66b560, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a599940 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4f4ce0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf55ca0beeba4f8de r11 0x111f5b47c62792e5 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81fea4f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a599930 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=186810 pid=88827 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4f4038,0xffff8000376bca60 process=0xffff80002a5b9590 user=0xffff80002a594000, vmspace=0xfffffd806faf7410 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21233 221761 91338 0 2 0 syz-executor 21233 348855 91338 0 3 0x4000080 fsleep syz-executor 34419 362816 85609 0 2 0x2 ndp 90587 228672 19101 0 2 0 syz-executor 90587 307183 19101 0 2 0x4000000 syz-executor 90587 345983 19101 0 3 0x4000080 fsleep syz-executor 88827 111248 28002 0 2 0 syz-executor 88827 304898 28002 0 2 0x4000000 syz-executor *88827 186810 28002 0 7 0x4000000 syz-executor 85609 327363 50082 0 3 0x10008a sigsusp sh 88913 237519 6768 0 2 0x2 syz-executor 50082 292290 6768 0 3 0x82 wait syz-executor 19101 263373 6768 0 3 0x82 nanoslp syz-executor 91338 182876 6768 0 3 0x82 nanoslp syz-executor 49285 111064 6768 0 2 0x2 syz-executor 28002 108745 6768 0 3 0x82 nanoslp syz-executor 21050 286764 6768 0 3 0x82 nanoslp syz-executor 28631 308336 6768 0 3 0x82 nanoslp syz-executor 77053 201410 0 0 3 0x14200 acct acct 27319 174886 0 0 3 0x14200 bored sosplice 47681 115288 0 0 3 0x14280 nfsidl nfsio 87654 391126 0 0 3 0x14280 nfsidl nfsio 834 457091 0 0 3 0x14280 nfsidl nfsio 70449 184722 0 0 3 0x14280 nfsidl nfsio 45638 7997 0 0 3 0x14280 nfsidl nfsio 52254 236285 0 0 3 0x14280 nfsidl nfsio 25560 337336 0 0 3 0x14280 nfsidl nfsio 88950 122416 0 0 3 0x14280 nfsidl nfsio 80571 928 0 0 3 0x14280 nfsidl nfsio 67150 53245 0 0 3 0x14280 nfsidl nfsio 86098 263116 0 0 3 0x14280 nfsidl nfsio 20997 514298 0 0 3 0x14280 nfsidl nfsio 47966 485713 0 0 3 0x14280 nfsidl nfsio 77981 384369 0 0 3 0x14280 nfsidl nfsio 36647 514528 0 0 3 0x14280 nfsidl nfsio 58679 248931 0 0 3 0x14280 nfsidl nfsio 12929 393702 0 0 3 0x14280 nfsidl nfsio 48812 288129 0 0 3 0x14280 nfsidl nfsio 66558 277606 0 0 3 0x14280 nfsidl nfsio 42212 412792 0 0 3 0x14280 nfsidl nfsio 6768 473882 91608 0 3 0x82 kqread syz-executor 91608 514611 54443 0 3 0x10008a sigsusp ksh 54443 93037 50430 0 3 0x98 kqread sshd-session 50430 519013 35400 0 3 0x92 kqread sshd-session 72960 456022 1 0 3 0x100083 ttyin getty 35400 270016 1 0 3 0x88 kqread sshd 17742 94149 28408 73 2 0x1100010 syslogd 28408 225474 1 0 3 0x100082 sbwait syslogd 15818 150125 1 0 3 0x100080 kqread resolvd 99539 517835 73600 77 3 0x100092 kqread dhcpleased 48777 510102 73600 77 3 0x100092 kqread dhcpleased 73600 261821 1 0 3 0x80 kqread dhcpleased 52677 46723 0 0 3 0x14200 bored smr 37285 248347 0 0 2 0x14200 zerothread 18178 472167 0 0 3 0x14200 aiodoned aiodoned 93921 334669 0 0 3 0x14200 syncer update 51352 41078 0 0 3 0x14200 cleaner cleaner 36245 32551 0 0 3 0x14200 reaper reaper 21471 390627 0 0 3 0x14200 pgdaemon pagedaemon 73256 66953 0 0 3 0x14200 bored viomb 59240 194337 0 0 3 0x40014200 acpi0 acpi0 21850 46001 0 0 3 0x14200 bored softnet3 63400 90237 0 0 3 0x14200 bored softnet2 34089 54137 0 0 3 0x14200 bored softnet1 26311 369136 0 0 2 0x14200 softnet0 64663 246227 0 0 3 0x14200 bored systqmp 98634 439432 0 0 3 0x14200 bored systq 48477 168331 0 0 3 0x40014200 tmoslp softclock 2033 87239 0 0 3 0x40014200 idle0 1 227155 0 0 3 0x80082 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 10180 10032K 10498K 166960K 12421 0 pcb 17 14K 14K 166960K 195 0 rtable 231 8K 9K 166960K 2149 0 pf 35 14K 21K 166960K 197 0 ifaddr 41 7K 9K 166960K 293 0 ifgroup 54 2K 2K 166960K 333 0 sysctl 4 1K 1K 166960K 4 0 counters 31 17K 17K 166960K 102 0 ioctlops 0 0K 4K 166960K 145 0 iov 0 0K 29K 166960K 69 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1456 92K 92K 166960K 2971 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 39 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 19 69K 97K 166960K 1903 0 sigio 0 0K 0K 166960K 26 0 proc 58 59K 124K 166960K 2166 0 subproc 104 6K 6K 166960K 845 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 218 0 in_multi 89 6K 7K 166960K 752 0 ether_multi 1 0K 0K 166960K 7 0 mrt 0 0K 0K 166960K 5 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 0 0K 1K 166960K 1224 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 212 72K 90K 166960K 15637 0 UVM aobj 28 2K 4K 166960K 34 0 pinsyscall 40 80K 96K 166960K 4393 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 60 0 NDP 14 0K 2K 166960K 212 0 temp 76 6816K 6937K 166960K 62439 0 kqueue 15 24K 30K 166960K 173 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 240 0 237 1 0 1 1 0 8 0 rtentry 112 753 0 650 5 1 4 4 0 8 0 unpcb 144 1303 0 1288 13 11 2 8 0 8 1 syncache 336 7 0 7 2 2 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 347 0 342 8 4 4 4 0 8 3 arp 88 136 0 119 1 0 1 1 0 8 0 ipq 40 8 0 7 1 0 1 1 0 8 0 ipqe 40 15 0 14 1 0 1 1 0 8 0 inpcb 336 1574 0 1565 12 8 4 7 0 8 3 nd6 104 198 0 178 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 65 0 57 1 0 1 1 0 8 0 ppxss 1072 7 0 7 3 2 1 1 0 8 1 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 4 0 2 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 0 1 0 1 1 0 8 0 pfstate 344 2 0 0 1 0 1 1 0 8 0 pfrule 1344 5 0 4 2 1 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2993 0 2576 33 4 29 30 0 8 2 art_table 32 2995 0 2576 4 0 4 4 0 8 0 art_node 16 748 0 655 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 31 0 6 1 0 1 1 0 8 0 dirhash 1024 32 0 15 3 0 3 3 0 8 0 dino2pl 256 3503 0 1901 101 0 101 101 0 8 0 ffsino 240 3503 0 1901 96 1 95 95 0 8 0 nchpl 144 5082 0 3329 66 0 66 66 0 8 0 uvmvnodes 80 4827 0 0 99 0 99 99 0 8 0 vnodes 216 4827 0 0 269 0 269 269 0 8 0 namei 1024 22978 0 22977 4 2 2 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 166 0 142 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 38580 0 38580 11 9 2 8 1 8 2 plimitpl 152 530 0 514 1 0 1 1 0 8 0 sigapl 424 2091 0 2022 8 0 8 8 0 8 0 futexpl 64 15523 0 15521 1 0 1 1 0 8 0 knotepl 120 35365 0 35310 31 22 9 16 0 8 7 kqueuepl 184 436 0 424 6 5 1 4 0 8 0 pipepl 288 474 0 447 7 4 3 5 0 8 0 fdescpl 432 2053 0 2022 5 1 4 5 0 8 0 filepl 120 11729 0 11481 20 11 9 14 0 8 1 lockfpl 104 390 0 388 1 0 1 1 0 8 0 lockfspl 48 162 0 160 1 0 1 1 0 8 0 sessionpl 144 78 0 70 1 0 1 1 0 8 0 pgrppl 48 219 0 203 1 0 1 1 0 8 0 ucredpl 104 1467 0 1454 1 0 1 1 0 8 0 zombiepl 144 2142 0 2140 3 2 1 1 0 8 0 processpl 1096 2091 0 2022 6 0 6 6 0 8 0 procpl 648 3584 0 3510 8 0 8 8 0 8 0 sosppl 168 9 0 9 3 2 1 1 0 8 1 sockpl 504 3133 0 3106 62 52 10 30 0 8 6 mcl64k 65536 10 0 10 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl8k 8192 26 0 26 3 2 1 1 0 8 1 mcl4k 4096 7 0 7 3 2 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 8881 0 8790 32 13 19 25 0 8 5 mtagpl 96 15 0 15 2 1 1 1 0 8 1 mbufpl 256 24013 0 23821 65 42 23 62 0 8 8 bufpl 280 8848 0 2194 476 0 476 476 0 8 0 anonpl 24 340118 0 336899 123 49 74 74 0 187 41 amapchunkpl 152 62711 0 62270 59 28 31 36 0 158 12 amappl16 200 7147 0 7134 51 42 9 15 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 223 0 213 1 0 1 1 0 8 0 amappl13 176 15 0 15 2 1 1 1 0 8 1 amappl12 168 3585 0 3556 3 1 2 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 133 0 133 1 1 0 1 0 8 0 amappl8 136 58 0 56 1 0 1 1 0 8 0 amappl7 128 210 0 199 1 0 1 1 0 8 0 amappl6 120 736 0 733 1 0 1 1 0 8 0 amappl5 112 381 0 372 1 0 1 1 0 8 0 amappl4 104 467 0 451 1 0 1 1 0 8 0 amappl3 96 8797 0 8710 3 0 3 3 0 8 0 amappl2 88 2379 0 2305 2 0 2 2 0 8 0 amappl1 80 16120 0 15571 14 2 12 14 0 8 0 amappl 88 14825 0 14668 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 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 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 33 0 6 1 0 1 1 0 8 0 uaddrrnd 24 2053 0 2022 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2053 0 2022 1 0 1 1 0 8 0 vmmpekpl 168 17647 0 17584 4 0 4 4 0 8 0 vmmpepl 168 131776 0 130019 113 24 89 91 0 357 12 vmsppl 344 2052 0 2022 4 1 3 4 0 8 0 rwobjpl 24 43677 0 37957 35 0 35 35 0 8 0 pdppl 4096 4113 0 4044 179 110 69 83 0 8 0 pvpl 32 1058519 0 1049130 513 260 253 253 0 265 161 pmappl 216 2052 0 2022 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 619 0 251 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) 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,ffff800001162000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d382be8,8020699f,ffff80002a599c10,ffff80002a4f4ce0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4f4ce0,ffff80002a599df0,ffff80002a599d40) at sys_ioctl+0x678 syscall(ffff80002a599df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a5c66b560, 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) 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,ffff800001162000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d382be8,8020699f,ffff80002a599c10,ffff80002a4f4ce0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4f4ce0,ffff80002a599df0,ffff80002a599d40) at sys_ioctl+0x678 syscall(ffff80002a599df0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a5c66b560, count: -10