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 *344475 59485 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8334b61f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338d758,ffffffff83368e82,84,ffffffff833dde85) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(71,21) at rtmap_grow+0x1f2 rtable_add(70) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(70) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(70,ffff80000146a800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdf7b8,8020699f,ffff80002a8e92c0,ffff80002a7ab770) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7ab770,ffff80002a8e9490,ffff80002a8e93e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a8e9490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8e9490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52bf187bb40, 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(ffffffff8334b61f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338d758,ffffffff83368e82,84,ffffffff833dde85) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(71,21) at rtmap_grow+0x1f2 rtable_add(70) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(70) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(70,ffff80000146a800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdf7b8,8020699f,ffff80002a8e92c0,ffff80002a7ab770) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7ab770,ffff80002a8e9490,ffff80002a8e93e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a8e9490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8e9490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52bf187bb40, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a8e8ff0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7ab770 r8 0x101010101010101 r9 0x8080808080808080 r10 0x85c613af5f99c1fe r11 0xd31ac68543029f11 r12 0 r13 0x19 r14 0 r15 0x1 rip 0xffffffff8136c4e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a8e8fe0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=344475 pid=59485 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=0xffff80002a7862a0,0xffff80002a786548 process=0xffff8000ffff8d98 user=0xffff80002a8e4000, vmspace=0xfffffd806ba10d00 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 17756 478509 22955 0 2 0 syz-executor 17756 322998 22955 0 2 0x4000000 syz-executor 98149 173965 62815 0 2 0 syz-executor 98149 479353 62815 0 2 0x4000000 syz-executor 9879 303307 38516 0 2 0 syz-executor 9879 164433 38516 0 3 0x4000080 fsleep syz-executor 8693 242642 50129 0 2 0 syz-executor 8693 485627 50129 0 3 0x4000080 fsleep syz-executor 8693 249251 50129 0 3 0x4000080 fsleep syz-executor 3425 380928 75035 0 2 0 syz-executor 3425 375885 75035 0 3 0x4000080 fsleep syz-executor 3425 408942 75035 0 3 0x4000080 kqpoll syz-executor 3425 380287 75035 0 3 0x4000080 fsleep syz-executor 64690 452861 25266 0 2 0 syz-executor 64690 96128 25266 0 3 0x4000080 fsleep syz-executor 64690 324345 25266 0 3 0x4000080 fsleep syz-executor 89523 514368 72352 0 2 0 syz-executor 89523 107381 72352 0 2 0x4000000 syz-executor 89523 395097 72352 0 3 0x4000080 fsleep syz-executor 59485 45510 31326 0 2 0 syz-executor 59485 308815 31326 0 2 0x4000000 syz-executor *59485 344475 31326 0 7 0x4000000 syz-executor 62815 456802 89639 0 3 0x82 nanoslp syz-executor 53041 114662 0 0 3 0x14200 acct acct 72352 420179 89639 0 3 0x82 nanoslp syz-executor 31326 84526 89639 0 2 0x3 syz-executor 75035 189428 89639 0 3 0x82 nanoslp syz-executor 50129 439414 89639 0 3 0x82 nanoslp syz-executor 15426 387662 0 0 3 0x14200 bored sosplice 5452 326280 0 0 3 0x14280 nfsidl nfsio 57021 392816 0 0 3 0x14280 nfsidl nfsio 7264 452993 0 0 3 0x14280 nfsidl nfsio 30479 448101 0 0 3 0x14280 nfsidl nfsio 75598 52872 0 0 3 0x14280 nfsidl nfsio 80277 301789 0 0 3 0x14280 nfsidl nfsio 89871 511798 0 0 3 0x14280 nfsidl nfsio 22563 427624 0 0 3 0x14280 nfsidl nfsio 18628 483300 0 0 3 0x14280 nfsidl nfsio 91820 291770 0 0 3 0x14280 nfsidl nfsio 2654 68784 0 0 3 0x14280 nfsidl nfsio 7849 97230 0 0 3 0x14280 nfsidl nfsio 1908 355212 0 0 3 0x14280 nfsidl nfsio 94618 376740 0 0 3 0x14280 nfsidl nfsio 21913 55822 0 0 3 0x14280 nfsidl nfsio 40242 159889 0 0 3 0x14280 nfsidl nfsio 99867 319119 0 0 3 0x14280 nfsidl nfsio 53637 417240 0 0 3 0x14280 nfsidl nfsio 71247 233172 0 0 3 0x14280 nfsidl nfsio 97842 272514 0 0 3 0x14280 nfsidl nfsio 25266 496811 89639 0 3 0x82 nanoslp syz-executor 38516 151527 89639 0 3 0x82 nanoslp syz-executor 22955 47923 89639 0 3 0x82 nanoslp syz-executor 89639 36671 22956 0 3 0x82 kqread syz-executor 22956 339010 18295 0 3 0x10008a sigsusp ksh 18295 461181 66683 0 3 0x98 kqread sshd-session 66683 404283 46539 0 3 0x92 kqread sshd-session 26205 146614 1 0 3 0x100083 ttyopn getty 46539 121351 1 0 3 0x88 kqread sshd 55346 463395 18750 73 3 0x1100090 kqread syslogd 18750 142862 1 0 3 0x100082 sbwait syslogd 58280 375823 1 0 3 0x100080 kqread resolvd 47912 360918 12335 77 3 0x100092 kqread dhcpleased 31903 340361 12335 77 3 0x100092 kqread dhcpleased 12335 483619 1 0 3 0x80 kqread dhcpleased 45869 296074 0 0 3 0x14200 bored smr 6030 151621 0 0 2 0x14200 zerothread 32801 262249 0 0 3 0x14200 aiodoned aiodoned 22917 422271 0 0 3 0x14200 syncer update 57342 248041 0 0 3 0x14200 cleaner cleaner 5056 478625 0 0 3 0x14200 reaper reaper 8995 364453 0 0 3 0x14200 pgdaemon pagedaemon 94972 440928 0 0 3 0x14200 bored viomb 95244 436093 0 0 3 0x40014200 acpi0 acpi0 82805 222151 0 0 3 0x14200 bored softnet0 70284 294983 0 0 3 0x14200 smrbar systqmp 51456 163088 0 0 3 0x14200 bored systq 84197 107250 0 0 3 0x40014200 tmoslp softclock 71061 24827 0 0 3 0x40014200 idle0 1 390767 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 10216 11117K 12101K 166960K 14033 0 pcb 21 18K 20K 166960K 610 0 rtable 167 10K 10K 166960K 983 0 pf 37 14K 78K 166960K 293 0 ifaddr 31 5K 7K 166960K 203 0 ifgroup 57 2K 2K 166960K 312 0 sysctl 4 1K 9K 166960K 30 0 counters 33 17K 18K 166960K 149 0 ioctlops 0 0K 4K 166960K 691 0 iov 0 0K 32K 166960K 296 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1548 97K 98K 166960K 3989 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 4 10K 10K 166960K 45 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 178 0 dirhash 12 2K 3K 166960K 48 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 2506 0 sigio 0 0K 0K 166960K 79 0 proc 60 59K 116K 166960K 1200 0 subproc 72 4K 4K 166960K 223 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 471 0 in_multi 53 4K 7K 166960K 360 0 ether_multi 1 0K 0K 166960K 23 0 mrt 3 0K 0K 166960K 20 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1054 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 229 151K 180K 166960K 23483 0 UVM aobj 123 3K 4K 166960K 136 0 pinsyscall 39 78K 94K 166960K 4004 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 216 0 NDP 14 0K 2K 166960K 152 0 temp 76 8648K 8744K 166960K 70729 0 kqueue 14 22K 36K 166960K 486 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 236 0 233 1 0 1 1 0 8 0 rtentry 136 389 0 338 4 1 3 4 0 8 0 unpcb 144 1827 0 1810 11 9 2 6 0 8 1 syncache 336 20 0 20 5 4 1 1 0 8 1 tcpqe 32 4 0 4 3 2 1 1 0 8 1 tcpcb 736 1565 0 1557 28 24 4 10 0 8 3 arp 96 68 0 61 1 0 1 1 0 8 0 ipq 40 4 0 4 1 0 1 1 0 8 1 ipqe 40 5 0 5 1 0 1 1 0 8 1 inpcb 328 3552 0 3537 36 29 7 12 0 8 5 ip6q 72 66 0 66 1 0 1 1 0 8 1 ip6af 40 126 0 126 1 0 1 1 0 8 1 nd6 112 60 0 52 1 0 1 1 0 8 0 pkpcb 40 11 0 11 3 2 1 1 0 8 1 kcovpl 48 24 0 16 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 2 0 1 0 8 0 ppxss 1072 85 0 85 4 3 1 1 0 8 1 pppxif 1384 5 0 5 2 1 1 1 0 8 1 pfstscr 40 6 0 5 2 1 1 1 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pftag 88 8 0 1 1 0 1 1 0 8 0 pfstitem 24 5 0 1 1 0 1 1 0 8 0 pfstkey 128 26 0 21 1 0 1 1 0 8 0 pfstate 384 16 0 14 1 0 1 1 0 8 0 pfrule 1344 24 0 24 5 4 1 1 0 8 1 rttmr 136 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 6 0 1 6 0 6 6 0 8 1 art_heap4 256 1641 0 1385 41 22 19 31 0 8 1 art_table 40 1647 0 1386 6 1 5 6 0 8 0 art_node 32 389 0 342 2 0 2 2 0 8 0 sysvmsgpl 40 4 0 3 2 1 1 1 0 8 0 semupl 112 5 0 5 2 1 1 1 0 8 1 semapl 112 171 0 161 1 0 1 1 0 8 0 shmpl 112 133 0 13 4 0 4 4 0 8 0 dirhash 1024 41 0 24 3 0 3 3 0 8 0 dino2pl 256 6172 0 4644 96 0 96 96 0 8 0 ffsino 256 6172 0 4644 96 0 96 96 0 8 0 nchpl 144 9548 0 8971 64 40 24 64 0 8 1 rtmask 32 16 0 16 5 4 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 35750 0 35750 5 3 2 2 0 8 2 kstatmem 264 202 0 178 4 1 3 3 0 8 0 acpiwqpl 32 4 0 4 1 0 1 1 1 8 1 scsiplug 72 14 0 14 4 3 1 1 0 8 1 scxspl 216 38415 0 38415 30 22 8 8 1 8 8 plimitpl 152 829 0 811 1 0 1 1 0 8 0 sigapl 424 2790 0 2725 8 0 8 8 0 8 0 knotepl 120 108762 0 108713 72 62 10 20 0 8 6 kqueuepl 184 870 0 859 6 2 4 4 0 8 3 pipepl 304 546 0 519 12 9 3 8 0 8 0 fdescpl 448 2748 0 2718 5 1 4 5 0 8 0 filepl 120 20828 0 20574 21 11 10 13 0 8 0 lockfpl 104 1282 0 1279 3 1 2 2 0 8 1 lockfspl 48 390 0 387 1 0 1 1 0 8 0 sessionpl 144 47 0 39 1 0 1 1 0 8 0 pgrppl 48 100 0 84 1 0 1 1 0 8 0 ucredpl 104 4180 0 4169 1 0 1 1 0 8 0 zombiepl 144 3257 0 3257 2 1 1 1 0 8 1 processpl 1152 2790 0 2725 5 0 5 5 0 8 0 procpl 664 6215 0 6136 9 1 8 8 0 8 1 sosppl 168 19 0 19 3 2 1 1 0 8 1 sockpl 552 5731 0 5696 36 27 9 13 0 8 6 mcl64k 65536 335 0 335 2 1 1 1 0 8 1 mcl16k 16384 7 0 7 4 3 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 27 0 27 3 2 1 1 0 8 1 mcl4k 4096 5524 0 5473 16 8 8 12 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 3970 0 3970 7 4 3 3 0 8 3 mtagpl 96 20 0 20 2 2 0 1 0 8 0 mbufpl 256 34122 0 34024 40 27 13 31 0 8 2 bufpl 280 17274 0 11046 446 0 446 446 0 8 0 anonpl 24 409153 0 405971 107 57 50 59 0 187 14 amapchunkpl 152 82136 0 81645 73 43 30 35 0 158 11 amappl16 200 7710 0 7678 62 50 12 20 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 182 0 172 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 2 0 1 0 8 0 amappl12 168 3635 0 3604 3 1 2 3 0 8 0 amappl11 160 48 0 37 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 251 0 250 2 1 1 1 0 8 0 amappl8 136 26 0 25 1 0 1 1 0 8 0 amappl7 128 149 0 138 1 0 1 1 0 8 0 amappl6 120 352 0 348 1 0 1 1 0 8 0 amappl5 112 175 0 169 1 0 1 1 0 8 0 amappl4 104 313 0 299 1 0 1 1 0 8 0 amappl3 96 14052 0 13956 3 0 3 3 0 8 0 amappl2 88 3064 0 2991 2 0 2 2 0 8 0 amappl1 80 20174 0 19615 16 1 15 15 0 8 1 amappl 88 22101 0 21936 5 0 5 5 0 92 1 dma32768 32768 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 4 0 3 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 9 0 9 2 2 0 1 0 8 0 dma128 128 258 0 258 3 2 1 1 0 8 1 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 135 0 13 3 0 3 3 0 8 0 uaddrrnd 24 2748 0 2718 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2748 0 2718 1 0 1 1 0 8 0 vmmpekpl 168 21836 0 21782 3 0 3 3 0 8 0 vmmpepl 168 175681 0 173757 124 24 100 101 0 357 11 vmsppl 368 2747 0 2718 4 1 3 4 0 8 0 rwobjpl 40 50456 0 43551 74 1 73 73 0 8 1 pdppl 4096 5503 0 5436 182 113 69 81 0 8 2 pvpl 32 1211486 0 1203221 237 108 129 146 0 265 30 pmappl 216 2747 0 2718 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 552 0 221 11 0 11 11 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(ffffffff8334b61f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338d758,ffffffff83368e82,84,ffffffff833dde85) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(71,21) at rtmap_grow+0x1f2 rtable_add(70) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(70) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(70,ffff80000146a800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdf7b8,8020699f,ffff80002a8e92c0,ffff80002a7ab770) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7ab770,ffff80002a8e9490,ffff80002a8e93e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a8e9490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8e9490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52bf187bb40, 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(ffffffff8334b61f) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338d758,ffffffff83368e82,84,ffffffff833dde85) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(71,21) at rtmap_grow+0x1f2 rtable_add(70) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(70) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(70,ffff80000146a800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff800010fdf7b8,8020699f,ffff80002a8e92c0,ffff80002a7ab770) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7ab770,ffff80002a8e9490,ffff80002a8e93e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a8e9490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8e9490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52bf187bb40, count: -10