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 *382631 92750 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8341a6a9) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83457250,ffffffff83435bdb,84,ffffffff834a8e2e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff80000160d000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff8000015ea8b0,8020699f,ffff8000374e18f0,ffff80002a781780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a781780,ffff8000374e1ac0,ffff8000374e1a10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000374e1ac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000374e1ac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9322cb5b3e0, 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(ffffffff8341a6a9) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83457250,ffffffff83435bdb,84,ffffffff834a8e2e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff80000160d000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff8000015ea8b0,8020699f,ffff8000374e18f0,ffff80002a781780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a781780,ffff8000374e1ac0,ffff8000374e1a10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000374e1ac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000374e1ac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9322cb5b3e0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374e1620 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a781780 r8 0x101010101010101 r9 0x8080808080808080 r10 0x66f42cb516545878 r11 0x8905b7178487c42a r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff814ae9b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374e1610 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=382631 pid=92750 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7802c0,0xffff80002a781a28 process=0xffff8000ffff8918 user=0xffff8000374dc000, vmspace=0xfffffd806cb0d8b0 estcpu=22, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45150 174553 34112 0 2 0 syz-executor 45150 283027 34112 0 3 0x4000080 fsleep syz-executor 45150 223422 34112 0 3 0x4000080 fsleep syz-executor 45150 61192 34112 0 3 0x4000080 fsleep syz-executor 95376 430595 64395 0 3 0x80 nanoslp syz-executor 95376 118080 64395 0 3 0x4000080 nanoslp syz-executor 92750 216285 40657 0 2 0 syz-executor 92750 232561 40657 0 2 0x4000000 syz-executor *92750 382631 40657 0 7 0x4000000 syz-executor 470 492072 0 0 3 0x14200 acct acct 21258 133096 61905 0 3 0x80 nanoslp syz-executor 21258 169892 61905 0 3 0x4000080 tunread syz-executor 21258 433833 61905 0 3 0x4000080 fsleep syz-executor 61905 433139 9027 0 2 0x3 syz-executor 64395 122209 9027 0 2 0x3 syz-executor 79614 506817 9027 0 2 0x2 syz-executor 62421 93655 9027 0 2 0x3 syz-executor 40657 249902 9027 0 2 0x3 syz-executor 34112 154552 9027 0 3 0x82 nanoslp syz-executor 42717 26360 9027 0 2 0x2 syz-executor 67862 94585 9027 0 2 0x2 syz-executor 9027 179198 86485 0 3 0x82 kqread syz-executor 86485 82056 92489 0 3 0x10008a sigsusp ksh 92489 84404 2472 0 3 0x98 kqread sshd-session 2472 286147 28081 0 3 0x92 kqread sshd-session 50780 208902 1 0 3 0x100083 ttyin getty 28081 270331 1 0 3 0x88 kqread sshd 68309 134571 97075 73 3 0x1100090 kqread syslogd 97075 415392 1 0 3 0x100082 sbwait syslogd 3350 397351 1 0 3 0x100080 kqread resolvd 26992 435424 72778 77 3 0x100092 kqread dhcpleased 58747 486117 72778 77 3 0x100092 kqread dhcpleased 72778 105313 1 0 3 0x80 kqread dhcpleased 9866 124347 0 0 3 0x14200 bored smr 88824 296504 0 0 2 0x14200 zerothread 16549 276656 0 0 3 0x14200 aiodoned aiodoned 53069 91970 0 0 3 0x14200 syncer update 39693 57669 0 0 3 0x14200 cleaner cleaner 66686 4472 0 0 3 0x14200 reaper reaper 42706 319798 0 0 3 0x14200 pgdaemon pagedaemon 32648 104838 0 0 3 0x14200 bored viomb 15240 196541 0 0 3 0x40014200 acpi0 acpi0 28850 362850 0 0 3 0x14200 bored softnet0 38935 176799 0 0 3 0x14200 bored systqmp 76934 91051 0 0 3 0x14200 bored systq 66882 460641 0 0 2 0x40014200 softclock 43265 361518 0 0 3 0x40014200 idle0 1 28008 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 11040 12177K 12361K 166960K 12246 0 pcb 18 12K 12K 166960K 43 0 rtable 243 6K 6K 166960K 365 0 pf 34 13K 13K 166960K 34 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 44 0 iov 0 0K 12K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1300 82K 82K 166960K 1444 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 4 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 85K 166960K 224 0 sigio 0 0K 0K 166960K 3 0 proc 60 59K 83K 166960K 505 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 10 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 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 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 368 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 210 150K 165K 166960K 3777 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 37 74K 90K 166960K 1315 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 12 0K 2K 166960K 28 0 temp 42 9068K 9135K 166960K 7941 0 kqueue 16 22K 26K 166960K 32 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 47 0 43 1 0 1 1 0 8 0 rtentry 136 112 0 1 4 0 4 4 0 8 0 unpcb 144 72 0 55 1 0 1 1 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 36 0 32 1 0 1 1 0 8 0 arp 96 18 0 0 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 135 0 126 3 1 2 2 0 8 0 nd6 112 25 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfstscr 40 4 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 1 1 0 1 1 0 8 0 pfstkey 128 2 0 1 1 0 1 1 0 8 0 pfstate 384 2 0 0 1 0 1 1 0 8 0 pfrule 1360 3 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 456 0 0 29 0 29 29 0 8 0 art_table 40 457 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 1 2 1 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1721 0 259 92 0 92 92 0 8 0 ffsino 256 1721 0 259 92 0 92 92 0 8 0 nchpl 144 2030 0 333 63 0 63 63 0 8 0 vnodes 216 1856 0 0 104 0 104 104 0 8 0 namei 1024 5877 0 5877 1 0 1 1 0 8 1 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 7013 0 7013 8 7 1 8 1 8 1 plimitpl 152 33 0 17 1 0 1 1 0 8 0 sigapl 424 518 0 476 6 1 5 6 0 8 0 knotepl 120 6901 0 6852 25 15 10 25 0 8 8 kqueuepl 184 41 0 30 1 0 1 1 0 8 0 pipepl 304 132 0 104 3 0 3 3 0 8 0 fdescpl 448 504 0 476 4 0 4 4 0 8 0 filepl 120 1842 0 1621 8 0 8 8 0 8 0 lockfpl 104 40 0 38 1 0 1 1 0 8 0 lockfspl 48 17 0 15 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 139 0 127 1 0 1 1 0 8 0 zombiepl 144 530 0 527 2 1 1 1 0 8 0 processpl 1152 518 0 476 4 0 4 4 0 8 0 procpl 664 683 0 631 7 1 6 6 0 8 1 sockpl 552 259 0 229 3 0 3 3 0 8 0 mcl64k 65536 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 2622 0 2571 16 8 8 15 0 8 0 mcl2k 2048 186 0 184 1 0 1 1 0 8 0 mtagpl 96 5 0 4 2 1 1 1 0 8 0 mbufpl 256 4928 0 4769 11 0 11 11 0 8 0 bufpl 280 2457 0 102 169 0 169 169 0 8 0 anonpl 24 94195 0 91204 24 3 21 24 0 187 0 amapchunkpl 152 11306 0 10881 38 4 34 34 0 158 16 amappl16 200 1478 0 1455 4 2 2 4 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 410 0 409 1 0 1 1 0 8 0 amappl13 176 112 0 101 1 0 1 1 0 8 0 amappl12 168 744 0 718 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 269 0 269 1 1 0 1 0 8 0 amappl8 136 138 0 137 1 0 1 1 0 8 0 amappl7 128 145 0 134 1 0 1 1 0 8 0 amappl6 120 147 0 146 1 0 1 1 0 8 0 amappl5 112 88 0 81 1 0 1 1 0 8 0 amappl4 104 251 0 235 1 0 1 1 0 8 0 amappl3 96 2000 0 1903 4 0 4 4 0 8 1 amappl2 88 503 0 450 2 0 2 2 0 8 0 amappl1 80 9340 0 8797 13 1 12 13 0 8 0 amappl 88 3083 0 2936 5 0 5 5 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 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 256 0 256 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 504 0 476 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 504 0 476 1 0 1 1 0 8 0 vmmpekpl 168 5639 0 5609 2 0 2 2 0 8 0 vmmpepl 168 39546 0 37873 87 6 81 81 0 357 1 vmsppl 368 503 0 476 4 1 3 4 0 8 0 rwobjpl 40 13817 0 12890 10 0 10 10 0 8 0 pdppl 4096 1014 0 952 96 30 66 76 0 8 4 pvpl 32 234648 0 226854 80 3 77 77 0 265 3 pmappl 216 503 0 476 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 361 0 44 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(ffffffff8341a6a9) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83457250,ffffffff83435bdb,84,ffffffff834a8e2e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff80000160d000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff8000015ea8b0,8020699f,ffff8000374e18f0,ffff80002a781780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a781780,ffff8000374e1ac0,ffff8000374e1a10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000374e1ac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000374e1ac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9322cb5b3e0, 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(ffffffff8341a6a9) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83457250,ffffffff83435bdb,84,ffffffff834a8e2e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff80000160d000) at if_createrdomain+0x40 sys/net/if.c:2046 ifioctl(ffff8000015ea8b0,8020699f,ffff8000374e18f0,ffff80002a781780) at ifioctl+0x1be2 sys/net/if.c:2395 sys_ioctl(ffff80002a781780,ffff8000374e1ac0,ffff8000374e1a10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff8000374e1ac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000374e1ac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9322cb5b3e0, count: -10