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 *428838 57298 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833396f5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83376ff0,ffffffff833539d2,84,ffffffff833c89c8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001492800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdb378,8020699f,ffff80003c9a0e30,ffff800037d46a88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800037d46a88,ffff80003c9a1000,ffff80003c9a0f50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9a1000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a1000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8409f0a270, 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(ffffffff833396f5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83376ff0,ffffffff833539d2,84,ffffffff833c89c8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001492800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdb378,8020699f,ffff80003c9a0e30,ffff800037d46a88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800037d46a88,ffff80003c9a1000,ffff80003c9a0f50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9a1000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a1000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8409f0a270, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c9a0b60 rbx 0x21 rdx 0 rcx 0 rax 0xffff800037d46a88 r8 0x101010101010101 r9 0x8080808080808080 r10 0x85e399d5e016d2d8 r11 0xf09190b6e6cbeb82 r12 0 r13 0x19 r14 0 r15 0x1 rip 0xffffffff81cd54f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c9a0b50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=428838 pid=57298 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=0xffff800037d462c0,0xffff800037d46d30 process=0xffff8000ffffad18 user=0xffff80003c99c000, vmspace=0xfffffd8069588188 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 57298 427563 96374 0 3 0x80 fsleep syz-executor 57298 346981 96374 0 2 0x4000000 syz-executor *57298 428838 96374 0 7 0x4000000 syz-executor 57298 369708 96374 0 3 0x4000080 fsleep syz-executor 13996 490553 55151 0 3 0x80 fsleep syz-executor 13996 387836 55151 0 3 0x4000080 ttyin syz-executor 40727 8662 23310 0 2 0xc80 syz-executor 40727 405179 23310 0 3 0x4000080 kqsel syz-executor 40727 308493 23310 0 3 0x4000080 fsleep syz-executor 40727 7959 23310 0 3 0x4000080 fsleep syz-executor 45532 136182 11147 0 3 0x80 fsleep syz-executor 45532 342572 11147 0 3 0x4000080 fifor syz-executor 57180 21088 68362 0 3 0x80 fsleep syz-executor 57180 371348 68362 0 3 0x4000080 rest syz-executor 58242 398040 61831 0 3 0x80 fsleep syz-executor 58242 95781 61831 0 3 0x4000080 kqsel syz-executor 96374 306134 30427 0 3 0x82 nanoslp syz-executor 87377 122216 0 0 3 0x14200 bored sosplice 94710 403827 1 0 3 0x100083 ttyin getty 11147 463870 30427 0 2 0xc82 syz-executor 84690 521018 30427 0 3 0x82 nanoslp syz-executor 55151 117325 30427 0 2 0xc82 syz-executor 61831 293789 30427 0 2 0xc82 syz-executor 68362 361793 30427 0 2 0xc82 syz-executor 55422 105260 30427 0 3 0x82 wait syz-executor 23310 151732 30427 0 2 0xc82 syz-executor 30427 355551 12425 0 3 0x82 kqread syz-executor 12425 467352 22726 0 3 0x10008a sigsusp ksh 22726 68228 72920 0 3 0x98 kqread sshd-session 72920 49053 29813 0 3 0x92 kqread sshd-session 29813 510604 1 0 3 0x88 kqread sshd 84698 497835 57647 73 3 0x1100090 kqread syslogd 57647 77256 1 0 3 0x100082 sbwait syslogd 64830 336565 1 0 3 0x100080 kqread resolvd 48736 164462 28235 77 3 0x100092 kqread dhcpleased 71356 186478 28235 77 3 0x100092 kqread dhcpleased 28235 127970 1 0 3 0x80 kqread dhcpleased 48763 442535 0 0 3 0x14200 bored smr 46238 467804 0 0 2 0x14200 zerothread 72930 213327 0 0 3 0x14200 aiodoned aiodoned 49730 241646 0 0 3 0x14200 syncer update 39604 8578 0 0 3 0x14200 cleaner cleaner 58189 268303 0 0 3 0x14200 reaper reaper 43785 314026 0 0 3 0x14200 pgdaemon pagedaemon 11143 71088 0 0 3 0x14200 bored viomb 98124 102367 0 0 3 0x40014200 acpi0 acpi0 87399 96819 0 0 3 0x14200 bored softnet7 95826 231278 0 0 3 0x14200 bored softnet6 26156 505835 0 0 3 0x14200 bored softnet5 53689 224490 0 0 3 0x14200 bored softnet4 73229 81120 0 0 3 0x14200 bored softnet3 44875 335548 0 0 3 0x14200 bored softnet2 96547 31552 0 0 3 0x14200 bored softnet1 89537 319716 0 0 3 0x14200 bored softnet0 9059 72637 0 0 3 0x14200 bored systqmp 73098 507950 0 0 3 0x14200 bored systq 60734 65255 0 0 2 0x40014200 softclock 52369 152338 0 0 3 0x40014200 idle0 1 21957 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 11079K 11231K 166960K 11876 0 pcb 20 13K 13K 166960K 131 0 rtable 235 10K 10K 166960K 385 0 pf 30 12K 13K 166960K 83 0 ifaddr 39 7K 7K 166960K 79 0 ifgroup 50 2K 2K 166960K 117 0 sysctl 3 1K 9K 166960K 18 0 counters 32 17K 18K 166960K 73 0 ioctlops 0 0K 4K 166960K 101 0 iov 0 0K 32K 166960K 178 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1339 84K 85K 166960K 1746 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 18 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 35 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 728 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 124K 166960K 563 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 73 0 in_multi 88 6K 7K 166960K 136 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 481 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 244 163K 168K 166960K 7987 0 UVM aobj 28 5K 5K 166960K 31 0 pinsyscall 39 78K 96K 166960K 1792 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 50 0 NDP 11 0K 2K 166960K 53 0 temp 55 8642K 8895K 166960K 26853 0 kqueue 14 22K 30K 166960K 137 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 81 0 74 1 0 1 1 0 8 0 rtentry 136 122 0 32 4 0 4 4 0 8 0 unpcb 144 558 0 538 6 0 6 6 0 8 4 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 168 0 161 2 0 2 2 0 8 1 arp 96 13 0 3 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 6 0 3 1 0 1 1 0 8 0 inpcb 328 633 0 616 6 2 4 4 0 8 2 ip6q 72 40 0 38 2 1 1 1 0 8 0 ip6af 40 80 0 77 2 1 1 1 0 8 0 nd6 104 24 0 8 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 34 0 34 2 1 1 1 0 8 1 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfrule 1344 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 542 0 132 29 3 26 29 0 8 0 art_table 40 545 0 132 5 0 5 5 0 8 0 art_node 32 121 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 31 0 21 1 0 1 1 0 8 0 shmpl 112 28 0 3 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2655 0 1158 95 0 95 95 0 8 0 ffsino 256 2655 0 1158 95 0 95 95 0 8 0 nchpl 144 3677 0 1988 63 0 63 63 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 uvmvnodes 80 2898 0 0 60 0 60 60 0 8 0 vnodes 216 2898 0 0 161 0 161 161 0 8 0 namei 1024 12062 0 12062 3 2 1 2 0 8 1 kstatmem 264 70 0 48 2 0 2 2 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 14953 0 14953 15 7 8 8 1 8 8 plimitpl 152 220 0 202 1 0 1 1 0 8 0 sigapl 424 1005 0 954 7 1 6 7 0 8 0 knotepl 120 45864 0 45813 40 29 11 24 0 8 8 kqueuepl 184 345 0 333 7 3 4 4 0 8 3 pipepl 304 232 0 205 8 3 5 6 0 8 2 fdescpl 448 981 0 951 5 1 4 5 0 8 0 filepl 120 5653 0 5419 15 2 13 13 0 8 4 lockfpl 104 208 0 205 1 0 1 1 0 8 0 lockfspl 48 95 0 92 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 794 0 782 1 0 1 1 0 8 0 zombiepl 144 1184 0 1182 1 0 1 1 0 8 0 processpl 1152 1005 0 954 5 1 4 5 0 8 0 procpl 664 1926 0 1865 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 552 1364 0 1319 16 6 10 14 0 8 6 mcl64k 65536 35 0 34 2 1 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 2 1 1 1 0 8 1 mcl4k 4096 3266 0 3217 16 8 8 15 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1093 0 1080 5 3 2 3 0 8 0 mtagpl 96 14 0 5 1 0 1 1 0 8 0 mbufpl 256 10317 0 10121 17 0 17 17 0 8 4 bufpl 280 6132 0 120 430 0 430 430 0 8 0 anonpl 24 153547 0 150273 75 10 65 65 0 187 34 amapchunkpl 152 25990 0 25461 29 3 26 26 0 158 5 amappl16 200 2327 0 2293 30 17 13 26 0 8 8 amappl15 192 44 0 44 1 1 0 1 0 8 0 amappl14 184 113 0 103 1 0 1 1 0 8 0 amappl13 176 9 0 8 1 0 1 1 0 8 0 amappl12 168 1611 0 1581 3 1 2 3 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 287 0 287 1 1 0 1 0 8 0 amappl8 136 15 0 14 1 0 1 1 0 8 0 amappl7 128 117 0 107 1 0 1 1 0 8 0 amappl6 120 182 0 179 1 0 1 1 0 8 0 amappl5 112 115 0 108 1 0 1 1 0 8 0 amappl4 104 289 0 273 1 0 1 1 0 8 0 amappl3 96 4486 0 4382 3 0 3 3 0 8 0 amappl2 88 1235 0 1162 2 0 2 2 0 8 0 amappl1 80 11006 0 10455 14 1 13 13 0 8 0 amappl 88 7200 0 7021 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 255 0 255 2 1 1 1 0 8 1 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 30 0 3 1 0 1 1 0 8 0 uaddrrnd 24 981 0 951 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 981 0 951 1 0 1 1 0 8 0 vmmpekpl 168 9147 0 9110 3 0 3 3 0 8 0 vmmpepl 168 67019 0 65087 107 0 107 107 0 357 20 vmsppl 368 980 0 951 4 1 3 4 0 8 0 rwobjpl 40 22008 0 18207 39 0 39 39 0 8 0 pdppl 4096 1968 0 1902 102 34 68 82 0 8 2 pvpl 32 426531 0 417508 147 14 133 133 0 265 42 pmappl 216 980 0 951 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 390 0 57 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(ffffffff833396f5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83376ff0,ffffffff833539d2,84,ffffffff833c89c8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001492800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdb378,8020699f,ffff80003c9a0e30,ffff800037d46a88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800037d46a88,ffff80003c9a1000,ffff80003c9a0f50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9a1000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a1000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8409f0a270, 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(ffffffff833396f5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83376ff0,ffffffff833539d2,84,ffffffff833c89c8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001492800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdb378,8020699f,ffff80003c9a0e30,ffff800037d46a88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800037d46a88,ffff80003c9a1000,ffff80003c9a0f50) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9a1000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9a1000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8409f0a270, count: -10