panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 19291 79549 0 0 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833adc82) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833efd26,ffffffff833ed40d,84,ffffffff83448d15) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff8000015a1800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff80000159abd8,8020699f,ffff800039bf21d0,ffff8000fffe3250) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff8000fffe3250,ffff800039bf23b0,ffff800039bf2300) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff800039bf23b0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039bf23b0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x107cbd7f9e0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833adc82) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833efd26,ffffffff833ed40d,84,ffffffff83448d15) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff8000015a1800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff80000159abd8,8020699f,ffff800039bf21d0,ffff8000fffe3250) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff8000fffe3250,ffff800039bf23b0,ffff800039bf2300) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff800039bf23b0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039bf23b0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x107cbd7f9e0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800039bf1ee0 rbx 0xffffffff8384be07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff8000fffe3250 rax 0xffffffff8384aff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x182319204a7a7a99 r11 0x61ac8e1bc5f2bdfd r12 0xffffffff8384bc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff8278f895 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800039bf1ed0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=19291 pid=79549 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=85, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffe2028,0xffff8000ffffdca0 process=0xffff80003c48f9e8 user=0xffff800039bed000, vmspace=0xfffffd806c78a020 estcpu=35, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 70898 242198 32422 0 2 0 syz-executor 70898 419769 32422 0 3 0x4000080 fsleep syz-executor 70898 362702 32422 0 3 0x4000080 fsleep syz-executor 79549 202757 74103 0 2 0 syz-executor 79549 146155 74103 0 2 0x4000000 syz-executor *79549 19291 74103 0 7 0x4000000 syz-executor 4036 254223 71587 0 2 0 syz-executor 4036 349814 71587 0 2 0x4000000 syz-executor 4036 360181 71587 0 3 0x4000080 fsleep syz-executor 71440 306748 9192 0 2 0 syz-executor 25422 416944 92181 0 3 0x80 nanoslp syz-executor 25422 430260 92181 0 3 0x4000080 fifow syz-executor 25422 166630 92181 0 3 0x4000080 fsleep syz-executor 50932 22693 0 0 3 0x14200 acct acct 3134 107500 86655 0 2 0xc80 syz-executor 3134 451901 86655 0 3 0x4000080 sbwait syz-executor 3134 182179 86655 0 3 0x4000080 fsleep syz-executor 3134 121320 86655 0 3 0x4000080 fsleep syz-executor 58793 413355 1 0 3 0x100083 ttyin getty 71587 152754 20157 0 2 0xc82 syz-executor 9192 40247 20157 0 2 0xc82 syz-executor 5274 339550 0 0 3 0x14280 nfsidl nfsio 89533 105680 0 0 3 0x14280 nfsidl nfsio 43273 97474 0 0 3 0x14280 nfsidl nfsio 20197 167041 0 0 3 0x14280 nfsidl nfsio 1656 326377 0 0 3 0x14280 nfsidl nfsio 93083 405146 0 0 3 0x14280 nfsidl nfsio 226 519091 0 0 3 0x14280 nfsidl nfsio 69236 287570 0 0 3 0x14280 nfsidl nfsio 82066 11380 0 0 3 0x14280 nfsidl nfsio 13026 449020 0 0 3 0x14280 nfsidl nfsio 96393 127768 0 0 3 0x14280 nfsidl nfsio 88108 25824 0 0 3 0x14280 nfsidl nfsio 33817 489104 0 0 3 0x14280 nfsidl nfsio 6914 3284 0 0 3 0x14280 nfsidl nfsio 15966 113882 0 0 3 0x14280 nfsidl nfsio 43190 388794 0 0 3 0x14280 nfsidl nfsio 92656 325764 0 0 3 0x14280 nfsidl nfsio 69130 26621 0 0 3 0x14280 nfsidl nfsio 71659 287141 0 0 3 0x14280 nfsidl nfsio 55893 232384 0 0 3 0x14280 nfsidl nfsio 74103 376789 20157 0 3 0x82 nanoslp syz-executor 85227 468534 20157 0 2 0x2 syz-executor 87488 97685 20157 0 2 0x2 syz-executor 32422 315502 20157 0 3 0x82 nanoslp syz-executor 86655 91835 20157 0 2 0xc82 syz-executor 92181 168210 20157 0 2 0xc82 syz-executor 20157 72287 4189 0 3 0x82 kqread syz-executor 4189 52116 20857 0 3 0x10008a sigsusp ksh 20857 267632 60260 0 3 0x98 kqread sshd-session 60260 174133 34532 0 3 0x92 kqread sshd-session 34532 349599 1 0 3 0x88 kqread sshd 95561 276512 30670 74 3 0x1100092 bpf pflogd 30670 317026 1 0 3 0x80 sbwait pflogd 31877 138954 26424 73 3 0x1100090 kqread syslogd 26424 480153 1 0 3 0x100082 sbwait syslogd 38117 476954 1 0 3 0x100080 kqread resolvd 14031 451894 22578 77 3 0x100092 kqread dhcpleased 73343 222041 22578 77 3 0x100092 kqread dhcpleased 22578 15312 1 0 3 0x80 kqread dhcpleased 68735 143061 0 0 3 0x14200 bored smr 61693 79372 0 0 2 0x14200 zerothread 4765 397323 0 0 3 0x14200 aiodoned aiodoned 27529 80898 0 0 3 0x14200 syncer update 46167 281308 0 0 3 0x14200 cleaner cleaner 4497 241157 0 0 3 0x14200 reaper reaper 78120 379322 0 0 3 0x14200 pgdaemon pagedaemon 87176 312374 0 0 3 0x14200 bored viomb 16974 438814 0 0 3 0x40014200 acpi0 acpi0 62565 320622 0 0 7 0x40014200 idle1 86153 172239 0 0 3 0x14200 bored softnet1 99355 415710 0 0 3 0x14200 bored softnet0 45501 88397 0 0 3 0x14200 bored systqmp 16148 357074 0 0 3 0x14200 bored systq 7635 58943 0 0 3 0x14200 tmoslp softclockmp 24576 89965 0 0 2 0x40014200 softclock 79719 256834 0 0 3 0x40014200 idle0 1 25934 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 79549 (syz-executor) thread 0xffff8000fffe3250 (19291) Process 85227 (syz-executor) thread 0xffff80002a261240 (468534) Process 87488 (syz-executor) thread 0xffff80002a2614d8 (97685) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11096 12179K 12379K 166960K 13031 0 pcb 19 14K 15K 166960K 236 0 rtable 245 11K 11K 166960K 545 0 pf 37 18K 82K 166960K 171 0 ifaddr 43 7K 8K 166960K 110 0 ifgroup 55 2K 2K 166960K 194 0 sysctl 4 1K 9K 166960K 17 0 counters 70 37K 38K 166960K 234 0 ioctlops 0 0K 4K 166960K 1641 0 iov 0 0K 24K 166960K 58 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1371 86K 87K 166960K 2113 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 6K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 41 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 106K 166960K 933 0 sigio 0 0K 0K 166960K 14 0 proc 72 115K 164K 166960K 662 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 120 0 in_multi 96 7K 7K 166960K 190 0 ether_multi 1 0K 0K 166960K 21 0 mrt 1 0K 0K 166960K 16 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 549 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 237 160K 183K 166960K 10285 0 UVM aobj 49 10K 10K 166960K 52 0 pinsyscall 43 86K 105K 166960K 2111 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 56 0 NDP 12 0K 2K 166960K 82 0 temp 79 8688K 8800K 166960K 62316 0 kqueue 14 22K 28K 166960K 213 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 90 0 87 1 0 1 1 0 8 0 rtentry 176 168 0 67 7 1 6 6 0 8 0 unpcb 144 686 0 665 7 6 1 4 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 736 247 0 241 8 6 2 4 0 8 1 arp 136 30 0 12 1 0 1 1 0 8 0 inpcb 328 1010 0 995 15 10 5 8 0 8 3 nd6 152 35 0 7 2 0 2 2 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 2 0 1 0 8 0 ppxss 1192 66 0 66 2 1 1 1 0 8 1 pppxif 1504 5 0 5 2 2 0 1 0 8 0 pffrag 232 7 0 1 1 0 1 1 0 482 0 pffrnode 88 7 0 1 1 0 1 1 0 8 0 pffrent 40 8 0 2 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 448 1 0 0 1 0 1 1 0 8 0 pfrule 1360 6 0 5 2 1 1 1 0 8 0 rttmr 136 3 0 3 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 745 0 309 36 8 28 33 0 8 0 art_table 40 747 0 309 7 2 5 6 0 8 0 art_node 32 168 0 78 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 43 0 1 2 0 2 2 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3262 0 1749 96 0 96 96 0 8 0 ffsino 296 3262 0 1749 118 0 118 118 0 8 0 nchpl 144 4515 0 2811 64 0 64 64 0 8 0 rtmask 32 18 0 18 4 4 0 1 0 8 0 vnodes 216 3629 0 0 202 0 202 202 0 8 0 namei 1024 15179 0 15179 3 1 2 2 0 8 2 percpumem 16 132 0 82 1 0 1 1 0 8 0 vcpupl 3968 4 0 0 1 0 1 1 0 8 0 vmpool 848 6 0 2 1 0 1 1 0 8 0 kstatmem 264 120 0 94 6 3 3 3 0 8 1 scsiplug 72 3 0 3 2 2 0 1 0 8 0 scxspl 216 29186 0 29186 12 11 1 8 1 8 1 plimitpl 152 247 0 228 1 0 1 1 0 8 0 sigapl 424 1254 0 1185 8 0 8 8 0 8 0 knotepl 120 522 0 0 16 0 16 16 0 8 0 kqueuepl 224 475 0 432 11 8 3 9 0 8 0 pipepl 344 229 0 202 3 0 3 3 0 8 0 fdescpl 528 1216 0 1184 3 0 3 3 0 8 0 filepl 160 7704 0 7451 21 10 11 15 0 8 0 lockfpl 104 348 0 346 1 0 1 1 0 8 0 lockfspl 48 157 0 155 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 58 0 41 1 0 1 1 0 8 0 ucredpl 104 1506 0 1492 1 0 1 1 0 8 0 zombiepl 144 1542 0 1542 2 1 1 1 0 8 1 processpl 1232 1254 0 1185 6 0 6 6 0 8 0 procpl 664 2642 0 2562 9 1 8 8 0 8 1 sosppl 176 9 0 9 4 3 1 1 0 8 1 sockpl 752 1845 0 1805 22 14 8 13 0 8 3 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 124 0 0 16 0 16 16 0 8 0 mcl2k 2048 25 0 0 4 0 4 4 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1479 0 0 92 0 92 92 0 8 0 bufpl 280 12356 0 6220 439 0 439 439 0 8 0 anonpl 32 13015 0 0 105 0 105 105 0 246 0 amapchunkpl 152 33916 0 33448 46 20 26 36 0 158 7 amappl16 200 5087 0 5055 61 48 13 29 0 8 6 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 7 0 7 1 1 0 1 0 8 0 amappl13 176 451 0 450 1 0 1 1 0 8 0 amappl12 168 1587 0 1546 3 0 3 3 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 53 0 39 1 0 1 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 30 0 27 1 0 1 1 0 8 0 amappl7 128 93 0 91 1 0 1 1 0 8 0 amappl6 120 303 0 289 1 0 1 1 0 8 0 amappl5 112 82 0 71 1 0 1 1 0 8 0 amappl4 104 430 0 400 1 0 1 1 0 8 0 amappl3 96 5957 0 5868 4 1 3 3 0 8 0 amappl2 88 1329 0 1250 2 0 2 2 0 8 0 amappl1 80 12796 0 12208 14 0 14 14 0 8 0 amappl 88 9387 0 9229 5 0 5 5 0 92 0 uvmvnodes 80 131 0 0 3 0 3 3 0 8 0 dma4096 4096 3 0 3 2 2 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 2 2 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 51 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1216 0 1184 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1216 0 1184 1 0 1 1 0 8 0 vmmpekpl 168 11662 0 11614 3 0 3 3 0 8 0 vmmpepl 168 84757 0 82842 131 25 106 109 0 357 13 vmsppl 488 1215 0 1184 6 1 5 5 0 8 0 rwobjpl 80 25734 0 24626 38 6 32 34 0 8 1 pdppl 4096 2451 0 2376 114 39 75 85 0 8 0 pvpl 32 20653 0 0 168 1 167 167 0 265 0 pmappl 256 1221 0 1186 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 391 0 61 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833adc82) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833efd26,ffffffff833ed40d,84,ffffffff83448d15) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff8000015a1800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff80000159abd8,8020699f,ffff800039bf21d0,ffff8000fffe3250) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff8000fffe3250,ffff800039bf23b0,ffff800039bf2300) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff800039bf23b0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039bf23b0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x107cbd7f9e0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299ddff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299ddff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5