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 *466578 45888 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83406655) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7e7b,ffffffff83381d83,83,ffffffff83400a5f) at __assert+0x29 rtmap_grow(6,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(5) at rtable_add+0x279 route_output(fffffd806551bf00,ffff800010fde850) at route_output+0x525 sys/net/rtsock.c:785 route_send(ffff800010fde850,fffffd806551bf00,0,0) at route_send+0xd7 sys/net/rtsock.c:342 sosend(ffff800010fde850,0,ffff80003c98afb8,0,0,0) at sosend+0x824 sendit(ffff80002a8e4ce8,3,ffff80003c98b0b0,0,ffff80003c98b160) at sendit+0x721 sys/kern/uipc_syscalls.c:779 sys_sendto(ffff80002a8e4ce8,ffff80003c98b210,ffff80003c98b160) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:557 syscall(ffff80003c98b210) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9893b219ba0, 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 131 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83406655) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7e7b,ffffffff83381d83,83,ffffffff83400a5f) at __assert+0x29 rtmap_grow(6,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(5) at rtable_add+0x279 route_output(fffffd806551bf00,ffff800010fde850) at route_output+0x525 sys/net/rtsock.c:785 route_send(ffff800010fde850,fffffd806551bf00,0,0) at route_send+0xd7 sys/net/rtsock.c:342 sosend(ffff800010fde850,0,ffff80003c98afb8,0,0,0) at sosend+0x824 sendit(ffff80002a8e4ce8,3,ffff80003c98b0b0,0,ffff80003c98b160) at sendit+0x721 sys/kern/uipc_syscalls.c:779 sys_sendto(ffff80002a8e4ce8,ffff80003c98b210,ffff80003c98b160) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:557 syscall(ffff80003c98b210) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9893b219ba0, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c98abd0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a8e4ce8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4c4540bbb2377e2a r11 0x33b91e561074d066 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff82f0a865 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c98abc0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=466578 pid=45888 tcnt=2 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=0xffff80002a8e5208,0xffffffff838b0c50 process=0xffff8000ffff62d8 user=0xffff80003c986000, vmspace=0xfffffd8066acf180 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45888 182566 54175 0 2 0 syz-executor *45888 466578 54175 0 7 0x4000000 syz-executor 9873 416559 67679 0 2 0 syz-executor 9873 464960 67679 0 3 0x4000080 fsleep syz-executor 67435 200757 9339 0 2 0 syz-executor 67435 341808 9339 0 3 0x4000080 fsleep syz-executor 71677 15574 51212 0 2 0 syz-executor 71677 484747 51212 0 2 0x4000000 syz-executor 36509 337743 73756 0 2 0 syz-executor 36509 385852 73756 0 3 0x4000080 ttyout syz-executor 36509 337089 73756 0 2 0x4000000 syz-executor 36509 192579 73756 0 2 0x4000000 syz-executor 76199 233394 25192 0 2 0x480 syz-executor 76199 121841 25192 0 3 0x4000080 fsleep syz-executor 76199 26836 25192 0 3 0x4000080 fsleep syz-executor 76199 117092 25192 0 2 0x4000000 syz-executor 56793 272427 7297 0 2 0 syz-executor 56793 4483 7297 0 2 0x4000000 syz-executor 56793 206619 7297 0 3 0x4000080 fsleep syz-executor 56793 71144 7297 0 3 0x4000080 fsleep syz-executor 54175 91981 72933 0 3 0x82 nanoslp syz-executor 22175 10382 0 0 3 0x14280 nfsidl nfsio 5860 285303 0 0 3 0x14280 nfsidl nfsio 87595 324167 0 0 3 0x14280 nfsidl nfsio 76169 46980 0 0 3 0x14280 nfsidl nfsio 48038 337025 0 0 3 0x14280 nfsidl nfsio 15246 481981 0 0 3 0x14280 nfsidl nfsio 78362 321481 0 0 3 0x14280 nfsidl nfsio 54807 98592 0 0 3 0x14280 nfsidl nfsio 7201 146803 0 0 3 0x14280 nfsidl nfsio 17370 157901 0 0 3 0x14280 nfsidl nfsio 49232 430063 0 0 3 0x14280 nfsidl nfsio 96423 427264 0 0 3 0x14280 nfsidl nfsio 68357 175830 0 0 3 0x14280 nfsidl nfsio 14836 500556 0 0 3 0x14280 nfsidl nfsio 39867 101394 0 0 3 0x14280 nfsidl nfsio 92365 426294 0 0 3 0x14280 nfsidl nfsio 44997 386048 0 0 3 0x14280 nfsidl nfsio 90455 170991 0 0 3 0x14280 nfsidl nfsio 53170 214194 0 0 3 0x14280 nfsidl nfsio 6916 51366 0 0 3 0x14280 nfsidl nfsio 91073 380295 0 0 3 0x14200 acct acct 96493 16098 0 0 3 0x14200 bored sosplice 49386 136747 72933 0 2 0x2 syz-executor 7297 10334 72933 0 3 0x82 nanoslp syz-executor 9339 332265 72933 0 3 0x82 nanoslp syz-executor 67679 358770 72933 0 3 0x82 nanoslp syz-executor 25192 341070 72933 0 3 0x82 nanoslp syz-executor 51212 55945 72933 0 3 0x82 nanoslp syz-executor 73756 253424 72933 0 3 0x82 nanoslp syz-executor 72933 401467 23056 0 3 0x82 kqread syz-executor 23056 124429 92828 0 3 0x10008a sigsusp ksh 92828 163927 44786 0 3 0x98 kqread sshd-session 44786 382772 80568 0 3 0x92 kqread sshd-session 87078 463201 1 0 3 0x100083 ttyin getty 80568 142788 1 0 3 0x88 kqread sshd 3104 515508 88912 73 3 0x1100090 kqread syslogd 88912 399978 1 0 3 0x100082 sbwait syslogd 29282 230947 1 0 3 0x100080 kqread resolvd 56897 461795 10117 77 3 0x100092 kqread dhcpleased 47399 417061 10117 77 3 0x100092 kqread dhcpleased 10117 175300 1 0 3 0x80 kqread dhcpleased 88518 423244 0 0 3 0x14200 bored smr 93211 25890 0 0 2 0x14200 zerothread 3739 507894 0 0 3 0x14200 aiodoned aiodoned 23541 263851 0 0 3 0x14200 syncer update 9805 175836 0 0 3 0x14200 cleaner cleaner 62386 102700 0 0 3 0x14200 reaper reaper 38388 264741 0 0 3 0x14200 pgdaemon pagedaemon 2288 53499 0 0 3 0x14200 bored viomb 7996 99939 0 0 3 0x40014200 acpi0 acpi0 24871 523555 0 0 3 0x14200 bored softnet3 19304 196217 0 0 3 0x14200 bored softnet2 49179 32870 0 0 3 0x14200 bored softnet1 82478 130319 0 0 3 0x14200 bored softnet0 46770 120176 0 0 3 0x14200 bored systqmp 51342 380582 0 0 3 0x14200 bored systq 44951 245546 0 0 2 0x40014200 softclock 14818 489168 0 0 3 0x40014200 idle0 1 392794 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 10180 11179K 11433K 166960K 12578 0 pcb 17 12K 12K 166960K 90 0 rtable 183 6K 7K 166960K 447 0 pf 25 12K 14K 166960K 63 0 ifaddr 31 5K 8K 166960K 68 0 ifgroup 38 1K 2K 166960K 91 0 sysctl 3 1K 1K 166960K 3 0 counters 27 17K 18K 166960K 48 0 ioctlops 0 0K 4K 166960K 119 0 iov 0 0K 12K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1359 85K 86K 166960K 1765 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 146 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 625 0 sigio 0 0K 0K 166960K 19 0 proc 60 59K 116K 166960K 544 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 46 0 in_multi 69 4K 7K 166960K 132 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 568 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 224 72K 81K 166960K 7145 0 UVM aobj 19 2K 2K 166960K 21 0 pinsyscall 38 76K 96K 166960K 1683 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 8 0K 1K 166960K 41 0 temp 54 8678K 8750K 166960K 34189 0 kqueue 16 26K 28K 166960K 123 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 143 0 139 3 2 1 3 0 8 0 rtentry 128 137 0 56 4 0 4 4 0 8 0 unpcb 144 465 0 448 6 5 1 6 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 808 280 0 272 8 7 1 8 0 8 0 arp 88 24 0 8 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 344 695 0 683 14 12 2 14 0 8 0 nd6 104 31 0 14 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 11 0 11 2 1 1 1 0 8 1 pppxif 1384 6 0 6 2 1 1 1 0 8 1 pfrule 1344 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 536 0 217 29 5 24 29 0 8 0 art_table 32 537 0 217 4 0 4 4 0 8 0 art_node 16 133 0 64 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 142 0 132 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 32 0 15 3 0 3 3 0 8 0 dino2pl 256 2527 0 1030 95 0 95 95 0 8 0 ffsino 248 2527 0 1030 95 0 95 95 0 8 0 nchpl 144 3377 0 1693 63 0 63 63 0 8 0 uvmvnodes 80 2827 0 0 58 0 58 58 0 8 0 vnodes 216 2827 0 0 158 0 158 158 0 8 0 namei 1024 11757 0 11757 3 2 1 2 0 8 1 kstatmem 264 46 0 30 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 10784 0 10784 8 7 1 8 1 8 1 plimitpl 152 176 0 158 1 0 1 1 0 8 0 sigapl 424 924 0 857 8 0 8 8 0 8 0 futexpl 64 8084 0 8078 1 0 1 1 0 8 0 knotepl 120 55145 0 55095 23 14 9 17 0 8 6 kqueuepl 184 193 0 181 1 0 1 1 0 8 0 pipepl 296 152 0 125 3 0 3 3 0 8 0 fdescpl 440 886 0 857 5 1 4 5 0 8 0 filepl 120 5335 0 5103 13 5 8 13 0 8 0 lockfpl 104 134 0 128 1 0 1 1 0 8 0 lockfspl 48 65 0 60 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 42 0 26 1 0 1 1 0 8 0 ucredpl 104 687 0 676 1 0 1 1 0 8 0 zombiepl 144 901 0 901 1 0 1 1 0 8 1 processpl 1112 924 0 857 5 0 5 5 0 8 0 procpl 656 1677 0 1597 9 1 8 8 0 8 1 sosppl 168 5 0 5 1 1 0 1 0 8 0 sockpl 528 1319 0 1286 16 13 3 15 0 8 0 mcl64k 65536 9 0 9 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 22 0 22 1 1 0 1 0 8 0 mcl4k 4096 3035 0 2984 13 6 7 13 0 8 0 mcl2k 2048 631 0 628 2 1 1 2 0 8 0 mtagpl 96 121 0 44 3 0 3 3 0 8 0 mbufpl 256 9340 0 9132 29 11 18 29 0 8 0 bufpl 280 4290 0 129 298 0 298 298 0 8 0 anonpl 24 133948 0 130769 55 23 32 46 0 187 8 amapchunkpl 152 22384 0 21868 30 6 24 26 0 158 3 amappl16 200 2472 0 2441 20 18 2 15 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 106 0 96 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1526 0 1497 3 1 2 3 0 8 0 amappl11 160 63 0 53 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 103 0 93 1 0 1 1 0 8 0 amappl6 120 184 0 180 1 0 1 1 0 8 0 amappl5 112 113 0 107 1 0 1 1 0 8 0 amappl4 104 303 0 289 1 0 1 1 0 8 0 amappl3 96 4401 0 4283 5 1 4 4 0 8 0 amappl2 88 644 0 590 2 0 2 2 0 8 0 amappl1 80 9458 0 8940 13 0 13 13 0 8 0 amappl 88 6734 0 6558 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 254 0 254 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 20 0 2 1 0 1 1 0 8 0 uaddrrnd 24 886 0 857 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 886 0 857 1 0 1 1 0 8 0 vmmpekpl 168 8483 0 8440 3 0 3 3 0 8 0 vmmpepl 168 59141 0 57397 89 8 81 89 0 357 0 vmsppl 360 885 0 857 4 1 3 4 0 8 0 rwobjpl 32 20943 0 17238 30 0 30 30 0 8 0 pdppl 4096 1778 0 1714 110 44 66 82 0 8 2 pvpl 32 383575 0 374989 135 40 95 121 0 265 15 pmappl 216 885 0 857 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 303 0 84 8 0 8 8 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(ffffffff83406655) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7e7b,ffffffff83381d83,83,ffffffff83400a5f) at __assert+0x29 rtmap_grow(6,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(5) at rtable_add+0x279 route_output(fffffd806551bf00,ffff800010fde850) at route_output+0x525 sys/net/rtsock.c:785 route_send(ffff800010fde850,fffffd806551bf00,0,0) at route_send+0xd7 sys/net/rtsock.c:342 sosend(ffff800010fde850,0,ffff80003c98afb8,0,0,0) at sosend+0x824 sendit(ffff80002a8e4ce8,3,ffff80003c98b0b0,0,ffff80003c98b160) at sendit+0x721 sys/kern/uipc_syscalls.c:779 sys_sendto(ffff80002a8e4ce8,ffff80003c98b210,ffff80003c98b160) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:557 syscall(ffff80003c98b210) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9893b219ba0, 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(ffffffff83406655) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b7e7b,ffffffff83381d83,83,ffffffff83400a5f) at __assert+0x29 rtmap_grow(6,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(5) at rtable_add+0x279 route_output(fffffd806551bf00,ffff800010fde850) at route_output+0x525 sys/net/rtsock.c:785 route_send(ffff800010fde850,fffffd806551bf00,0,0) at route_send+0xd7 sys/net/rtsock.c:342 sosend(ffff800010fde850,0,ffff80003c98afb8,0,0,0) at sosend+0x824 sendit(ffff80002a8e4ce8,3,ffff80003c98b0b0,0,ffff80003c98b160) at sendit+0x721 sys/kern/uipc_syscalls.c:779 sys_sendto(ffff80002a8e4ce8,ffff80003c98b210,ffff80003c98b160) at sys_sendto+0x8d sys/kern/uipc_syscalls.c:557 syscall(ffff80003c98b210) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9893b219ba0, count: -12