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 *413927 82526 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83351e33) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ec8a,ffffffff83370b25,84,ffffffff833e6474) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x1f2 rtable_add(8) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(8,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdb7c8,8020699f,ffff80003c95d9b0,ffff80002a7aba08) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7aba08,ffff80003c95db80,ffff80003c95dad0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c95db80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95db80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4fd5b9c990, 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(ffffffff83351e33) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ec8a,ffffffff83370b25,84,ffffffff833e6474) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x1f2 rtable_add(8) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(8,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdb7c8,8020699f,ffff80003c95d9b0,ffff80002a7aba08) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7aba08,ffff80003c95db80,ffff80003c95dad0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c95db80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95db80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4fd5b9c990, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c95d6e0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7aba08 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5aa777ed08c039fd r11 0x450b53a5842e0569 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff822d4b95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c95d6d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=413927 pid=82526 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=60, usrpri=60, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7ab770,0xffff80002a7aa558 process=0xffff8000ffff8d98 user=0xffff80003c958000, vmspace=0xfffffd80697cee78 estcpu=10, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77461 155475 30053 0 2 0 syz-executor 77461 377297 30053 0 3 0x4000080 fsleep syz-executor 6803 146931 48439 0 2 0 syz-executor 6803 304086 48439 0 3 0x4000080 fsleep syz-executor 67668 486703 96649 0 2 0 syz-executor 67668 78533 96649 0 3 0x4000080 fsleep syz-executor 15044 199675 26662 0 2 0 syz-executor 15044 353380 26662 0 3 0x4000080 fsleep syz-executor 92175 435521 95554 0 2 0 syz-executor 92175 352279 95554 0 3 0x4000080 fsleep syz-executor 78543 238242 67704 0 2 0x2 ndp 67704 190499 60410 0 3 0x10008a sigsusp sh 61683 339651 82021 0 2 0 syz-executor 61683 83765 82021 0 3 0x4000080 kqsel syz-executor 61683 370666 82021 0 3 0x4000080 fsleep syz-executor 82526 302268 51424 0 2 0 syz-executor 82526 125900 51424 0 2 0x4000000 syz-executor *82526 413927 51424 0 7 0x4000000 syz-executor 82526 315021 51424 0 3 0x4000080 fsleep syz-executor 95554 31358 37023 0 3 0x82 nanoslp syz-executor 26662 523308 37023 0 3 0x82 nanoslp syz-executor 82021 419809 37023 0 2 0xc82 syz-executor 96649 369265 37023 0 3 0x82 nanoslp syz-executor 51424 450618 37023 0 3 0x82 nanoslp syz-executor 30053 405297 37023 0 2 0xc82 syz-executor 60410 352189 37023 0 3 0x82 wait syz-executor 48439 308024 37023 0 2 0xc82 syz-executor 37023 490959 5281 0 3 0x82 kqread syz-executor 5281 366468 16835 0 3 0x10008a sigsusp ksh 16835 402919 46036 0 3 0x98 kqread sshd-session 46036 15968 12622 0 3 0x92 kqread sshd-session 20832 481763 1 0 3 0x100083 ttyin getty 12622 14317 1 0 3 0x88 kqread sshd 15351 207326 34835 73 3 0x1100090 kqread syslogd 34835 168576 1 0 3 0x100082 sbwait syslogd 69496 168176 1 0 3 0x100080 kqread resolvd 56714 171486 59503 77 3 0x100092 kqread dhcpleased 41525 67838 59503 77 3 0x100092 kqread dhcpleased 59503 322573 1 0 3 0x80 kqread dhcpleased 6826 241743 0 0 3 0x14200 bored smr 28083 127364 0 0 2 0x14200 zerothread 91382 465329 0 0 3 0x14200 aiodoned aiodoned 25138 156534 0 0 3 0x14200 syncer update 89204 220345 0 0 3 0x14200 cleaner cleaner 84885 365855 0 0 3 0x14200 reaper reaper 95279 80833 0 0 3 0x14200 pgdaemon pagedaemon 95544 482973 0 0 3 0x14200 bored viomb 60115 35774 0 0 3 0x40014200 acpi0 acpi0 24608 101896 0 0 3 0x14200 bored softnet0 11181 266498 0 0 3 0x14200 bored systqmp 14040 370218 0 0 3 0x14200 bored systq 33591 520438 0 0 3 0x40014200 tmoslp softclock 82483 59187 0 0 3 0x40014200 idle0 1 432307 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 10168 11042K 11067K 166960K 11275 0 pcb 18 12K 12K 166960K 22 0 rtable 213 7K 7K 166960K 273 0 pf 34 13K 14K 166960K 44 0 ifaddr 43 7K 8K 166960K 53 0 ifgroup 52 2K 2K 166960K 68 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 41 0 ioctlops 0 0K 2K 166960K 38 0 iov 0 0K 12K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1339 84K 84K 166960K 1363 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 89K 166960K 152 0 proc 58 59K 100K 166960K 473 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2 0 in_multi 99 7K 7K 166960K 101 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 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 348 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 230 148K 152K 166960K 2892 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 40 80K 90K 166960K 1183 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 18 0K 2K 166960K 32 0 temp 35 8634K 8698K 166960K 3741 0 kqueue 15 24K 24K 166960K 26 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 38 0 35 1 0 1 1 0 8 0 rtentry 136 97 0 3 4 0 4 4 0 8 0 unpcb 144 39 0 22 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 20 0 16 2 0 2 2 0 8 1 arp 96 10 0 0 1 0 1 1 0 8 0 inpcb 328 75 0 67 2 0 2 2 0 8 1 nd6 112 16 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 6 0 5 1 0 1 1 0 8 0 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 1 0 1 1 0 8 0 pfstate 384 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 442 0 6 28 0 28 28 0 8 0 art_table 40 443 0 6 5 0 5 5 0 8 0 art_node 32 97 0 13 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1573 0 69 95 0 95 95 0 8 0 ffsino 256 1573 0 69 95 0 95 95 0 8 0 nchpl 144 1779 0 101 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 1659 0 0 34 0 34 34 0 8 0 vnodes 216 1659 0 0 93 0 93 93 0 8 0 namei 1024 5192 0 5192 2 1 1 2 0 8 1 kstatmem 264 32 0 8 2 0 2 2 0 8 0 scxspl 216 6250 0 6250 8 7 1 8 1 8 1 plimitpl 152 30 0 14 1 0 1 1 0 8 0 sigapl 424 429 0 385 7 1 6 6 0 8 0 knotepl 120 3644 0 3593 2 0 2 2 0 8 0 kqueuepl 184 29 0 16 1 0 1 1 0 8 0 pipepl 304 101 0 73 3 0 3 3 0 8 0 fdescpl 448 416 0 385 5 1 4 5 0 8 0 filepl 120 1359 0 1148 7 0 7 7 0 8 0 lockfpl 104 9 0 7 1 0 1 1 0 8 0 lockfspl 48 5 0 3 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 78 0 67 1 0 1 1 0 8 0 zombiepl 144 394 0 394 1 0 1 1 0 8 1 processpl 1152 429 0 385 4 0 4 4 0 8 0 procpl 664 464 0 410 5 0 5 5 0 8 0 sockpl 552 152 0 124 3 0 3 3 0 8 0 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 2472 0 2418 15 7 8 15 0 8 1 mcl2k 2048 182 0 182 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 3977 0 3831 10 0 10 10 0 8 0 bufpl 280 2829 0 117 194 0 194 194 0 8 0 anonpl 24 102546 0 99442 23 4 19 23 0 187 0 amapchunkpl 152 8445 0 7957 20 0 20 20 0 158 0 amappl16 200 2057 0 2041 5 4 1 5 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 1033 0 1001 3 1 2 3 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 9 0 8 1 0 1 1 0 8 0 amappl9 144 247 0 247 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 172 0 168 1 0 1 1 0 8 0 amappl5 112 116 0 109 1 0 1 1 0 8 0 amappl4 104 276 0 260 1 0 1 1 0 8 0 amappl3 96 1263 0 1170 3 0 3 3 0 8 0 amappl2 88 642 0 568 2 0 2 2 0 8 0 amappl1 80 7982 0 7412 13 0 13 13 0 8 0 amappl 88 2255 0 2089 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 416 0 385 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 416 0 385 1 0 1 1 0 8 0 vmmpekpl 168 4831 0 4793 2 0 2 2 0 8 0 vmmpepl 168 33245 0 31375 83 1 82 82 0 357 0 vmsppl 368 415 0 385 4 0 4 4 0 8 1 rwobjpl 40 14010 0 11487 26 0 26 26 0 8 0 pdppl 4096 839 0 770 101 30 71 79 0 8 2 pvpl 32 214912 0 206872 72 3 69 69 0 265 0 pmappl 216 415 0 385 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 367 0 43 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:438 panic(ffffffff83351e33) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ec8a,ffffffff83370b25,84,ffffffff833e6474) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x1f2 rtable_add(8) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(8,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdb7c8,8020699f,ffff80003c95d9b0,ffff80002a7aba08) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7aba08,ffff80003c95db80,ffff80003c95dad0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c95db80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95db80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4fd5b9c990, 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(ffffffff83351e33) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ec8a,ffffffff83370b25,84,ffffffff833e6474) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x1f2 rtable_add(8) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(8,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdb7c8,8020699f,ffff80003c95d9b0,ffff80002a7aba08) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7aba08,ffff80003c95db80,ffff80003c95dad0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c95db80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c95db80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4fd5b9c990, count: -10