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 *237689 25474 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834240c1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd757,ffffffff833944e1,83,ffffffff834138d6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1950 ifioctl(ffff800010fdf8d0,8020699f,ffff80003c96f4c0,ffff80003c962548) at ifioctl+0x19be sys/net/if.c:2299 sys_ioctl(ffff80003c962548,ffff80003c96f6a0,ffff80003c96f5f0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c96f6a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c96f6a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb5465808a80, 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:438 panic(ffffffff834240c1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd757,ffffffff833944e1,83,ffffffff834138d6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1950 ifioctl(ffff800010fdf8d0,8020699f,ffff80003c96f4c0,ffff80003c962548) at ifioctl+0x19be sys/net/if.c:2299 sys_ioctl(ffff80003c962548,ffff80003c96f6a0,ffff80003c96f5f0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c96f6a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c96f6a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb5465808a80, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c96f1f0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003c962548 r8 0 r9 0x8080808080808080 r10 0x3323916586f8b626 r11 0x52e0e1f75de87c50 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff81205e25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c96f1e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=237689 pid=25474 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=77, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7acce8,0xffff80003c962a78 process=0xffff80003a914470 user=0xffff80003c96a000, vmspace=0xfffffd800a068018 estcpu=27, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 68163 257724 86368 0 2 0 syz-executor 68163 69159 86368 0 3 0x4000080 fsleep syz-executor 64001 281955 93835 60929 2 0x10 syz-executor 64001 352285 93835 60929 3 0x4000090 fsleep syz-executor 54637 480358 21780 0 2 0 syz-executor 54637 268693 21780 0 2 0x4000000 syz-executor 54637 439636 21780 0 2 0x4000000 syz-executor 25474 475203 40224 0 2 0 syz-executor 25474 119432 40224 0 2 0x4000000 syz-executor *25474 237689 40224 0 7 0x4000000 syz-executor 78707 145242 28845 0 3 0x82 wait syz-executor 22146 172754 28845 0 3 0x82 nanoslp syz-executor 93835 86111 28845 0 2 0x482 syz-executor 21780 162538 28845 0 3 0x82 nanoslp syz-executor 56771 124686 28845 0 3 0x82 nanoslp syz-executor 46654 220406 28845 0 2 0x2 syz-executor 86368 457599 28845 0 3 0x82 nanoslp syz-executor 40224 318447 28845 0 2 0x482 syz-executor 28845 286093 21030 0 3 0x82 kqread syz-executor 21030 66632 48967 0 3 0x10008a sigsusp ksh 48967 173387 12748 0 3 0x98 kqread sshd-session 12748 218519 14720 0 3 0x92 kqread sshd-session 91070 8920 1 0 3 0x100083 ttyin getty 14720 444429 1 0 3 0x88 kqread sshd 56391 204655 16089 73 3 0x1100090 kqread syslogd 16089 246732 1 0 3 0x100082 sbwait syslogd 25117 248556 1 0 3 0x100080 kqread resolvd 60172 342240 6693 77 3 0x100092 kqread dhcpleased 88815 100283 6693 77 3 0x100092 kqread dhcpleased 6693 21205 1 0 3 0x80 kqread dhcpleased 62898 317674 0 0 3 0x14200 bored smr 66419 387476 0 0 2 0x14200 zerothread 4932 300622 0 0 3 0x14200 aiodoned aiodoned 42068 251548 0 0 3 0x14200 syncer update 77057 380318 0 0 3 0x14200 cleaner cleaner 298 120237 0 0 3 0x14200 reaper reaper 93668 248206 0 0 3 0x14200 pgdaemon pagedaemon 24693 471221 0 0 3 0x14200 bored viomb 43929 425367 0 0 3 0x40014200 acpi0 acpi0 59405 157495 0 0 3 0x14200 bored softnet3 60395 246311 0 0 3 0x14200 bored softnet2 3436 304791 0 0 3 0x14200 bored softnet1 94131 115362 0 0 3 0x14200 bored softnet0 103 408988 0 0 3 0x14200 bored systqmp 42530 352492 0 0 3 0x14200 bored systq 60518 81202 0 0 2 0x40014200 softclock 63430 509609 0 0 3 0x40014200 idle0 1 99313 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 10176 11045K 11295K 166960K 11529 0 pcb 17 12K 12K 166960K 36 0 rtable 240 7K 7K 166960K 365 0 pf 33 13K 14K 166960K 41 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 55 2K 2K 166960K 61 0 sysctl 1 1K 1K 166960K 1 0 counters 30 17K 17K 166960K 33 0 ioctlops 0 0K 4K 166960K 46 0 iov 0 0K 16K 166960K 12 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1401 88K 88K 166960K 1619 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 284 0 proc 60 59K 116K 166960K 481 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 24 0 in_multi 99 7K 7K 166960K 108 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 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 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 159K 168K 166960K 4139 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 38 76K 96K 166960K 1321 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 11 0K 2K 166960K 30 0 temp 37 8670K 8782K 166960K 4438 0 kqueue 13 20K 28K 166960K 43 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 48 0 45 1 0 1 1 0 8 0 rtentry 136 112 0 1 4 0 4 4 0 8 0 unpcb 144 92 0 75 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 50 0 44 2 0 2 2 0 8 1 arp 88 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 1 1 0 1 1 0 8 0 inpcb 344 173 0 163 2 0 2 2 0 8 0 nd6 104 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 3 0 3 2 1 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 0 1 0 1 1 0 8 0 pfstate 344 2 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 454 0 0 29 0 29 29 0 8 0 art_table 32 455 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 6 0 2 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1865 0 365 95 0 95 95 0 8 0 ffsino 248 1865 0 365 95 0 95 95 0 8 0 nchpl 144 2274 0 596 63 0 63 63 0 8 0 uvmvnodes 80 2106 0 0 43 0 43 43 0 8 0 vnodes 216 2106 0 0 117 0 117 117 0 8 0 namei 1024 6981 0 6980 3 2 1 2 0 8 0 kstatmem 264 28 0 6 2 0 2 2 0 8 0 scxspl 216 6823 0 6823 4 2 2 3 1 8 2 plimitpl 152 49 0 32 1 0 1 1 0 8 0 sigapl 424 565 0 520 7 1 6 7 0 8 0 futexpl 64 2275 0 2272 1 0 1 1 0 8 0 knotepl 120 7955 0 7908 10 0 10 10 0 8 8 kqueuepl 184 64 0 51 1 0 1 1 0 8 0 pipepl 296 108 0 81 3 0 3 3 0 8 0 fdescpl 440 549 0 520 5 1 4 5 0 8 0 filepl 120 2401 0 2178 11 1 10 11 0 8 2 lockfpl 104 28 0 26 1 0 1 1 0 8 0 lockfspl 48 14 0 12 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 426 0 413 1 0 1 1 0 8 0 zombiepl 144 558 0 555 2 1 1 1 0 8 0 processpl 1112 565 0 520 4 0 4 4 0 8 0 procpl 656 811 0 760 6 0 6 6 0 8 1 sockpl 528 315 0 285 3 0 3 3 0 8 0 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 2602 0 2552 14 7 7 14 0 8 0 mcl2k 2048 237 0 236 2 1 1 1 0 8 0 mtagpl 96 9 0 4 1 0 1 1 0 8 0 mbufpl 256 5790 0 5634 15 3 12 15 0 8 1 bufpl 280 2470 0 117 169 0 169 169 0 8 0 anonpl 24 114281 0 111200 31 8 23 31 0 187 0 amapchunkpl 152 12444 0 11978 22 1 21 22 0 158 1 amappl16 200 2293 0 2268 7 4 3 6 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1162 0 1133 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 27 0 25 1 0 1 1 0 8 0 amappl7 128 97 0 87 1 0 1 1 0 8 0 amappl6 120 178 0 175 1 0 1 1 0 8 0 amappl5 112 115 0 108 1 0 1 1 0 8 0 amappl4 104 291 0 275 1 0 1 1 0 8 0 amappl3 96 2193 0 2085 4 0 4 4 0 8 1 amappl2 88 622 0 567 2 0 2 2 0 8 0 amappl1 80 8666 0 8118 14 0 14 14 0 8 0 amappl 88 3468 0 3312 5 0 5 5 0 92 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 549 0 520 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 549 0 520 1 0 1 1 0 8 0 vmmpekpl 168 6004 0 5969 2 0 2 2 0 8 0 vmmpepl 168 41398 0 39574 89 0 89 89 0 357 5 vmsppl 360 548 0 520 4 1 3 4 0 8 0 rwobjpl 32 16160 0 13212 24 0 24 24 0 8 0 pdppl 4096 1105 0 1040 99 32 67 83 0 8 2 pvpl 32 264572 0 256277 101 17 84 94 0 265 7 pmappl 216 548 0 520 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 271 0 50 7 0 7 7 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(ffffffff834240c1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd757,ffffffff833944e1,83,ffffffff834138d6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1950 ifioctl(ffff800010fdf8d0,8020699f,ffff80003c96f4c0,ffff80003c962548) at ifioctl+0x19be sys/net/if.c:2299 sys_ioctl(ffff80003c962548,ffff80003c96f6a0,ffff80003c96f5f0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c96f6a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c96f6a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb5465808a80, 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(ffffffff834240c1) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd757,ffffffff833944e1,83,ffffffff834138d6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1950 ifioctl(ffff800010fdf8d0,8020699f,ffff80003c96f4c0,ffff80003c962548) at ifioctl+0x19be sys/net/if.c:2299 sys_ioctl(ffff80003c962548,ffff80003c96f6a0,ffff80003c96f5f0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c96f6a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c96f6a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb5465808a80, count: -10