panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 19023 24489 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337a6a6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7050,ffffffff83398dd8,84,ffffffff8340f5a5) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000147a000) at if_createrdomain+0x40 sys/net/if.c:1975 ifioctl(ffff80000154e918,8020699f,ffff80003c92ce90,ffff80002a7bd4d8) at ifioctl+0x1be2 sys/net/if.c:2324 sys_ioctl(ffff80002a7bd4d8,ffff80003c92d060,ffff80003c92cfb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c92d060) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c92d060) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x266f8432610, 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 132 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337a6a6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7050,ffffffff83398dd8,84,ffffffff8340f5a5) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000147a000) at if_createrdomain+0x40 sys/net/if.c:1975 ifioctl(ffff80000154e918,8020699f,ffff80003c92ce90,ffff80002a7bd4d8) at ifioctl+0x1be2 sys/net/if.c:2324 sys_ioctl(ffff80002a7bd4d8,ffff80003c92d060,ffff80003c92cfb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c92d060) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c92d060) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x266f8432610, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c92cbc0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7bd4d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf1065579b0f17243 r11 0x835088712668000e r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff82e677f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c92cbb0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=19023 pid=24489 tcnt=4 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=0xffff80002a7bc2b0,0xffff80002a7bcd20 process=0xffff8000ffff9698 user=0xffff80003c928000, vmspace=0xfffffd806c9fe5d8 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24489 374376 98375 0 3 0x80 fsleep syz-executor *24489 19023 98375 0 7 0x4000000 syz-executor 24489 505596 98375 0 2 0x4000000 syz-executor 24489 308640 98375 0 3 0x4000080 fsleep syz-executor 71478 274926 13424 0 3 0x80 fsleep syz-executor 71478 304374 13424 0 3 0x4000080 kqsel syz-executor 71478 247120 13424 0 3 0x4000080 kqsel syz-executor 71478 35001 13424 0 3 0x4000080 fsleep syz-executor 35694 82829 18999 0 3 0x80 fsleep syz-executor 35694 19922 18999 0 3 0x4000080 sbwait syz-executor 85938 484914 50663 -1 3 0x90 fsleep syz-executor 85938 117502 50663 -1 3 0x4000090 kqread syz-executor 98259 425020 95632 0 3 0x80 fsleep syz-executor 98259 57471 95632 0 3 0x4000080 sbwait syz-executor 95632 89002 14660 0 3 0x82 nanoslp syz-executor 5767 180595 38821 60929 3 0x90 fsleep syz-executor 5767 115338 38821 60929 3 0x4000090 kqread syz-executor 14314 272070 0 0 3 0x14200 acct acct 18999 71936 14660 0 2 0xc82 syz-executor 38821 47166 14660 0 3 0x82 nanoslp syz-executor 13424 410333 14660 0 2 0xc82 syz-executor 50663 357141 14660 0 2 0x3 syz-executor 37364 75394 14660 0 3 0x82 nanoslp syz-executor 49400 486354 14660 0 3 0x82 nanoslp syz-executor 98375 449257 14660 0 2 0xc82 syz-executor 14660 287602 59740 0 3 0x82 kqread syz-executor 59740 50406 59655 0 3 0x10008a sigsusp ksh 59655 258542 66787 0 3 0x98 kqread sshd-session 66787 317036 89217 0 3 0x92 kqread sshd-session 36189 397454 1 0 3 0x100083 ttyin getty 89217 494727 1 0 3 0x88 kqread sshd 20229 313702 26779 73 3 0x1100090 kqread syslogd 26779 120927 1 0 3 0x100082 sbwait syslogd 86446 505979 1 0 3 0x100080 kqread resolvd 89817 475159 18019 77 3 0x100092 kqread dhcpleased 81353 99444 18019 77 3 0x100092 kqread dhcpleased 18019 94868 1 0 3 0x80 kqread dhcpleased 29520 294612 0 0 3 0x14200 bored smr 19577 497817 0 0 2 0x14200 zerothread 83572 225025 0 0 3 0x14200 aiodoned aiodoned 80788 36546 0 0 3 0x14200 syncer update 19510 292373 0 0 3 0x14200 cleaner cleaner 9462 225293 0 0 3 0x14200 reaper reaper 2841 148856 0 0 3 0x14200 pgdaemon pagedaemon 69493 491751 0 0 3 0x14200 bored viomb 16632 168039 0 0 3 0x40014200 acpi0 acpi0 2669 337457 0 0 3 0x14200 bored softnet0 62079 132597 0 0 3 0x14200 bored systqmp 70020 431144 0 0 3 0x14200 bored systq 17023 138559 0 0 3 0x40014200 tmoslp softclock 58818 383675 0 0 3 0x40014200 idle0 1 466933 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 10187 11152K 11972K 166960K 12429 0 pcb 18 14K 16K 166960K 235 0 rtable 215 6K 7K 166960K 456 0 pf 28 12K 19K 166960K 68 0 ifaddr 38 6K 8K 166960K 66 0 ifgroup 46 2K 2K 166960K 93 0 sysctl 3 1K 9K 166960K 10 0 counters 32 17K 18K 166960K 48 0 ioctlops 0 0K 4K 166960K 208 0 iov 0 0K 12K 166960K 147 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1439 91K 91K 166960K 2022 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 30 0 dirhash 9 1K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 571 0 sigio 0 0K 0K 166960K 7 0 proc 63 67K 108K 166960K 550 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 36 0 in_multi 88 6K 7K 166960K 125 0 ether_multi 1 0K 0K 166960K 6 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 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 407 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 235 151K 165K 166960K 6544 0 UVM aobj 20 8K 8K 166960K 21 0 pinsyscall 39 78K 94K 166960K 1655 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 20 0 NDP 10 0K 2K 166960K 41 0 temp 56 8666K 8730K 166960K 28488 0 kqueue 16 24K 30K 166960K 85 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 66 0 63 1 0 1 1 0 8 0 rtentry 136 134 0 41 4 0 4 4 0 8 0 unpcb 144 342 0 323 5 4 1 5 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 158 0 151 7 6 1 7 0 8 0 arp 96 20 0 4 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 328 668 0 657 8 6 2 7 0 8 0 ip6q 72 3 0 1 1 0 1 1 0 8 0 ip6af 40 4 0 2 1 0 1 1 0 8 0 nd6 112 30 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 9 0 9 2 1 1 1 0 8 1 pppxif 1384 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 605 0 221 32 5 27 31 0 8 1 art_table 40 608 0 221 5 0 5 5 0 8 0 art_node 32 134 0 50 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 1 1 0 1 1 0 8 0 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 14 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 14 3 0 3 3 0 8 1 dino2pl 256 2331 0 830 95 0 95 95 0 8 0 ffsino 256 2331 0 830 95 0 95 95 0 8 0 nchpl 144 3112 0 1414 64 1 63 64 0 8 0 vnodes 216 2901 0 0 162 0 162 162 0 8 0 namei 1024 10297 0 10297 3 2 1 2 0 8 1 vcpupl 3904 3 0 0 1 0 1 1 0 8 0 vmpool 800 4 0 1 1 0 1 1 0 8 0 kstatmem 264 46 0 26 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 10026 0 10026 8 7 1 8 1 8 1 plimitpl 152 88 0 72 1 0 1 1 0 8 0 sigapl 424 839 0 795 7 1 6 6 0 8 1 knotepl 120 19181 0 19129 17 14 3 17 0 8 0 kqueuepl 184 241 0 223 6 3 3 4 0 8 2 pipepl 304 217 0 190 5 2 3 5 0 8 0 fdescpl 448 825 0 795 5 1 4 5 0 8 0 filepl 120 5253 0 5025 14 6 8 14 0 8 0 lockfpl 104 124 0 122 1 0 1 1 0 8 0 lockfspl 48 57 0 55 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 72 0 56 1 0 1 1 0 8 0 ucredpl 104 753 0 739 1 0 1 1 0 8 0 zombiepl 144 820 0 818 1 0 1 1 0 8 0 processpl 1152 839 0 795 4 0 4 4 0 8 0 procpl 664 1485 0 1431 6 1 5 6 0 8 0 sosppl 176 3 0 3 1 1 0 1 0 8 0 sockpl 552 1093 0 1060 16 13 3 15 0 8 0 mcl64k 65536 36 0 36 2 1 1 1 0 8 1 mcl8k 8192 6 0 6 1 1 0 1 0 8 0 mcl4k 4096 2985 0 2932 17 9 8 16 0 8 0 mcl2k 2048 872 0 866 4 2 2 3 0 8 0 mtagpl 96 28 0 11 1 0 1 1 0 8 0 mbufpl 256 57403 0 57223 115 101 14 115 0 8 0 bufpl 280 4185 0 121 291 0 291 291 0 8 0 anonpl 24 144501 0 141322 60 28 32 56 0 187 5 amapchunkpl 152 20855 0 20348 39 10 29 29 0 158 7 amappl16 200 2724 0 2697 21 17 4 15 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 22 0 22 1 1 0 1 0 8 0 amappl13 176 425 0 422 1 0 1 1 0 8 0 amappl12 168 1167 0 1128 3 1 2 3 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 52 0 41 1 0 1 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 24 0 23 1 0 1 1 0 8 0 amappl7 128 84 0 83 1 0 1 1 0 8 0 amappl6 120 269 0 258 1 0 1 1 0 8 0 amappl5 112 76 0 68 1 0 1 1 0 8 0 amappl4 104 385 0 360 1 0 1 1 0 8 0 amappl3 96 4000 0 3886 3 0 3 3 0 8 0 amappl2 88 520 0 465 2 0 2 2 0 8 0 amappl1 80 10598 0 10058 13 1 12 13 0 8 0 amappl 88 5773 0 5605 4 0 4 4 0 92 0 uvmvnodes 80 107 0 0 3 0 3 3 0 8 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 20 0 1 1 0 1 1 0 8 0 uaddrrnd 24 825 0 795 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 825 0 795 1 0 1 1 0 8 0 vmmpekpl 168 8171 0 8134 2 0 2 2 0 8 0 vmmpepl 168 59084 0 57252 91 10 81 90 0 357 1 vmsppl 368 824 0 795 4 1 3 4 0 8 0 rwobjpl 40 18049 0 17074 13 1 12 13 0 8 0 pdppl 4096 1665 0 1595 99 27 72 81 0 8 2 pvpl 32 374021 0 365210 137 39 98 129 0 265 9 pmappl 216 828 0 796 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 489 0 159 13 0 13 13 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:438 panic(ffffffff8337a6a6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7050,ffffffff83398dd8,84,ffffffff8340f5a5) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000147a000) at if_createrdomain+0x40 sys/net/if.c:1975 ifioctl(ffff80000154e918,8020699f,ffff80003c92ce90,ffff80002a7bd4d8) at ifioctl+0x1be2 sys/net/if.c:2324 sys_ioctl(ffff80002a7bd4d8,ffff80003c92d060,ffff80003c92cfb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c92d060) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c92d060) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x266f8432610, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337a6a6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7050,ffffffff83398dd8,84,ffffffff8340f5a5) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000147a000) at if_createrdomain+0x40 sys/net/if.c:1975 ifioctl(ffff80000154e918,8020699f,ffff80003c92ce90,ffff80002a7bd4d8) at ifioctl+0x1be2 sys/net/if.c:2324 sys_ioctl(ffff80002a7bd4d8,ffff80003c92d060,ffff80003c92cfb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c92d060) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c92d060) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x266f8432610, count: -10