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 *447634 21224 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83336ac0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833786d7,ffffffff83354ecd,84,ffffffff833c99c8) 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,ffff80000145a000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdf150,8020699f,ffff80003ca5d920,ffff800038d5ea88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800038d5ea88,ffff80003ca5daf0,ffff80003ca5da40) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca5daf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca5daf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94405786fc0, 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(ffffffff83336ac0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833786d7,ffffffff83354ecd,84,ffffffff833c99c8) 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,ffff80000145a000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdf150,8020699f,ffff80003ca5d920,ffff800038d5ea88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800038d5ea88,ffff80003ca5daf0,ffff80003ca5da40) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca5daf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca5daf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94405786fc0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003ca5d650 rbx 0x21 rdx 0 rcx 0 rax 0xffff800038d5ea88 r8 0x101010101010101 r9 0x8080808080808080 r10 0xc7290cf83a28fdeb r11 0x4071bc927ef3d5e1 r12 0 r13 0x7 r14 0 r15 0x1 rip 0xffffffff812ed585 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003ca5d640 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=447634 pid=21224 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=0xffff800038d5f780,0xffff800038d5fa28 process=0xffff80003ca55230 user=0xffff80003ca58000, vmspace=0xfffffd806ba5cb90 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21224 417046 43144 0 3 0x80 fsleep syz-executor *21224 447634 43144 0 7 0x4000000 syz-executor 21224 39511 43144 0 2 0x4000000 syz-executor 29940 418492 50117 0 2 0 syz-executor 29940 209143 50117 0 3 0x4000080 fsleep syz-executor 70002 188322 58636 0 2 0xc80 syz-executor 70002 102691 58636 0 3 0x4000080 fsleep syz-executor 70002 168506 58636 0 3 0x4000080 fsleep syz-executor 70002 131872 58636 0 3 0x4000080 fsleep syz-executor 35553 240013 28965 0 2 0 syz-executor 35553 282044 28965 0 3 0x4000080 fsleep syz-executor 45561 55148 76257 0 2 0 syz-executor 45561 340544 76257 0 3 0x4000080 fsleep syz-executor 45561 209628 76257 0 3 0x4000080 fsleep syz-executor 45561 105576 76257 0 2 0x4000000 syz-executor 87632 282986 77029 0 3 0 vmmaplk syz-executor 87632 260082 77029 0 3 0x4000080 fsleep syz-executor 87632 346331 77029 0 2 0x4000000 syz-executor 72810 130325 0 0 3 0x14280 nfsidl nfsio 91053 350882 0 0 3 0x14280 nfsidl nfsio 1301 469302 0 0 3 0x14280 nfsidl nfsio 68382 502535 0 0 3 0x14280 nfsidl nfsio 46842 397740 0 0 3 0x14280 nfsidl nfsio 37904 183278 0 0 3 0x14280 nfsidl nfsio 80323 235112 0 0 3 0x14280 nfsidl nfsio 105 150488 0 0 3 0x14280 nfsidl nfsio 25261 65824 0 0 3 0x14280 nfsidl nfsio 53479 330752 0 0 3 0x14280 nfsidl nfsio 53364 33292 0 0 3 0x14280 nfsidl nfsio 52710 225324 0 0 3 0x14280 nfsidl nfsio 98810 381577 0 0 3 0x14280 nfsidl nfsio 59681 477153 0 0 3 0x14280 nfsidl nfsio 17190 42319 0 0 3 0x14280 nfsidl nfsio 94131 3443 0 0 3 0x14280 nfsidl nfsio 63263 10569 0 0 3 0x14280 nfsidl nfsio 65983 427953 0 0 3 0x14280 nfsidl nfsio 48420 519971 0 0 3 0x14280 nfsidl nfsio 65017 192618 0 0 3 0x14280 nfsidl nfsio 83657 161539 0 0 3 0x14200 bored sosplice 50117 463971 38719 0 3 0x82 nanoslp syz-executor 50622 347469 38719 0 2 0x2 syz-executor 43144 185752 38719 0 2 0xc82 syz-executor 76257 90472 38719 0 2 0xc82 syz-executor 58636 40149 38719 0 2 0xc82 syz-executor 77029 388780 38719 0 2 0xc82 syz-executor 28965 62500 38719 0 2 0xc82 syz-executor 82058 211502 38719 0 3 0x82 nanoslp syz-executor 38719 95005 81799 0 2 0x2 syz-executor 81799 217760 19381 0 3 0x10008a sigsusp ksh 19381 337753 26374 0 3 0x98 kqread sshd-session 26374 214005 23975 0 3 0x92 kqread sshd-session 62199 50459 1 0 3 0x100083 ttyopn getty 23975 6867 1 0 3 0x88 kqread sshd 42871 103777 91274 73 3 0x1100090 kqread syslogd 91274 177990 1 0 3 0x100082 sbwait syslogd 67317 124069 1 0 3 0x100080 kqread resolvd 49389 504589 97219 77 3 0x100092 kqread dhcpleased 82929 349476 97219 77 3 0x100092 kqread dhcpleased 97219 157599 1 0 3 0x80 kqread dhcpleased 8480 384611 0 0 3 0x14200 bored smr 9142 70418 0 0 2 0x14200 zerothread 5945 517889 0 0 3 0x14200 aiodoned aiodoned 33191 273303 0 0 3 0x14200 syncer update 84768 321625 0 0 3 0x14200 cleaner cleaner 81400 430145 0 0 3 0x14200 reaper reaper 96008 216149 0 0 3 0x14200 pgdaemon pagedaemon 22076 186019 0 0 3 0x14200 bored viomb 57858 198175 0 0 3 0x40014200 acpi0 acpi0 88782 108491 0 0 3 0x14200 bored softnet7 31163 272323 0 0 3 0x14200 bored softnet6 16504 396487 0 0 3 0x14200 bored softnet5 58594 68469 0 0 3 0x14200 bored softnet4 43250 20595 0 0 3 0x14200 bored softnet3 55013 224518 0 0 3 0x14200 bored softnet2 16890 200206 0 0 3 0x14200 bored softnet1 28293 119221 0 0 3 0x14200 bored softnet0 67803 47429 0 0 3 0x14200 bored systqmp 35754 12600 0 0 3 0x14200 bored systq 10676 354038 0 0 2 0x40014200 softclock 46725 24168 0 0 3 0x40014200 idle0 1 228172 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 10220 11122K 12653K 166960K 12818 0 pcb 18 16K 18K 166960K 213 0 rtable 250 10K 10K 166960K 359 0 pf 34 13K 20K 166960K 164 0 ifaddr 45 8K 9K 166960K 77 0 ifgroup 53 2K 2K 166960K 112 0 sysctl 4 1K 9K 166960K 12 0 counters 32 17K 18K 166960K 69 0 ioctlops 0 0K 4K 166960K 214 0 iov 0 0K 24K 166960K 41 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1461 92K 92K 166960K 2347 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 21 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 133 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 236K 166960K 797 0 sigio 0 0K 0K 166960K 37 0 proc 60 59K 124K 166960K 534 0 subproc 72 4K 4K 166960K 73 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 274 0 in_multi 102 7K 7K 166960K 120 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 571 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 238 145K 159K 166960K 8329 0 UVM aobj 99 14K 14K 166960K 100 0 pinsyscall 38 76K 96K 166960K 1803 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 70 0 NDP 11 0K 2K 166960K 49 0 temp 56 8639K 8891K 166960K 57008 0 kqueue 14 22K 28K 166960K 174 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 205 0 202 3 0 3 3 0 8 2 rtentry 136 113 0 9 4 0 4 4 0 8 0 unpcb 144 932 0 916 7 6 1 7 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 314 0 305 9 4 5 5 0 8 4 arp 88 14 0 1 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 3 0 3 1 0 1 1 0 8 1 inpcb 328 948 0 936 16 11 5 13 0 8 3 ip6q 72 10 0 1 1 0 1 1 0 8 0 ip6af 40 12 0 3 1 0 1 1 0 8 0 nd6 104 20 0 2 1 0 1 1 0 8 0 pkpcb 40 7 0 7 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 32 0 32 2 1 1 1 0 8 1 pppxif 1384 3 0 3 2 1 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 15 0 12 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 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 34 0 33 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 485 0 37 30 0 30 30 0 8 1 art_table 40 487 0 37 5 0 5 5 0 8 0 art_node 32 113 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 39 1 0 1 1 0 8 0 semapl 112 130 0 120 1 0 1 1 0 8 0 shmpl 112 97 0 1 3 0 3 3 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3016 0 1526 95 0 95 95 0 8 0 ffsino 256 3016 0 1526 95 0 95 95 0 8 0 nchpl 144 4064 0 2387 63 0 63 63 0 8 0 rtmask 32 7 0 7 1 1 0 1 0 8 0 uvmvnodes 80 3592 0 0 74 0 74 74 0 8 0 vnodes 216 3592 0 0 200 0 200 200 0 8 0 namei 1024 15041 0 15041 2 1 1 2 0 8 1 kstatmem 264 66 0 44 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 15896 0 15896 8 7 1 8 1 8 1 plimitpl 152 356 0 339 1 0 1 1 0 8 0 sigapl 424 1076 0 1006 9 1 8 8 0 8 0 knotepl 120 598482 0 598433 23 12 11 15 0 8 8 kqueuepl 184 281 0 269 3 2 1 3 0 8 0 pipepl 304 141 0 114 3 0 3 3 0 8 0 fdescpl 448 1034 0 1005 5 1 4 5 0 8 0 filepl 120 8048 0 7828 24 10 14 18 0 8 5 lockfpl 104 216 0 214 1 0 1 1 0 8 0 lockfspl 48 99 0 97 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 103 0 87 1 0 1 1 0 8 0 ucredpl 104 2097 0 2085 1 0 1 1 0 8 0 zombiepl 144 1087 0 1086 1 0 1 1 0 8 0 processpl 1152 1076 0 1006 7 1 6 6 0 8 0 procpl 664 2034 0 1952 8 0 8 8 0 8 0 sockpl 552 2132 0 2100 27 16 11 15 0 8 8 mcl64k 65536 93 0 93 2 1 1 1 0 8 1 mcl8k 8192 14 0 14 2 1 1 1 0 8 1 mcl4k 4096 3313 0 3261 13 5 8 13 0 8 1 mcl2k 2048 1058 0 1048 3 1 2 3 0 8 0 mtagpl 96 14 0 7 1 0 1 1 0 8 0 mbufpl 256 10916 0 10748 20 0 20 20 0 8 7 bufpl 280 6236 0 119 437 0 437 437 0 8 0 anonpl 24 194411 0 185617 93 16 77 93 0 187 0 amapchunkpl 152 28758 0 28171 42 11 31 37 0 158 6 amappl16 200 4194 0 3914 34 7 27 34 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 111 0 101 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 1 1 1 0 8 1 amappl12 168 1646 0 1617 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 288 0 288 1 1 0 1 0 8 0 amappl8 136 41 0 39 1 0 1 1 0 8 0 amappl7 128 122 0 110 1 0 1 1 0 8 0 amappl6 120 185 0 182 1 0 1 1 0 8 0 amappl5 112 142 0 135 1 0 1 1 0 8 0 amappl4 104 294 0 279 1 0 1 1 0 8 0 amappl3 96 5381 0 5273 4 0 4 4 0 8 0 amappl2 88 630 0 573 2 0 2 2 0 8 0 amappl1 80 10947 0 10397 14 1 13 14 0 8 0 amappl 88 7568 0 7394 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 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 86 0 85 1 0 1 1 0 8 0 aobjpl 72 99 0 1 2 0 2 2 0 8 0 uaddrrnd 24 1034 0 1005 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1034 0 1005 1 0 1 1 0 8 0 vmmpekpl 168 9433 0 9402 2 0 2 2 0 8 0 vmmpepl 168 70952 0 68826 110 7 103 110 0 357 0 vmsppl 368 1033 0 1005 4 1 3 4 0 8 0 rwobjpl 40 24609 0 19802 49 0 49 49 0 8 0 pdppl 4096 2074 0 2010 106 40 66 82 0 8 2 pvpl 32 490627 0 476610 193 30 163 180 0 265 14 pmappl 216 1033 0 1005 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 397 0 58 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(ffffffff83336ac0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833786d7,ffffffff83354ecd,84,ffffffff833c99c8) 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,ffff80000145a000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdf150,8020699f,ffff80003ca5d920,ffff800038d5ea88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800038d5ea88,ffff80003ca5daf0,ffff80003ca5da40) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca5daf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca5daf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94405786fc0, 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(ffffffff83336ac0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833786d7,ffffffff83354ecd,84,ffffffff833c99c8) 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,ffff80000145a000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fdf150,8020699f,ffff80003ca5d920,ffff800038d5ea88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff800038d5ea88,ffff80003ca5daf0,ffff80003ca5da40) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca5daf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca5daf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94405786fc0, count: -10