panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 131 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *166979 1256 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342c5b4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833dd822,ffffffff833a4ca7,83,ffffffff83424027) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(98,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(97) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(97,ffff80000146b000) at if_createrdomain+0x40 sys/net/if.c:1966 ifioctl(ffff800010fc2cd8,8020699f,ffff800038117c80,ffff80002a7acf78) at ifioctl+0x19be sys/net/if.c:2315 sys_ioctl(ffff80002a7acf78,ffff800038117e60,ffff800038117db0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff800038117e60) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038117e60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8562ed9c9f0, 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 131 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342c5b4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833dd822,ffffffff833a4ca7,83,ffffffff83424027) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(98,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(97) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(97,ffff80000146b000) at if_createrdomain+0x40 sys/net/if.c:1966 ifioctl(ffff800010fc2cd8,8020699f,ffff800038117c80,ffff80002a7acf78) at ifioctl+0x19be sys/net/if.c:2315 sys_ioctl(ffff80002a7acf78,ffff800038117e60,ffff800038117db0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff800038117e60) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038117e60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8562ed9c9f0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000381179b0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7acf78 r8 0 r9 0x8080808080808080 r10 0xcd15e03ef20a1b5c r11 0x8c95d0e099144017 r12 0 r13 0x17 r14 0 r15 0x1 rip 0xffffffff8238e035 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000381179a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=166979 pid=1256 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=0xffff80002a7ad498,0xffffffff839cabf0 process=0xffff8000ffff4db0 user=0xffff800038112000, vmspace=0xfffffd806c2a72e0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 1256 22439 8303 0 3 0x80 fsleep syz-executor 1256 341818 8303 0 2 0x4000000 syz-executor * 1256 166979 8303 0 7 0x4000000 syz-executor 6046 166737 52142 0 3 0x80 fsleep syz-executor 6046 396667 52142 0 3 0x4000080 piperd syz-executor 61715 248863 13169 0 3 0x80 fsleep syz-executor 61715 141055 13169 0 3 0x4000080 piperd syz-executor 10684 145420 54792 0 3 0x80 fsleep syz-executor 10684 346460 54792 0 3 0x4000080 ttyout syz-executor 16211 105301 57656 0 3 0x80 fsleep syz-executor 16211 34323 57656 0 3 0x4000080 ttyin syz-executor 54792 131805 37033 0 2 0xc82 syz-executor 93621 220429 37033 0 3 0x82 wait syz-executor 5232 393808 0 0 3 0x14200 acct acct 66837 302326 1 0 3 0x100083 ttyin getty 13169 101126 37033 0 2 0xc82 syz-executor 57656 305115 37033 0 3 0x82 nanoslp syz-executor 10057 230441 0 0 3 0x14200 bored sosplice 52142 397573 37033 0 3 0x82 nanoslp syz-executor 8303 390984 37033 0 3 0x82 nanoslp syz-executor 48590 378592 37033 0 3 0x82 wait syz-executor 10977 319588 37033 0 3 0x82 wait syz-executor 37033 39288 45241 0 3 0x82 kqread syz-executor 45241 75132 9092 0 3 0x10008a sigsusp ksh 9092 218788 30049 0 3 0x98 kqread sshd-session 30049 48238 42692 0 3 0x92 kqread sshd-session 42692 56090 1 0 3 0x88 kqread sshd 31309 221889 94027 73 3 0x1100090 kqread syslogd 94027 254959 1 0 3 0x100082 sbwait syslogd 20344 478769 1 0 3 0x100080 kqread resolvd 43461 17174 93067 77 3 0x100092 kqread dhcpleased 39840 16156 93067 77 3 0x100092 kqread dhcpleased 93067 111565 1 0 3 0x80 kqread dhcpleased 65473 197074 0 0 3 0x14200 bored smr 46348 389133 0 0 2 0x14200 zerothread 2536 19987 0 0 3 0x14200 aiodoned aiodoned 99520 502541 0 0 3 0x14200 syncer update 96408 406255 0 0 3 0x14200 cleaner cleaner 50253 249295 0 0 3 0x14200 reaper reaper 13723 168694 0 0 3 0x14200 pgdaemon pagedaemon 30195 226424 0 0 3 0x14200 bored viomb 49931 366928 0 0 3 0x40014200 acpi0 acpi0 59046 395136 0 0 3 0x14200 bored softnet3 39242 147805 0 0 3 0x14200 bored softnet2 45131 437489 0 0 3 0x14200 bored softnet1 57295 16726 0 0 3 0x14200 bored softnet0 6926 511016 0 0 3 0x14200 bored systqmp 83285 308454 0 0 3 0x14200 bored systq 86610 231331 0 0 3 0x40014200 tmoslp softclock 4189 365531 0 0 3 0x40014200 idle0 1 105411 0 0 3 0x80082 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 10188 11061K 12176K 166960K 13968 0 pcb 18 16K 18K 166960K 443 0 rtable 182 12K 12K 166960K 718 0 pf 37 14K 22K 166960K 156 0 ifaddr 36 6K 8K 166960K 123 0 ifgroup 50 2K 2K 166960K 192 0 sysctl 4 1K 9K 166960K 13 0 counters 32 17K 18K 166960K 105 0 ioctlops 0 0K 4K 166960K 344 0 iov 0 0K 16K 166960K 168 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1592 100K 101K 166960K 3561 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 6K 166960K 29 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 63 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 1761 0 sigio 0 0K 0K 166960K 29 0 proc 60 59K 116K 166960K 793 0 subproc 72 4K 4K 166960K 120 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 265 0 in_multi 74 5K 7K 166960K 210 0 ether_multi 1 0K 0K 166960K 14 0 mrt 1 0K 0K 166960K 20 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 2K 166960K 687 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 143K 158K 166960K 17107 0 UVM aobj 35 4K 4K 166960K 37 0 pinsyscall 39 78K 96K 166960K 2921 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 107 0 NDP 11 0K 1K 166960K 85 0 temp 79 8688K 8807K 166960K 81652 0 kqueue 14 22K 34K 166960K 342 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 233 0 230 2 1 1 2 0 8 0 rtentry 136 208 0 135 4 0 4 4 0 8 0 unpcb 144 1284 0 1268 14 5 9 11 0 8 8 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 670 0 666 10 6 4 7 0 8 3 arp 88 31 0 15 1 0 1 1 0 8 0 ipq 40 11 0 5 1 0 1 1 0 8 0 ipqe 40 52 0 44 1 0 1 1 0 8 0 inpcb 328 2516 0 2507 24 17 7 15 0 8 6 ip6q 72 6 0 4 1 0 1 1 0 8 0 ip6af 40 15 0 10 1 0 1 1 0 8 0 nd6 104 46 0 30 1 0 1 1 0 8 0 pkpcb 40 15 0 15 2 1 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1072 53 0 53 1 0 1 1 0 8 1 pppxif 1384 7 0 7 2 1 1 1 0 8 1 pfstscr 40 2 0 2 2 1 1 1 0 8 1 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 4 2 1 1 1 0 8 1 pfstate 384 2 0 2 2 1 1 1 0 8 1 pfrule 1344 10 0 7 1 0 1 1 0 8 0 rttmr 136 5 0 5 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1032 0 709 29 4 25 29 0 8 3 art_table 32 1034 0 709 4 0 4 4 0 8 0 art_node 16 203 0 137 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 7 1 0 1 1 0 8 0 semapl 112 59 0 49 1 0 1 1 0 8 0 shmpl 112 34 0 2 1 0 1 1 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 4793 0 3291 95 0 95 95 0 8 0 ffsino 248 4793 0 3291 95 0 95 95 0 8 0 nchpl 144 7195 0 6664 64 33 31 64 0 8 8 rtmask 32 10 0 10 2 1 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 26350 0 26350 2 1 1 2 0 8 1 kstatmem 264 116 0 94 3 1 2 3 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 20806 0 20806 9 7 2 8 1 8 2 plimitpl 152 234 0 218 1 0 1 1 0 8 0 sigapl 424 2019 0 1971 7 1 6 7 0 8 0 knotepl 120 83419 0 83367 42 32 10 18 0 8 8 kqueuepl 184 662 0 652 5 4 1 5 0 8 0 pipepl 296 437 0 408 7 2 5 5 0 8 2 fdescpl 440 1999 0 1969 5 1 4 5 0 8 0 filepl 120 15391 0 15169 24 6 18 18 0 8 8 lockfpl 104 712 0 710 2 1 1 2 0 8 0 lockfspl 48 236 0 234 1 0 1 1 0 8 0 sessionpl 144 30 0 22 1 0 1 1 0 8 0 pgrppl 48 60 0 44 1 0 1 1 0 8 0 ucredpl 104 2558 0 2545 1 0 1 1 0 8 0 zombiepl 144 2310 0 2307 1 0 1 1 0 8 0 processpl 1160 2019 0 1971 4 0 4 4 0 8 0 procpl 656 4430 0 4376 6 0 6 6 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 528 4151 0 4123 35 25 10 21 0 8 7 mcl64k 65536 35 0 35 2 1 1 1 0 8 1 mcl16k 16384 9 0 9 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 163 0 163 2 1 1 1 0 8 1 mcl4k 4096 4604 0 4552 14 6 8 14 0 8 1 mcl2k 2048 1997 0 1992 4 1 3 3 0 8 2 mtagpl 96 36 0 19 1 0 1 1 0 8 0 mbufpl 256 26043 0 25882 214 196 18 212 0 8 0 bufpl 280 5706 0 132 399 0 399 399 0 8 0 anonpl 24 266430 0 262415 85 36 49 62 0 187 19 amapchunkpl 152 56948 0 56418 46 9 37 37 0 158 14 amappl16 200 4841 0 4801 30 19 11 15 0 8 8 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 122 0 112 1 0 1 1 0 8 0 amappl13 176 23 0 23 1 1 0 1 0 8 0 amappl12 168 2706 0 2676 3 1 2 3 0 8 0 amappl11 160 61 0 51 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 241 0 241 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 120 0 109 1 0 1 1 0 8 0 amappl6 120 223 0 219 1 0 1 1 0 8 0 amappl5 112 139 0 132 1 0 1 1 0 8 0 amappl4 104 317 0 301 1 0 1 1 0 8 0 amappl3 96 11608 0 11498 4 0 4 4 0 8 0 amappl2 88 707 0 649 2 0 2 2 0 8 0 amappl1 80 15201 0 14652 14 1 13 14 0 8 0 amappl 88 16029 0 15863 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 9 0 9 2 1 1 1 0 8 1 dma128 128 255 0 255 2 1 1 1 0 8 1 dma64 64 7 0 7 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 36 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1999 0 1969 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1999 0 1969 1 0 1 1 0 8 0 vmmpekpl 168 15925 0 15877 3 0 3 3 0 8 0 vmmpepl 168 126613 0 124698 103 8 95 95 0 357 8 vmsppl 360 1998 0 1969 4 1 3 4 0 8 0 rwobjpl 32 37746 0 30927 57 0 57 57 0 8 1 pdppl 4096 4004 0 3938 116 48 68 82 0 8 2 pvpl 32 827934 0 818038 177 54 123 148 0 265 26 pmappl 216 1998 0 1969 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 501 0 269 13 5 8 13 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(ffffffff8342c5b4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833dd822,ffffffff833a4ca7,83,ffffffff83424027) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(98,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(97) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(97,ffff80000146b000) at if_createrdomain+0x40 sys/net/if.c:1966 ifioctl(ffff800010fc2cd8,8020699f,ffff800038117c80,ffff80002a7acf78) at ifioctl+0x19be sys/net/if.c:2315 sys_ioctl(ffff80002a7acf78,ffff800038117e60,ffff800038117db0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff800038117e60) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038117e60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8562ed9c9f0, 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(ffffffff8342c5b4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833dd822,ffffffff833a4ca7,83,ffffffff83424027) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(98,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(97) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(97,ffff80000146b000) at if_createrdomain+0x40 sys/net/if.c:1966 ifioctl(ffff800010fc2cd8,8020699f,ffff800038117c80,ffff80002a7acf78) at ifioctl+0x19be sys/net/if.c:2315 sys_ioctl(ffff80002a7acf78,ffff800038117e60,ffff800038117db0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff800038117e60) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038117e60) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8562ed9c9f0, count: -10