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 *241629 31720 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83354763) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339304d,ffffffff8336ec9a,84,ffffffff833e40b3) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(81,21) at rtmap_grow+0x1f2 rtable_add(80) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(80) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(80,ffff800001461000) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fda460,8020699f,ffff80003c9673f0,ffff80003c9982c8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c9982c8,ffff80003c9675c0,ffff80003c967510) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9675c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9675c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54857972020, 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(ffffffff83354763) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339304d,ffffffff8336ec9a,84,ffffffff833e40b3) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(81,21) at rtmap_grow+0x1f2 rtable_add(80) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(80) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(80,ffff800001461000) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fda460,8020699f,ffff80003c9673f0,ffff80003c9982c8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c9982c8,ffff80003c9675c0,ffff80003c967510) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9675c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9675c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54857972020, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c967120 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003c9982c8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x44df820399475dcc r11 0x895173a763f28be4 r12 0 r13 0x19 r14 0 r15 0x1 rip 0xffffffff819ae8c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c967110 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=241629 pid=31720 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f101cb0,0xffff80003c998fd0 process=0xffff80003c9c4920 user=0xffff80003c962000, vmspace=0xfffffd800c6778b8 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95490 185051 18602 60928 3 0x90 nanoslp syz-executor 95490 473259 18602 60928 2 0x4000010 syz-executor 31720 410374 49503 0 2 0 syz-executor 31720 330595 49503 0 2 0x4000000 syz-executor *31720 241629 49503 0 7 0x4000000 syz-executor 85729 329831 68139 0 2 0 syz-executor 85729 523508 68139 0 3 0x4000080 fifow syz-executor 85729 222642 68139 0 3 0x4000080 fifow syz-executor 85729 249441 68139 0 2 0x4000000 syz-executor 2794 302518 93330 60929 2 0x10 syz-executor 2794 364593 93330 60929 2 0x4000010 syz-executor 2794 320949 93330 60929 3 0x4000090 fsleep syz-executor 50908 68926 0 0 3 0x14200 acct acct 91029 320649 0 0 3 0x14280 nfsidl nfsio 39180 43654 0 0 3 0x14280 nfsidl nfsio 87799 52693 0 0 3 0x14280 nfsidl nfsio 92 132362 0 0 3 0x14280 nfsidl nfsio 58598 246539 0 0 3 0x14280 nfsidl nfsio 56548 490491 0 0 3 0x14280 nfsidl nfsio 2072 152725 0 0 3 0x14280 nfsidl nfsio 38072 309316 0 0 3 0x14280 nfsidl nfsio 54632 102302 0 0 3 0x14280 nfsidl nfsio 19107 459778 0 0 3 0x14280 nfsidl nfsio 95165 226920 0 0 3 0x14280 nfsidl nfsio 10689 434912 0 0 3 0x14280 nfsidl nfsio 87441 459155 0 0 3 0x14280 nfsidl nfsio 68222 513906 0 0 3 0x14280 nfsidl nfsio 58501 389815 0 0 3 0x14280 nfsidl nfsio 13852 43184 0 0 3 0x14280 nfsidl nfsio 98645 258552 0 0 3 0x14280 nfsidl nfsio 71266 360196 0 0 3 0x14280 nfsidl nfsio 55160 68918 0 0 3 0x14280 nfsidl nfsio 18429 323153 0 0 3 0x14280 nfsidl nfsio 36627 47499 0 0 3 0x14200 bored sosplice 51832 500142 48372 0 2 0x2 syz-executor 42361 47135 48372 0 2 0x2 syz-executor 93330 444163 48372 0 2 0xc82 syz-executor 68139 314751 48372 0 2 0xc82 syz-executor 49503 115166 48372 0 2 0xc82 syz-executor 17733 424676 48372 0 2 0x2 syz-executor 18602 279267 48372 0 2 0xc82 syz-executor 60479 505173 48372 0 2 0x2 syz-executor 48372 406859 20919 0 3 0x82 kqread syz-executor 20919 83484 18011 0 3 0x10008a sigsusp ksh 18011 355644 3449 0 3 0x98 kqread sshd-session 3449 327974 63596 0 3 0x92 kqread sshd-session 31023 145996 1 0 3 0x100083 ttyin getty 63596 132031 1 0 3 0x88 kqread sshd 86246 404804 26424 73 3 0x1100090 kqread syslogd 26424 4847 1 0 3 0x100082 sbwait syslogd 37555 266293 1 0 3 0x100080 kqread resolvd 10813 506795 44970 77 3 0x100092 kqread dhcpleased 85581 436826 44970 77 3 0x100092 kqread dhcpleased 44970 219959 1 0 3 0x80 kqread dhcpleased 62680 91481 0 0 3 0x14200 bored smr 79911 105513 0 0 2 0x14200 zerothread 16282 491919 0 0 3 0x14200 aiodoned aiodoned 38653 147495 0 0 3 0x14200 syncer update 65316 205104 0 0 3 0x14200 cleaner cleaner 28486 519670 0 0 3 0x14200 reaper reaper 45167 99282 0 0 3 0x14200 pgdaemon pagedaemon 68352 171323 0 0 3 0x14200 bored viomb 68811 75591 0 0 3 0x40014200 acpi0 acpi0 45762 300587 0 0 3 0x14200 bored softnet0 85340 411949 0 0 3 0x14200 bored systqmp 35023 264524 0 0 3 0x14200 bored systq 99858 269757 0 0 3 0x40014200 tmoslp softclock 7028 433463 0 0 3 0x40014200 idle0 1 87590 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 10181 11046K 11424K 166960K 11788 0 pcb 21 12K 12K 166960K 92 0 rtable 192 11K 11K 166960K 335 0 pf 33 13K 16K 166960K 89 0 ifaddr 39 6K 7K 166960K 73 0 ifgroup 54 2K 2K 166960K 111 0 sysctl 4 1K 9K 166960K 10 0 counters 33 17K 18K 166960K 60 0 ioctlops 0 0K 4K 166960K 150 0 iov 0 0K 16K 166960K 70 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1473 92K 93K 166960K 1795 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 13 1K 1K 166960K 19 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 236K 166960K 531 0 sigio 0 0K 0K 166960K 68 0 proc 61 67K 124K 166960K 502 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 40 0 in_multi 83 6K 7K 166960K 121 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 413 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 206 159K 174K 166960K 6475 0 UVM aobj 15 2K 2K 166960K 20 0 pinsyscall 35 70K 96K 166960K 1555 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 15 0 NDP 12 0K 1K 166960K 48 0 temp 46 8640K 8706K 166960K 21748 0 kqueue 15 22K 34K 166960K 112 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 66 1 0 1 1 0 8 0 rtentry 136 103 0 31 4 0 4 4 0 8 0 unpcb 144 278 0 255 2 1 1 2 0 8 0 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 736 222 0 212 10 3 7 7 0 8 5 arp 96 12 0 2 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 34 0 32 1 0 1 1 0 8 0 inpcb 328 452 0 433 10 3 7 7 0 8 4 ip6q 72 2 0 2 1 0 1 1 0 8 1 ip6af 40 4 0 4 1 0 1 1 0 8 1 nd6 112 17 0 3 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 21 0 21 2 1 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfstkey 128 1 0 1 1 0 1 1 0 8 1 pfstate 384 1 0 1 1 0 1 1 0 8 1 pfrule 1344 4 0 4 2 1 1 1 0 8 1 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 501 0 132 28 0 28 28 0 8 3 art_table 40 503 0 132 5 0 5 5 0 8 0 art_node 32 103 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 14 0 3 1 0 1 1 0 8 0 shmpl 112 17 0 5 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2342 0 850 95 0 95 95 0 8 0 ffsino 256 2342 0 850 95 0 95 95 0 8 0 nchpl 144 3070 0 1391 63 0 63 63 0 8 0 rtmask 32 2 0 2 2 1 1 1 0 8 1 vnodes 216 2694 0 0 150 0 150 150 0 8 0 namei 1024 10367 0 10364 2 1 1 2 0 8 0 kstatmem 264 64 0 40 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 10214 0 10214 8 7 1 8 1 8 1 plimitpl 152 208 0 191 1 0 1 1 0 8 0 sigapl 424 818 0 757 9 1 8 8 0 8 0 knotepl 120 20083 0 19976 32 22 10 18 0 8 6 kqueuepl 184 226 0 213 4 3 1 4 0 8 0 pipepl 304 207 0 180 8 5 3 8 0 8 0 fdescpl 448 782 0 756 5 1 4 5 0 8 0 filepl 120 4328 0 4099 18 9 9 16 0 8 1 lockfpl 104 262 0 260 1 0 1 1 0 8 0 lockfspl 48 94 0 92 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 73 0 57 1 0 1 1 0 8 0 ucredpl 104 609 0 596 1 0 1 1 0 8 0 zombiepl 144 937 0 937 2 1 1 1 0 8 1 processpl 1152 819 0 757 5 0 5 5 0 8 0 procpl 664 1511 0 1441 8 1 7 7 0 8 0 sockpl 552 815 0 769 10 3 7 7 0 8 3 mcl64k 65536 99 0 99 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 8 0 8 2 1 1 1 0 8 1 mcl4k 4096 2998 0 2945 15 7 8 15 0 8 0 mcl2k 2048 935 0 931 4 2 2 3 0 8 1 mtagpl 96 11 0 5 1 0 1 1 0 8 0 mbufpl 256 8650 0 8444 19 4 15 16 0 8 1 bufpl 280 3619 0 120 250 0 250 250 0 8 0 anonpl 24 148429 0 145418 44 9 35 44 0 187 10 amapchunkpl 152 21258 0 20853 32 5 27 27 0 158 5 amappl16 200 2657 0 2626 21 10 11 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 112 0 102 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1394 0 1368 3 1 2 3 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 23 0 23 1 1 0 1 0 8 0 amappl9 144 250 0 250 1 1 0 1 0 8 0 amappl8 136 22 0 21 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 178 0 174 1 0 1 1 0 8 0 amappl5 112 115 0 107 1 0 1 1 0 8 0 amappl4 104 280 0 261 1 0 1 1 0 8 0 amappl3 96 3500 0 3420 3 0 3 3 0 8 0 amappl2 88 1032 0 964 2 0 2 2 0 8 0 amappl1 80 10083 0 9551 13 0 13 13 0 8 0 amappl 88 5755 0 5614 5 0 5 5 0 92 0 uvmvnodes 80 2694 0 0 55 0 55 55 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 19 0 5 1 0 1 1 0 8 0 uaddrrnd 24 782 0 756 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 782 0 756 1 0 1 1 0 8 0 vmmpekpl 168 8224 0 8183 3 0 3 3 0 8 0 vmmpepl 168 55940 0 54250 98 1 97 97 0 357 9 vmsppl 368 781 0 756 4 1 3 4 0 8 0 rwobjpl 40 20193 0 16658 37 0 37 37 0 8 0 pdppl 4096 1570 0 1512 104 38 66 82 0 8 8 pvpl 32 367806 0 359905 103 5 98 102 0 265 15 pmappl 216 781 0 756 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 396 0 63 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(ffffffff83354763) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339304d,ffffffff8336ec9a,84,ffffffff833e40b3) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(81,21) at rtmap_grow+0x1f2 rtable_add(80) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(80) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(80,ffff800001461000) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fda460,8020699f,ffff80003c9673f0,ffff80003c9982c8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c9982c8,ffff80003c9675c0,ffff80003c967510) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9675c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9675c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54857972020, 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(ffffffff83354763) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339304d,ffffffff8336ec9a,84,ffffffff833e40b3) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(81,21) at rtmap_grow+0x1f2 rtable_add(80) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(80) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(80,ffff800001461000) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fda460,8020699f,ffff80003c9673f0,ffff80003c9982c8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c9982c8,ffff80003c9675c0,ffff80003c967510) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c9675c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9675c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54857972020, count: -10