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 *411096 70386 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b18e3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830655e9,ffffffff83033156,83,ffffffff830a360f) at __assert+0x29 rtmap_grow(28,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(27) at rtable_add+0x279 if_createrdomain(27,ffff80000116f800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8070866810,8020699f,ffff800037495680,ffff80002a51e540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a51e540,ffff800037495860,ffff8000374957b0) at sys_ioctl+0x678 syscall(ffff800037495860) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x91bbd22ad30, 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:437 panic(ffffffff830b18e3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830655e9,ffffffff83033156,83,ffffffff830a360f) at __assert+0x29 rtmap_grow(28,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(27) at rtable_add+0x279 if_createrdomain(27,ffff80000116f800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8070866810,8020699f,ffff800037495680,ffff80002a51e540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a51e540,ffff800037495860,ffff8000374957b0) at sys_ioctl+0x678 syscall(ffff800037495860) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x91bbd22ad30, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374953b0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a51e540 r8 0 r9 0x8080808080808080 r10 0x1a8a4b33d86f86e6 r11 0x9fd4261fac0a9e96 r12 0 r13 0x14 r14 0 r15 0x1 rip 0xffffffff81f4f765 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374953a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=411096 pid=70386 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a51e7c8,0xffff800037612548 process=0xffff80002a5066b0 user=0xffff800037490000, vmspace=0xfffffd80733ceda0 estcpu=33, cpticks=0, pctcpu=0.20, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70386 433765 87957 0 3 0x80 fsleep syz-executor *70386 411096 87957 0 7 0x4000000 syz-executor 70386 441072 87957 0 2 0x4000000 syz-executor 60023 125285 53469 0 3 0x80 fsleep syz-executor 60023 201658 53469 0 2 0x4000000 syz-executor 67757 510136 70218 0 3 0x80 fsleep syz-executor 67757 204314 70218 0 3 0x4000080 kqread syz-executor 50250 64427 94840 0 3 0x90 fsleep syz-executor 50250 245857 94840 0 3 0x4000090 ttyout syz-executor 23880 469615 97205 0 3 0x80 fsleep syz-executor 23880 172364 97205 0 3 0x4000080 piperd syz-executor 23880 356807 97205 0 3 0x4000080 fsleep syz-executor 54361 519180 95235 0 3 0x80 fsleep syz-executor 54361 285868 95235 0 3 0x4000080 pipewr syz-executor 54361 268691 95235 0 3 0x4000080 fsleep syz-executor 54361 233808 95235 0 3 0x4000080 fsleep syz-executor 39002 519876 44144 0 3 0x80 fsleep syz-executor 39002 219951 44144 0 3 0x4000080 ttyin syz-executor 20317 342599 55818 0 3 0x80 fsleep syz-executor 20317 399999 55818 0 3 0x4000080 ttyout syz-executor 95235 371652 48278 0 2 0x482 syz-executor 94840 401411 48278 0 2 0x482 syz-executor 53469 18665 48278 0 2 0x482 syz-executor 97205 389665 48278 0 2 0x482 syz-executor 70218 406419 48278 0 2 0x482 syz-executor 87957 100913 48278 0 2 0x482 syz-executor 44144 111945 48278 0 2 0x482 syz-executor 55818 236906 48278 0 2 0x482 syz-executor 78483 283075 0 0 3 0x14280 nfsidl nfsio 32227 228099 0 0 3 0x14280 nfsidl nfsio 75599 460806 0 0 3 0x14280 nfsidl nfsio 19018 74915 0 0 3 0x14280 nfsidl nfsio 5098 14147 0 0 3 0x14280 nfsidl nfsio 30572 290195 0 0 3 0x14280 nfsidl nfsio 72250 72834 0 0 3 0x14280 nfsidl nfsio 22525 352574 0 0 3 0x14280 nfsidl nfsio 90450 427439 0 0 3 0x14280 nfsidl nfsio 50408 79811 0 0 3 0x14280 nfsidl nfsio 8381 416084 0 0 3 0x14280 nfsidl nfsio 8354 494996 0 0 3 0x14280 nfsidl nfsio 2474 51989 0 0 3 0x14280 nfsidl nfsio 89655 438233 0 0 3 0x14280 nfsidl nfsio 56932 319175 0 0 3 0x14280 nfsidl nfsio 4254 286569 0 0 3 0x14280 nfsidl nfsio 49087 368582 0 0 3 0x14280 nfsidl nfsio 74844 439981 0 0 3 0x14280 nfsidl nfsio 24025 188532 0 0 3 0x14280 nfsidl nfsio 92308 484598 0 0 3 0x14280 nfsidl nfsio 74194 281843 0 0 3 0x14200 bored sosplice 48278 189442 26294 0 3 0x82 kqread syz-executor 26294 7455 95987 0 3 0x10008a sigsusp ksh 95987 307214 80001 0 3 0x98 kqread sshd-session 80001 238233 53672 0 3 0x92 kqread sshd-session 67312 347474 1 0 3 0x100083 ttyin getty 53672 366232 1 0 3 0x88 kqread sshd 35938 449205 59161 73 2 0x1100010 syslogd 59161 335489 1 0 3 0x100082 sbwait syslogd 57438 132151 1 0 3 0x100080 kqread resolvd 46856 56801 32665 77 3 0x100092 kqread dhcpleased 35489 151206 32665 77 3 0x100092 kqread dhcpleased 32665 37474 1 0 3 0x80 kqread dhcpleased 38574 347309 0 0 3 0x14200 bored smr 54059 54375 0 0 2 0x14200 zerothread 18874 455782 0 0 3 0x14200 aiodoned aiodoned 39122 263497 0 0 3 0x14200 syncer update 13941 276623 0 0 3 0x14200 cleaner cleaner 67692 463124 0 0 3 0x14200 reaper reaper 7789 402592 0 0 3 0x14200 pgdaemon pagedaemon 25021 121775 0 0 3 0x14200 bored viomb 47135 379000 0 0 3 0x40014200 acpi0 acpi0 42833 42398 0 0 3 0x14200 bored softnet3 83220 313559 0 0 3 0x14200 bored softnet2 43827 117193 0 0 3 0x14200 bored softnet1 98195 87374 0 0 2 0x14200 softnet0 97566 385044 0 0 3 0x14200 bored systqmp 34679 436541 0 0 3 0x14200 bored systq 1214 298975 0 0 2 0x40014200 softclock 95290 26195 0 0 3 0x40014200 idle0 1 483031 0 0 3 0x80082 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 10204 10170K 10604K 166960K 12307 0 pcb 18 16K 18K 166960K 331 0 rtable 241 9K 9K 166960K 1400 0 pf 35 14K 17K 166960K 144 0 ifaddr 44 8K 8K 166960K 189 0 ifgroup 54 2K 2K 166960K 206 0 sysctl 2 1K 3K 166960K 3 0 counters 31 17K 17K 166960K 71 0 ioctlops 0 0K 4K 166960K 189 0 iov 0 0K 16K 166960K 60 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1466 92K 92K 166960K 2620 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 88 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 18 65K 97K 166960K 1335 0 sigio 0 0K 0K 166960K 88 0 proc 58 59K 124K 166960K 1428 0 subproc 104 6K 7K 166960K 520 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 375 0 in_multi 103 7K 7K 166960K 482 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 880 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 240 111K 127K 166960K 12069 0 UVM aobj 26 2K 4K 166960K 28 0 pinsyscall 39 78K 98K 166960K 3190 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 48 0 NDP 18 0K 2K 166960K 132 0 temp 60 6812K 6881K 166960K 35703 0 kqueue 13 20K 28K 166960K 140 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 222 0 219 1 0 1 1 0 8 0 rtentry 112 485 0 377 4 0 4 4 0 8 0 unpcb 144 1011 0 993 9 3 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 267 0 262 4 3 1 4 0 8 0 arp 88 87 0 69 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 1 0 1 1 1 0 1 0 8 0 inpcb 336 1761 0 1749 19 12 7 13 0 8 6 nd6 104 123 0 99 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 40 0 32 1 0 1 1 0 8 0 ppxss 1072 6 0 6 1 0 1 1 0 8 1 pfstscr 40 5 0 5 2 1 1 1 0 8 1 pfosfp 40 1 0 1 1 1 0 1 0 8 0 pfosfpen 112 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 3 0 3 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 7 1 0 1 1 0 8 0 pfstate 344 5 0 4 1 0 1 1 0 8 0 pfrule 1344 13 0 13 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1891 0 1439 29 0 29 29 0 8 0 art_table 32 1893 0 1439 4 0 4 4 0 8 0 art_node 16 481 0 385 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 37 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 86 0 76 1 0 1 1 0 8 0 shmpl 112 25 0 2 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 3104 0 1547 98 0 98 98 0 8 0 ffsino 240 3104 0 1547 92 0 92 92 0 8 0 nchpl 144 4393 0 2665 65 0 65 65 0 8 0 uvmvnodes 80 4051 0 0 83 0 83 83 0 8 0 vnodes 216 4051 0 0 226 0 226 226 0 8 0 namei 1024 18239 0 18239 3 2 1 2 0 8 1 vcpupl 3904 36 0 0 5 0 5 5 0 8 0 vmpool 664 39 0 3 4 0 4 4 0 8 1 kstatmem 264 104 0 80 2 0 2 2 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 26842 0 26842 8 7 1 8 1 8 1 plimitpl 152 281 0 263 1 0 1 1 0 8 0 sigapl 424 1573 0 1506 8 0 8 8 0 8 0 futexpl 64 11981 0 11970 1 0 1 1 0 8 0 knotepl 120 41869 0 41822 15 11 4 15 0 8 1 kqueuepl 184 382 0 372 4 3 1 4 0 8 0 pipepl 288 309 0 280 3 0 3 3 0 8 0 fdescpl 432 1535 0 1505 5 1 4 5 0 8 0 filepl 120 10151 0 9893 20 6 14 16 0 8 6 lockfpl 104 358 0 355 1 0 1 1 0 8 0 lockfspl 48 143 0 140 1 0 1 1 0 8 0 sessionpl 144 53 0 45 1 0 1 1 0 8 0 pgrppl 48 103 0 87 1 0 1 1 0 8 0 ucredpl 104 1731 0 1718 1 0 1 1 0 8 0 zombiepl 144 1561 0 1561 1 0 1 1 0 8 1 processpl 1096 1573 0 1506 6 0 6 6 0 8 0 procpl 648 2717 0 2638 7 0 7 7 0 8 0 sosppl 168 5 0 5 1 1 0 1 0 8 0 sockpl 504 3008 0 2975 53 41 12 30 0 8 7 mcl64k 65536 12 0 12 1 1 0 1 0 8 0 mcl16k 16384 8 0 8 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 26 0 26 2 1 1 1 0 8 1 mcl4k 4096 10 0 10 1 1 0 1 0 8 0 mcl2k 2048 7965 0 7874 28 15 13 27 0 8 0 mtagpl 96 87 0 87 2 1 1 2 0 8 1 mbufpl 256 17684 0 17499 21 6 15 21 0 8 2 bufpl 280 7889 0 1524 455 0 455 455 0 8 0 anonpl 24 330661 0 322996 63 13 50 50 0 187 3 amapchunkpl 152 41459 0 40689 42 11 31 32 0 158 1 amappl16 200 8230 0 8212 33 26 7 15 0 8 6 amappl15 192 16 0 16 1 1 0 1 0 8 0 amappl14 184 176 0 166 1 0 1 1 0 8 0 amappl13 176 16 0 16 1 1 0 1 0 8 0 amappl12 168 2667 0 2637 3 1 2 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 148 0 148 1 1 0 1 0 8 0 amappl8 136 31 0 29 1 0 1 1 0 8 0 amappl7 128 164 0 154 1 0 1 1 0 8 0 amappl6 120 492 0 491 1 0 1 1 0 8 0 amappl5 112 256 0 248 1 0 1 1 0 8 0 amappl4 104 382 0 367 1 0 1 1 0 8 0 amappl3 96 7873 0 7748 4 0 4 4 0 8 0 amappl2 88 1063 0 1005 2 0 2 2 0 8 0 amappl1 80 13110 0 12572 15 2 13 14 0 8 1 amappl 88 11437 0 11255 5 0 5 5 0 92 0 dma4096 4096 2 0 2 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 27 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1574 0 1508 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1574 0 1508 1 0 1 1 0 8 0 vmmpekpl 168 13357 0 13298 4 0 4 4 0 8 0 vmmpepl 168 102925 0 101095 93 5 88 93 0 357 8 vmsppl 344 1573 0 1508 7 0 7 7 0 8 0 rwobjpl 24 37300 0 32349 31 0 31 31 0 8 1 pdppl 4096 3154 0 3052 193 85 108 108 0 8 6 pvpl 32 852872 0 825948 334 111 223 223 0 265 5 pmappl 216 1573 0 1508 4 0 4 4 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 558 0 172 12 0 12 12 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:437 panic(ffffffff830b18e3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830655e9,ffffffff83033156,83,ffffffff830a360f) at __assert+0x29 rtmap_grow(28,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(27) at rtable_add+0x279 if_createrdomain(27,ffff80000116f800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8070866810,8020699f,ffff800037495680,ffff80002a51e540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a51e540,ffff800037495860,ffff8000374957b0) at sys_ioctl+0x678 syscall(ffff800037495860) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x91bbd22ad30, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b18e3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830655e9,ffffffff83033156,83,ffffffff830a360f) at __assert+0x29 rtmap_grow(28,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(27) at rtable_add+0x279 if_createrdomain(27,ffff80000116f800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8070866810,8020699f,ffff800037495680,ffff80002a51e540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a51e540,ffff800037495860,ffff8000374957b0) at sys_ioctl+0x678 syscall(ffff800037495860) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x91bbd22ad30, count: -10