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 * 46756 55557 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833503f6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ee9e,ffffffff8336c95a,84,ffffffff833e1ee4) 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,ffff80000146b800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014c51b0,8020699f,ffff80003c9673c0,ffff8000308fa020) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff8000308fa020,ffff80003c967590,ffff80003c9674e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c967590) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c967590) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad7d18e46b0, 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(ffffffff833503f6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ee9e,ffffffff8336c95a,84,ffffffff833e1ee4) 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,ffff80000146b800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014c51b0,8020699f,ffff80003c9673c0,ffff8000308fa020) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff8000308fa020,ffff80003c967590,ffff80003c9674e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c967590) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c967590) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad7d18e46b0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c9670f0 rbx 0x21 rdx 0 rcx 0 rax 0xffff8000308fa020 r8 0x101010101010101 r9 0x8080808080808080 r10 0x424df94919596ed5 r11 0xeac45b3e10d78a9f r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81f985d5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c9670e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=46756 pid=55557 tcnt=3 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=0xffff8000308fa550,0xffff8000308faa90 process=0xffff8000ffff9f98 user=0xffff80003c962000, vmspace=0xfffffd806b95e748 estcpu=35, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55557 255816 9759 0 3 0x80 fsleep syz-executor *55557 46756 9759 0 7 0x4000000 syz-executor 55557 240988 9759 0 2 0x4000000 syz-executor 38690 208650 14132 0 2 0xc80 syz-executor 38690 459754 14132 0 3 0x4000080 fsleep syz-executor 38690 127799 14132 0 3 0x4000080 fsleep syz-executor 38690 383118 14132 0 3 0x4000080 fsleep syz-executor 52315 479545 56057 0 3 0x80 fsleep syz-executor 52315 466910 56057 0 3 0x4000080 sbwait syz-executor 72766 391426 38470 0 3 0x80 fsleep syz-executor 72766 129714 38470 0 3 0x4000080 sbwait syz-executor 72766 326384 38470 0 3 0x4000080 fsleep syz-executor 64577 298667 19223 0 3 0x80 fsleep syz-executor 64577 97120 19223 0 3 0x4000080 ttyout syz-executor 90395 145053 99371 0 3 0x80 fsleep syz-executor 90395 140825 99371 0 3 0x4000080 sbwait syz-executor 34580 293954 74567 0 3 0x80 fsleep syz-executor 34580 396431 74567 0 3 0x4000080 kqread syz-executor 68224 445845 0 0 3 0x14200 bored sosplice 24520 435015 87075 0 3 0x82 wait syz-executor 14132 430860 87075 0 2 0xc82 syz-executor 74567 508873 87075 0 2 0xc82 syz-executor 9759 285633 87075 0 3 0x82 nanoslp syz-executor 19223 139315 87075 0 2 0xc82 syz-executor 56057 242127 87075 0 3 0x82 nanoslp syz-executor 38470 90242 87075 0 3 0x82 nanoslp syz-executor 99371 220573 87075 0 2 0xc82 syz-executor 87075 180430 35038 0 3 0x82 kqread syz-executor 35038 284978 46855 0 3 0x10008a sigsusp ksh 46855 28027 58257 0 3 0x98 kqread sshd-session 58257 97150 91900 0 3 0x92 kqread sshd-session 31759 154057 1 0 3 0x100083 ttyopn getty 91900 152138 1 0 3 0x88 kqread sshd 32169 294676 49825 73 3 0x1100090 kqread syslogd 49825 27609 1 0 3 0x100082 sbwait syslogd 46949 359872 1 0 3 0x100080 kqread resolvd 68833 37121 7459 77 2 0x100013 dhcpleased 26781 474198 7459 77 3 0x100092 kqread dhcpleased 7459 107149 1 0 3 0x80 kqread dhcpleased 19657 35495 0 0 3 0x14200 bored smr 20000 179271 0 0 2 0x14200 zerothread 89066 429033 0 0 3 0x14200 aiodoned aiodoned 35084 117869 0 0 3 0x14200 syncer update 94532 457914 0 0 3 0x14200 cleaner cleaner 42677 482347 0 0 3 0x14200 reaper reaper 35315 179899 0 0 3 0x14200 pgdaemon pagedaemon 95601 156363 0 0 3 0x14200 bored viomb 78458 273063 0 0 3 0x40014200 acpi0 acpi0 32866 220517 0 0 3 0x14200 bored softnet0 47613 348496 0 0 3 0x14200 bored systqmp 74229 68333 0 0 3 0x14200 bored systq 34516 322618 0 0 3 0x40014200 tmoslp softclock 13306 506454 0 0 3 0x40014200 idle0 1 104717 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 10171 11043K 11266K 166960K 11636 0 pcb 20 18K 20K 166960K 189 0 rtable 198 10K 10K 166960K 341 0 pf 31 13K 13K 166960K 43 0 ifaddr 42 7K 7K 166960K 54 0 ifgroup 50 2K 2K 166960K 63 0 sysctl 3 1K 9K 166960K 8 0 counters 32 17K 17K 166960K 39 0 ioctlops 0 0K 4K 166960K 64 0 iov 2 8K 24K 166960K 19 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1376 87K 87K 166960K 1551 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 77 0 dirhash 12 2K 3K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 367 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 91K 166960K 485 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 3 0K 0K 166960K 24 0 in_multi 100 7K 7K 166960K 113 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 367 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 227 151K 159K 166960K 4666 0 UVM aobj 9 2K 4K 166960K 10 0 pinsyscall 39 78K 94K 166960K 1399 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 22 0 NDP 11 0K 2K 166960K 32 0 temp 79 8648K 8775K 166960K 15084 0 kqueue 14 22K 28K 166960K 62 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 151 0 147 4 2 2 3 0 8 1 rtentry 136 104 0 20 4 0 4 4 0 8 0 unpcb 144 248 0 225 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 68 0 63 1 0 1 1 0 8 0 arp 96 10 0 0 1 0 1 1 0 8 0 inpcb 328 550 0 536 21 14 7 15 0 8 5 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 18 0 2 1 0 1 1 0 8 0 pkpcb 40 2 0 2 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 0 1 1 0 8 1 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 509 0 113 30 3 27 30 0 8 1 art_table 40 511 0 113 5 0 5 5 0 8 0 art_node 32 103 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 2 1 0 1 1 0 8 0 semapl 112 74 0 68 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 30 0 13 3 0 3 3 0 8 0 dino2pl 256 2002 0 502 95 0 95 95 0 8 0 ffsino 256 2002 0 502 95 0 95 95 0 8 0 nchpl 144 2519 0 843 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 vnodes 216 2199 0 0 123 0 123 123 0 8 0 namei 1024 7818 0 7818 2 1 1 1 0 8 1 kstatmem 264 32 0 10 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 8382 0 8382 8 7 1 8 1 8 1 plimitpl 152 111 0 92 1 0 1 1 0 8 0 sigapl 424 645 0 601 6 1 5 6 0 8 0 knotepl 120 12398 0 12348 10 7 3 10 0 8 1 kqueuepl 184 123 0 112 3 2 1 3 0 8 0 pipepl 304 181 0 154 8 0 8 8 0 8 5 fdescpl 448 631 0 601 5 1 4 5 0 8 0 filepl 120 3527 0 3297 15 4 11 12 0 8 3 lockfpl 104 98 0 96 1 0 1 1 0 8 0 lockfspl 48 40 0 38 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 14 1 0 1 1 0 8 0 ucredpl 104 367 0 356 1 0 1 1 0 8 0 zombiepl 144 659 0 658 1 0 1 1 0 8 0 processpl 1152 645 0 601 4 0 4 4 0 8 0 procpl 664 1039 0 984 5 0 5 5 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 552 1019 0 978 19 12 7 14 0 8 3 mcl64k 65536 50 0 50 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 2760 0 2708 16 8 8 15 0 8 1 mcl2k 2048 546 0 539 3 1 2 2 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 6457 0 6270 17 0 17 17 0 8 4 bufpl 280 3254 0 118 224 0 224 224 0 8 0 anonpl 24 99994 0 96788 33 1 32 32 0 187 11 amapchunkpl 152 14418 0 13927 29 2 27 27 0 158 6 amappl16 200 1277 0 1249 4 2 2 4 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 105 0 94 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1240 0 1210 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 16 0 15 1 0 1 1 0 8 0 amappl7 128 97 0 87 1 0 1 1 0 8 0 amappl6 120 165 0 161 1 0 1 1 0 8 0 amappl5 112 112 0 106 1 0 1 1 0 8 0 amappl4 104 266 0 250 1 0 1 1 0 8 0 amappl3 96 2503 0 2408 3 0 3 3 0 8 0 amappl2 88 854 0 780 2 0 2 2 0 8 0 amappl1 80 8874 0 8319 13 1 12 13 0 8 0 amappl 88 3995 0 3832 5 0 5 5 0 92 0 uvmvnodes 80 2199 0 0 45 0 45 45 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 631 0 601 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 631 0 601 1 0 1 1 0 8 0 vmmpekpl 168 6596 0 6566 2 0 2 2 0 8 0 vmmpepl 168 44289 0 42397 85 1 84 84 0 357 1 vmsppl 368 630 0 601 4 1 3 4 0 8 0 rwobjpl 40 15845 0 12785 31 0 31 31 0 8 0 pdppl 4096 1268 0 1202 96 30 66 78 0 8 0 pvpl 32 267014 0 258425 103 7 96 96 0 265 24 pmappl 216 630 0 601 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 378 0 50 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(ffffffff833503f6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ee9e,ffffffff8336c95a,84,ffffffff833e1ee4) 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,ffff80000146b800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014c51b0,8020699f,ffff80003c9673c0,ffff8000308fa020) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff8000308fa020,ffff80003c967590,ffff80003c9674e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c967590) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c967590) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad7d18e46b0, 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(ffffffff833503f6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338ee9e,ffffffff8336c95a,84,ffffffff833e1ee4) 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,ffff80000146b800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014c51b0,8020699f,ffff80003c9673c0,ffff8000308fa020) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff8000308fa020,ffff80003c967590,ffff80003c9674e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c967590) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c967590) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xad7d18e46b0, count: -10