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 *468507 18688 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83360c02) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c923,ffffffff8337d7dd,84,ffffffff833f2cd6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 route_output(fffffd806ecfb600,ffff800010fdd5a8) at route_output+0x564 sys/net/rtsock.c:766 route_send(ffff800010fdd5a8,fffffd806ecfb600,0,0) at route_send+0xd7 sys/net/rtsock.c:322 sosend(ffff800010fdd5a8,0,ffff80002ccff308,0,0,8) at sosend+0x804 sys/kern/uipc_socket.c:-1 sendit(ffff80002a7cd780,5,ffff80002ccff400,8,ffff80002ccff4a0) at sendit+0x5a5 sys/kern/uipc_syscalls.c:785 sys_sendto(ffff80002a7cd780,ffff80002ccff550,ffff80002ccff4a0) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:563 syscall(ffff80002ccff550) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ccff550) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb4542f69e0, count: 3 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(ffffffff83360c02) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c923,ffffffff8337d7dd,84,ffffffff833f2cd6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 route_output(fffffd806ecfb600,ffff800010fdd5a8) at route_output+0x564 sys/net/rtsock.c:766 route_send(ffff800010fdd5a8,fffffd806ecfb600,0,0) at route_send+0xd7 sys/net/rtsock.c:322 sosend(ffff800010fdd5a8,0,ffff80002ccff308,0,0,8) at sosend+0x804 sys/kern/uipc_socket.c:-1 sendit(ffff80002a7cd780,5,ffff80002ccff400,8,ffff80002ccff4a0) at sendit+0x5a5 sys/kern/uipc_syscalls.c:785 sys_sendto(ffff80002a7cd780,ffff80002ccff550,ffff80002ccff4a0) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:563 syscall(ffff80002ccff550) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ccff550) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb4542f69e0, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002ccfef20 rbx 0x21 rdx 0xffff8000014628c0 rcx 0 rax 0xffff80002a7cd780 r8 0x101010101010101 r9 0x8080808080808080 r10 0xff32f35e04f43919 r11 0x28f60c74de9f523b r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff827fc5b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002ccfef10 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=468507 pid=18688 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=81, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7cd4e8,0xffff80002a7cdcc0 process=0xffff8000ffffb618 user=0xffff80002ccfa000, vmspace=0xfffffd806c244180 estcpu=31, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41248 195788 5489 0 2 0 syz-executor 41486 30351 13181 0 2 0 syz-executor 41486 428955 13181 0 3 0x4000080 fsleep syz-executor 41041 223984 73210 0 2 0 syz-executor 81680 305950 38169 0 2 0 syz-executor 47731 113070 27089 0 2 0 syz-executor 47731 52239 27089 0 3 0x4000080 fsleep syz-executor 5554 122854 93639 0 2 0 syz-executor 5554 25840 93639 0 3 0x4000080 fsleep syz-executor 10590 303311 16579 0 4 0x82000 syz-executor 10590 23290 16579 0 2 0x4082000 syz-executor 10590 467786 16579 0 3 0x4002000 suspend syz-executor 18688 354623 34690 0 2 0 syz-executor 18688 71014 34690 0 2 0x4000000 syz-executor *18688 468507 34690 0 7 0x4000000 syz-executor 26317 173754 0 0 3 0x14280 nfsidl nfsio 28962 110103 0 0 3 0x14280 nfsidl nfsio 25119 183261 0 0 3 0x14280 nfsidl nfsio 45932 356787 0 0 3 0x14280 nfsidl nfsio 32437 266303 0 0 3 0x14280 nfsidl nfsio 14630 62814 0 0 3 0x14280 nfsidl nfsio 9958 513102 0 0 3 0x14280 nfsidl nfsio 88384 362134 0 0 3 0x14280 nfsidl nfsio 74067 241399 0 0 3 0x14280 nfsidl nfsio 66115 27104 0 0 3 0x14280 nfsidl nfsio 17316 410819 0 0 3 0x14280 nfsidl nfsio 26227 296445 0 0 3 0x14280 nfsidl nfsio 8637 165088 0 0 3 0x14280 nfsidl nfsio 74845 194285 0 0 3 0x14280 nfsidl nfsio 57256 509764 0 0 3 0x14280 nfsidl nfsio 57309 71617 0 0 3 0x14280 nfsidl nfsio 44070 388220 0 0 3 0x14280 nfsidl nfsio 33459 269351 0 0 3 0x14280 nfsidl nfsio 11816 98894 0 0 3 0x14280 nfsidl nfsio 65985 413855 0 0 3 0x14280 nfsidl nfsio 73210 424539 60356 0 3 0x82 nanoslp syz-executor 13181 514355 60356 0 3 0x82 nanoslp syz-executor 34690 145648 60356 0 3 0x82 nanoslp syz-executor 38169 265448 60356 0 3 0x82 nanoslp syz-executor 16579 399093 60356 0 3 0x82 nanoslp syz-executor 93639 143020 60356 0 3 0x82 nanoslp syz-executor 5489 474141 60356 0 3 0x82 nanoslp syz-executor 27089 23302 60356 0 3 0x82 nanoslp syz-executor 60356 139526 54128 0 3 0x82 kqread syz-executor 54128 51704 98831 0 3 0x10008a sigsusp ksh 98831 472232 64720 0 3 0x98 kqread sshd-session 64720 130411 8042 0 3 0x92 kqread sshd-session 36703 190996 1 0 3 0x100083 ttyin getty 8042 521644 1 0 3 0x88 kqread sshd 47260 403440 87551 73 3 0x1100090 kqread syslogd 87551 51302 1 0 3 0x100082 sbwait syslogd 85882 382412 1 0 3 0x100080 kqread resolvd 86064 322992 57077 77 3 0x100092 kqread dhcpleased 87332 413952 57077 77 3 0x100092 kqread dhcpleased 57077 216648 1 0 3 0x80 kqread dhcpleased 96074 82144 0 0 3 0x14200 bored smr 89629 489476 0 0 2 0x14200 zerothread 34117 271625 0 0 3 0x14200 aiodoned aiodoned 35604 95070 0 0 3 0x14200 syncer update 1483 380787 0 0 3 0x14200 cleaner cleaner 18534 22487 0 0 3 0x14200 reaper reaper 60877 367159 0 0 3 0x14200 pgdaemon pagedaemon 20881 152546 0 0 3 0x14200 bored viomb 48568 277855 0 0 3 0x40014200 acpi0 acpi0 71721 12739 0 0 3 0x14200 bored softnet0 30506 3596 0 0 3 0x14200 bored systqmp 48956 473011 0 0 3 0x14200 bored systq 81987 328555 0 0 3 0x40014200 tmoslp softclock 69976 320562 0 0 3 0x40014200 idle0 1 75450 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 10195 11051K 11355K 166960K 11418 0 pcb 17 13K 14K 166960K 140 0 rtable 244 7K 7K 166960K 438 0 pf 30 12K 13K 166960K 36 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 50 2K 2K 166960K 54 0 sysctl 3 1K 9K 166960K 7 0 counters 32 17K 18K 166960K 35 0 ioctlops 0 0K 4K 166960K 45 0 iov 0 0K 16K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1344 85K 85K 166960K 1431 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 239 0 proc 60 59K 100K 166960K 480 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 6 0 in_multi 99 7K 7K 166960K 101 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 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 367 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 221 151K 159K 166960K 3852 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 39 78K 96K 166960K 1309 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 11 0K 2K 166960K 29 0 temp 40 8643K 8707K 166960K 5839 0 kqueue 13 20K 28K 166960K 38 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 42 1 0 1 1 0 8 0 rtentry 136 114 0 5 4 0 4 4 0 8 0 unpcb 144 75 0 59 1 0 1 1 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 25 0 21 1 0 1 1 0 8 0 arp 96 19 0 2 1 0 1 1 0 8 0 inpcb 328 209 0 202 5 1 4 4 0 8 3 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 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 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 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 458 0 4 29 0 29 29 0 8 0 art_table 40 459 0 4 5 0 5 5 0 8 0 art_node 32 114 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 5 0 2 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1707 0 200 95 0 95 95 0 8 0 ffsino 256 1707 0 200 95 0 95 95 0 8 0 nchpl 144 2018 0 328 63 0 63 63 0 8 0 vnodes 216 1831 0 0 102 0 102 102 0 8 0 namei 1024 6106 0 6106 3 2 1 2 0 8 1 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 6628 0 6628 10 2 8 8 1 8 8 plimitpl 152 38 0 22 1 0 1 1 0 8 0 sigapl 424 536 0 473 9 1 8 8 0 8 0 knotepl 120 5977 0 5930 4 0 4 4 0 8 2 kqueuepl 184 110 0 101 4 0 4 4 0 8 3 pipepl 304 119 0 92 3 0 3 3 0 8 0 fdescpl 448 503 0 473 5 0 5 5 0 8 1 filepl 120 2050 0 1840 9 0 9 9 0 8 2 lockfpl 104 47 0 43 1 0 1 1 0 8 0 lockfspl 48 25 0 21 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 246 0 235 1 0 1 1 0 8 0 zombiepl 144 547 0 547 2 1 1 1 0 8 1 processpl 1152 536 0 473 5 0 5 5 0 8 0 procpl 664 711 0 641 8 1 7 7 0 8 0 sockpl 552 335 0 307 6 1 5 5 0 8 2 mcl64k 65536 14 0 14 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 2598 0 2543 15 5 10 15 0 8 2 mcl2k 2048 379 0 375 4 1 3 3 0 8 2 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5130 0 4950 18 1 17 17 0 8 4 bufpl 280 2373 0 118 162 0 162 162 0 8 0 anonpl 24 98571 0 95554 29 3 26 26 0 187 5 amapchunkpl 152 10901 0 10441 23 0 23 23 0 158 5 amappl16 200 1607 0 1586 6 4 2 5 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 6 0 6 1 1 0 1 0 8 0 amappl13 176 421 0 420 1 0 1 1 0 8 0 amappl12 168 849 0 810 2 0 2 2 0 8 0 amappl11 160 3 0 2 1 0 1 1 0 8 0 amappl10 152 69 0 59 1 0 1 1 0 8 0 amappl9 144 264 0 264 1 1 0 1 0 8 0 amappl8 136 26 0 25 1 0 1 1 0 8 0 amappl7 128 91 0 90 1 0 1 1 0 8 0 amappl6 120 274 0 263 1 0 1 1 0 8 0 amappl5 112 72 0 63 1 0 1 1 0 8 0 amappl4 104 381 0 357 1 0 1 1 0 8 0 amappl3 96 1772 0 1683 3 0 3 3 0 8 0 amappl2 88 627 0 557 2 0 2 2 0 8 0 amappl1 80 9368 0 8827 14 1 13 14 0 8 0 amappl 88 3142 0 2989 4 0 4 4 0 92 0 uvmvnodes 80 97 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 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 503 0 473 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 503 0 473 1 0 1 1 0 8 0 vmmpekpl 168 5899 0 5867 2 0 2 2 0 8 0 vmmpepl 168 39729 0 37937 91 6 85 85 0 357 7 vmsppl 368 502 0 473 4 1 3 4 0 8 0 rwobjpl 40 13998 0 13080 11 0 11 11 0 8 0 pdppl 4096 1012 0 946 106 40 66 82 0 8 0 pvpl 32 238825 0 230676 91 4 87 87 0 265 14 pmappl 216 502 0 473 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 388 0 54 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(ffffffff83360c02) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c923,ffffffff8337d7dd,84,ffffffff833f2cd6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 route_output(fffffd806ecfb600,ffff800010fdd5a8) at route_output+0x564 sys/net/rtsock.c:766 route_send(ffff800010fdd5a8,fffffd806ecfb600,0,0) at route_send+0xd7 sys/net/rtsock.c:322 sosend(ffff800010fdd5a8,0,ffff80002ccff308,0,0,8) at sosend+0x804 sys/kern/uipc_socket.c:-1 sendit(ffff80002a7cd780,5,ffff80002ccff400,8,ffff80002ccff4a0) at sendit+0x5a5 sys/kern/uipc_syscalls.c:785 sys_sendto(ffff80002a7cd780,ffff80002ccff550,ffff80002ccff4a0) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:563 syscall(ffff80002ccff550) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ccff550) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb4542f69e0, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83360c02) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c923,ffffffff8337d7dd,84,ffffffff833f2cd6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(6,21) at rtmap_grow+0x1f2 rtable_add(5) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(5) at rtable_add+0x289 sys/net/rtable.c:223 route_output(fffffd806ecfb600,ffff800010fdd5a8) at route_output+0x564 sys/net/rtsock.c:766 route_send(ffff800010fdd5a8,fffffd806ecfb600,0,0) at route_send+0xd7 sys/net/rtsock.c:322 sosend(ffff800010fdd5a8,0,ffff80002ccff308,0,0,8) at sosend+0x804 sys/kern/uipc_socket.c:-1 sendit(ffff80002a7cd780,5,ffff80002ccff400,8,ffff80002ccff4a0) at sendit+0x5a5 sys/kern/uipc_syscalls.c:785 sys_sendto(ffff80002a7cd780,ffff80002ccff550,ffff80002ccff4a0) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:563 syscall(ffff80002ccff550) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002ccff550) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbb4542f69e0, count: -12