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 *440666 54577 0 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833799b0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b9740,ffffffff833946bb,84,ffffffff8340ad8b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001589800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015e8468,8020699f,ffff80003811da60,ffff8000381114e0) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff8000381114e0,ffff80003811dc30,ffff80003811db80) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003811dc30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003811dc30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5526aebedd0, 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(ffffffff833799b0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b9740,ffffffff833946bb,84,ffffffff8340ad8b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001589800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015e8468,8020699f,ffff80003811da60,ffff8000381114e0) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff8000381114e0,ffff80003811dc30,ffff80003811db80) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003811dc30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003811dc30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5526aebedd0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003811d790 rbx 0x21 rdx 0 rcx 0 rax 0xffff8000381114e0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1d9292edb9223428 r11 0xbebd604e53a5b9b5 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff82395c45 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003811d780 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=440666 pid=54577 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800038111ca8,0xffff800038111788 process=0xffff8000ffff9218 user=0xffff800038118000, vmspace=0xfffffd8077c1a468 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54577 521228 33634 0 3 0x90 fsleep syz-executor 54577 369784 33634 0 2 0x4000010 syz-executor *54577 440666 33634 0 7 0x4000010 syz-executor 54577 345380 33634 0 3 0x4000090 fsleep syz-executor 67625 135703 71520 0 3 0x80 fsleep syz-executor 67625 364213 71520 0 3 0x4000080 sbwait syz-executor 11422 363677 19475 0 3 0x80 fsleep syz-executor 11422 210838 19475 0 3 0x4000080 lockf syz-executor 1972 68611 75160 0 3 0x80 fsleep syz-executor 1972 235685 75160 0 3 0x4000080 ttyin syz-executor 1972 123855 75160 0 3 0x4000080 fsleep syz-executor 1972 167267 75160 0 3 0x4000080 fsleep syz-executor 13096 444253 1830 0 3 0x80 fsleep syz-executor 13096 448969 1830 0 3 0x4000080 rest syz-executor 1207 18885 84201 0 3 0x80 fsleep syz-executor 1207 18861 84201 0 3 0x4000080 pipewr syz-executor 45977 86273 84210 0 3 0x80 fsleep syz-executor 45977 93360 84210 0 3 0x4000080 sbwait syz-executor 45977 375543 84210 0 3 0x4000080 sbwait syz-executor 45977 270593 84210 0 3 0x4000080 fsleep syz-executor 73552 404099 0 0 3 0x14200 acct acct 71520 35017 38754 0 2 0xc82 syz-executor 24743 392599 38754 0 2 0xc82 syz-executor 84210 274331 38754 0 2 0xc82 syz-executor 19475 203135 38754 0 2 0xc82 syz-executor 84201 507085 38754 0 2 0xc82 syz-executor 75160 204628 38754 0 3 0x82 nanoslp syz-executor 33634 207871 38754 0 3 0x82 nanoslp syz-executor 1830 294052 38754 0 3 0x82 nanoslp syz-executor 38754 120405 71747 0 3 0x82 kqread syz-executor 71747 68393 49581 0 3 0x10008a sigsusp ksh 49581 167948 57072 0 3 0x98 kqread sshd-session 57072 92991 86427 0 3 0x92 kqread sshd-session 86484 158183 1 0 3 0x100083 ttyin getty 86427 325946 1 0 3 0x88 kqread sshd 14299 248944 28802 73 3 0x1100090 kqread syslogd 28802 9615 1 0 3 0x100082 sbwait syslogd 41994 341905 1 0 3 0x100080 kqread resolvd 98331 65414 82931 77 3 0x100092 kqread dhcpleased 88686 250644 82931 77 3 0x100092 kqread dhcpleased 82931 254966 1 0 3 0x80 kqread dhcpleased 68146 291701 0 0 3 0x14200 bored smr 33768 181789 0 0 2 0x14200 zerothread 59841 163691 0 0 3 0x14200 aiodoned aiodoned 8369 262703 0 0 3 0x14200 syncer update 51955 335324 0 0 3 0x14200 cleaner cleaner 66698 404484 0 0 3 0x14200 reaper reaper 71966 436106 0 0 3 0x14200 pgdaemon pagedaemon 86076 171754 0 0 3 0x14200 bored viomb 42710 136565 0 0 3 0x40014200 acpi0 acpi0 78535 164680 0 0 3 0x14200 bored softnet0 93854 339775 0 0 3 0x14200 bored systqmp 20792 110934 0 0 3 0x14200 bored systq 53146 224986 0 0 3 0x40014200 tmoslp softclock 87048 405134 0 0 3 0x40014200 idle0 1 301181 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 11054 12254K 12368K 166960K 12428 0 pcb 21 12K 12K 166960K 63 0 rtable 217 8K 8K 166960K 506 0 pf 34 13K 17K 166960K 430 0 ifaddr 39 6K 8K 166960K 68 0 ifgroup 50 2K 2K 166960K 98 0 sysctl 1 1K 9K 166960K 7 0 counters 34 17K 18K 166960K 54 0 ioctlops 0 0K 4K 166960K 136 0 iov 1 4K 12K 166960K 14 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1406 88K 89K 166960K 1618 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 12 0K 0K 166960K 16 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 342 0 sigio 0 0K 0K 166960K 2 0 proc 60 59K 75K 166960K 534 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 1 0K 0K 166960K 22 0 in_multi 85 6K 7K 166960K 127 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 718 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 239 151K 160K 166960K 4858 0 UVM aobj 7 2K 2K 166960K 10 0 pinsyscall 39 78K 95K 166960K 1436 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 16 0 NDP 12 0K 2K 166960K 43 0 temp 38 8666K 8762K 166960K 12226 0 kqueue 14 22K 26K 166960K 63 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 54 0 50 1 0 1 1 0 8 0 rtentry 136 131 0 41 4 0 4 4 0 8 0 unpcb 144 114 0 95 1 0 1 1 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 43 0 38 1 0 1 1 0 8 0 arp 96 20 0 4 1 0 1 1 0 8 0 inpcb 328 203 0 188 3 1 2 2 0 8 0 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 112 29 0 7 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 13 0 11 1 0 1 1 0 8 0 pppxif 1384 6 0 6 1 0 1 1 0 8 1 pfrktable 1344 37 0 34 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfrule 1360 35 0 34 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 513 0 143 29 0 29 29 0 8 2 art_table 40 515 0 143 5 0 5 5 0 8 0 art_node 32 131 0 50 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semapl 112 13 0 3 1 0 1 1 0 8 0 shmpl 112 7 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1957 0 449 95 0 95 95 0 8 0 ffsino 256 1957 0 449 95 0 95 95 0 8 0 nchpl 144 2446 0 747 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2186 0 0 122 0 122 122 0 8 0 namei 1024 7755 0 7755 2 1 1 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 48 0 24 3 0 3 3 0 8 1 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 7605 0 7605 10 2 8 8 1 8 8 plimitpl 152 52 0 33 1 0 1 1 0 8 0 sigapl 424 627 0 583 6 1 5 6 0 8 0 knotepl 120 11090 0 10816 37 20 17 24 0 8 8 kqueuepl 184 80 0 68 1 0 1 1 0 8 0 pipepl 304 120 0 92 3 0 3 3 0 8 0 fdescpl 448 613 0 583 5 1 4 5 0 8 0 filepl 120 2713 0 2471 10 1 9 9 0 8 1 lockfpl 104 78 0 70 1 0 1 1 0 8 0 lockfspl 48 40 0 33 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 335 0 323 1 0 1 1 0 8 0 zombiepl 144 730 0 729 2 1 1 1 0 8 0 processpl 1152 627 0 583 4 0 4 4 0 8 0 procpl 664 1001 0 944 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 377 0 339 4 0 4 4 0 8 0 mcl64k 65536 6 0 6 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 2728 0 2675 15 7 8 15 0 8 1 mcl2k 2048 458 0 457 3 1 2 2 0 8 1 mtagpl 96 10 0 6 1 0 1 1 0 8 0 mbufpl 256 6256 0 6067 14 0 14 14 0 8 0 bufpl 280 2658 0 120 182 0 182 182 0 8 0 anonpl 24 104147 0 100933 65 33 32 55 0 187 9 amapchunkpl 152 14338 0 13824 31 6 25 25 0 158 4 amappl16 200 1454 0 1423 14 12 2 14 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 5 0 5 1 1 0 1 0 8 0 amappl13 176 416 0 415 1 0 1 1 0 8 0 amappl12 168 952 0 913 2 0 2 2 0 8 0 amappl11 160 12 0 12 1 1 0 1 0 8 0 amappl10 152 44 0 34 1 0 1 1 0 8 0 amappl9 144 261 0 261 1 1 0 1 0 8 0 amappl8 136 18 0 17 1 0 1 1 0 8 0 amappl7 128 86 0 84 1 0 1 1 0 8 0 amappl6 120 274 0 262 1 0 1 1 0 8 0 amappl5 112 87 0 79 1 0 1 1 0 8 0 amappl4 104 370 0 348 1 0 1 1 0 8 0 amappl3 96 2417 0 2321 3 0 3 3 0 8 0 amappl2 88 720 0 646 2 0 2 2 0 8 0 amappl1 80 9566 0 9026 13 0 13 13 0 8 1 amappl 88 4123 0 3951 5 0 5 5 0 92 0 uvmvnodes 80 101 0 0 3 0 3 3 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 9 0 3 1 0 1 1 0 8 0 uaddrrnd 24 613 0 583 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 613 0 583 1 0 1 1 0 8 0 vmmpekpl 168 6554 0 6525 2 0 2 2 0 8 0 vmmpepl 168 45435 0 43593 93 11 82 89 0 357 1 vmsppl 368 612 0 583 4 1 3 4 0 8 0 rwobjpl 40 14824 0 13864 13 2 11 13 0 8 1 pdppl 4096 1233 0 1166 101 34 67 81 0 8 0 pvpl 32 272235 0 263099 134 47 87 122 0 265 12 pmappl 216 612 0 583 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 378 0 49 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(ffffffff833799b0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b9740,ffffffff833946bb,84,ffffffff8340ad8b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001589800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015e8468,8020699f,ffff80003811da60,ffff8000381114e0) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff8000381114e0,ffff80003811dc30,ffff80003811db80) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003811dc30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003811dc30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5526aebedd0, 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(ffffffff833799b0) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b9740,ffffffff833946bb,84,ffffffff8340ad8b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001589800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015e8468,8020699f,ffff80003811da60,ffff8000381114e0) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff8000381114e0,ffff80003811dc30,ffff80003811db80) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003811dc30) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003811dc30) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5526aebedd0, count: -10