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 * 60859 1327 0 0 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8336fbc1) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833af890,ffffffff833ad1c4,84,ffffffff8340817e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x24f rtable_add(20) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(20,ffff800001488000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd7790,8020699f,ffff80003908f4a0,ffff80003c446558) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff80003c446558,ffff80003908f680,ffff80003908f5d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003908f680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003908f680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcbd9d5168b0, 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(ffffffff8336fbc1) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833af890,ffffffff833ad1c4,84,ffffffff8340817e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x24f rtable_add(20) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(20,ffff800001488000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd7790,8020699f,ffff80003908f4a0,ffff80003c446558) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff80003c446558,ffff80003908f680,ffff80003908f5d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003908f680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003908f680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcbd9d5168b0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003908f1b0 rbx 0xffffffff83811ddf cpu_info_full_primary+0x2ddf rdx 0 rcx 0xffff80003c446558 rax 0xffffffff83810ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xff109f273f292f32 r11 0xefe133232f066231 r12 0xffffffff83811be0 cpu_info_full_primary+0x2be0 r13 0 r14 0 r15 0x1 rip 0xffffffff811a29e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003908f1a0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=60859 pid=1327 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800033c09ca8,0xffff8000ffff2020 process=0xffff80003901cea0 user=0xffff80003908a000, vmspace=0xfffffd806b7ac3f0 estcpu=34, cpticks=3, pctcpu=0.1, user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 30929 318378 66046 0 2 0 syz-executor 30929 153065 66046 0 3 0x4000001 inode syz-executor 30929 260292 66046 0 3 0x4000001 inode syz-executor 76037 82618 66417 0 2 0x1 syz-executor 76037 458360 66417 0 3 0x4000080 fsleep syz-executor 26523 238341 29177 0 2 0x1 syz-executor 26523 250831 29177 0 2 0x4000000 syz-executor 78522 512115 37029 0 2 0x1 syz-executor 78522 35621 37029 0 3 0x4000080 fsleep syz-executor 20036 197957 17275 0 2 0x1 syz-executor 20036 102349 17275 0 3 0x4000080 kqsel syz-executor 20036 71169 17275 0 2 0x4000000 syz-executor 44429 523162 80023 0 2 0 syz-executor 44429 141496 80023 0 3 0x4000080 fsleep syz-executor 44429 295683 80023 0 3 0x4000080 fsleep syz-executor 44429 70453 80023 0 3 0x4000080 fsleep syz-executor 18289 102693 9228 0 3 0 vmmaplk syz-executor 18289 51155 9228 0 2 0x4000000 syz-executor 18289 28307 9228 0 3 0x4000080 fsleep syz-executor 1327 302579 93382 0 2 0 syz-executor 1327 12172 93382 0 2 0x4000000 syz-executor * 1327 60859 93382 0 7 0x4000000 syz-executor 1327 457415 93382 0 3 0x4000080 fsleep syz-executor 7179 131792 0 0 3 0x14200 acct acct 80023 435243 70188 0 2 0x3 syz-executor 60257 2919 54815 0 3 0x82 sbwait sshd-session 17275 122214 70188 0 3 0x3 inode syz-executor 93382 20861 70188 0 2 0x3 syz-executor 37029 232711 70188 0 2 0xc82 syz-executor 9228 23420 70188 0 3 0x3 inode syz-executor 66046 155672 70188 0 3 0x82 nanoslp syz-executor 66417 109108 70188 0 2 0xc82 syz-executor 48084 467025 0 0 3 0x14200 bored sosplice 29177 49805 70188 0 2 0xc82 syz-executor 70188 509747 6952 0 3 0x82 kqread syz-executor 6952 19148 91224 0 3 0x10008a sigsusp ksh 91224 487393 55152 0 3 0x98 kqread sshd-session 55152 521097 54815 0 3 0x92 kqread sshd-session 7257 322882 1 0 3 0x100083 ttyopn getty 54815 491018 1 0 3 0x88 kqread sshd 8085 423696 32322 74 3 0x1100092 bpf pflogd 32322 253267 1 0 3 0x80 sbwait pflogd 4350 312391 59943 73 3 0x1100090 kqread syslogd 59943 328548 1 0 3 0x100082 sbwait syslogd 85803 169657 1 0 3 0x100080 kqread resolvd 79118 468660 87849 77 3 0x100092 kqread dhcpleased 33514 366848 87849 77 3 0x100092 kqread dhcpleased 87849 204791 1 0 3 0x80 kqread dhcpleased 7171 487181 0 0 3 0x14200 bored smr 73794 265452 0 0 2 0x14200 zerothread 43421 294999 0 0 3 0x14200 aiodoned aiodoned 6034 175193 0 0 3 0x14200 syncer update 12418 343024 0 0 3 0x14200 cleaner cleaner 89731 298622 0 0 3 0x14200 reaper reaper 87061 148840 0 0 3 0x14200 pgdaemon pagedaemon 74955 115110 0 0 3 0x14200 bored viomb 91864 423084 0 0 3 0x40014200 acpi0 acpi0 81351 164906 0 0 7 0x40014200 idle1 60846 221006 0 0 3 0x14200 bored softnet7 93617 477889 0 0 3 0x14200 bored softnet6 47845 200682 0 0 3 0x14200 bored softnet5 39899 495007 0 0 3 0x14200 bored softnet4 39508 298223 0 0 3 0x14200 bored softnet3 3778 354411 0 0 3 0x14200 bored softnet2 20082 355573 0 0 3 0x14200 bored softnet1 14883 6697 0 0 3 0x14200 bored softnet0 23373 195542 0 0 3 0x14200 bored systqmp 15948 207554 0 0 3 0x14200 bored systq 19428 151808 0 0 3 0x14200 tmoslp softclockmp 77856 181228 0 0 2 0x40014200 softclock 10463 495529 0 0 3 0x40014200 idle0 1 325754 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 26523 (syz-executor) thread 0xffff800033c082b8 (250831) Process 18289 (syz-executor) thread 0xffff8000ffff34d0 (51155) Process 1327 (syz-executor) thread 0xffff80003c446558 (60859) Process 80023 (syz-executor) thread 0xffff800033c087e8 (435243) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10284 11166K 11746K 166960K 14306 0 pcb 18 16K 18K 166960K 667 0 rtable 224 13K 13K 166960K 662 0 pf 40 18K 82K 166960K 271 0 ifaddr 40 7K 9K 166960K 193 0 ifgroup 63 2K 3K 166960K 321 0 sysctl 4 1K 9K 166960K 22 0 counters 72 37K 38K 166960K 358 0 ioctlops 0 0K 4K 166960K 2010 0 iov 0 0K 32K 166960K 246 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1485 93K 94K 166960K 3510 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 44 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 95 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 2277 0 sigio 0 0K 0K 166960K 84 0 proc 72 115K 164K 166960K 1003 0 subproc 72 4K 4K 166960K 153 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 311 0 in_multi 77 5K 7K 166960K 278 0 ether_multi 1 0K 0K 166960K 15 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 817 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 274 174K 182K 166960K 22255 0 UVM aobj 22 2K 2K 166960K 25 0 pinsyscall 45 90K 106K 166960K 3616 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 144 0 NDP 14 0K 2K 166960K 141 0 temp 84 8652K 8780K 166960K 105733 0 kqueue 13 20K 32K 166960K 361 0 SYN cache 2 0K 16K 166960K 4 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 262 0 258 3 2 1 3 0 8 0 rtentry 176 236 0 154 6 1 5 5 0 8 0 unpcb 144 1721 0 1701 19 18 1 6 0 8 0 syncache 336 14 0 14 5 5 0 1 0 8 0 tcpqe 32 6 0 6 4 4 0 1 0 8 0 tcpcb 736 912 0 905 28 26 2 8 0 8 0 arp 128 30 0 15 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 3084 0 3068 40 37 3 13 0 8 0 nd6 144 43 0 26 1 0 1 1 0 8 0 pkpcb 40 14 0 14 6 6 0 1 0 8 0 kcovpl 48 17 0 9 1 0 1 1 0 8 0 mppekey 1024 2 0 2 2 2 0 1 0 8 0 ppxss 1192 114 0 114 3 3 0 1 0 8 0 pppxif 1504 15 0 15 6 6 0 1 0 8 0 pfstscr 40 3 0 1 2 1 1 1 0 8 0 pffrag 232 39 0 35 1 0 1 1 0 482 0 pffrnode 88 39 0 35 1 0 1 1 0 8 0 pffrent 40 73 0 69 2 1 1 1 0 8 0 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 136 0 94 1 0 1 1 0 8 0 pfstkey 128 142 0 100 2 0 2 2 0 8 0 pfstate 384 138 0 97 6 0 6 6 0 8 0 pfrule 1344 31 0 26 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1087 0 698 39 14 25 32 0 8 0 art_table 40 1089 0 698 6 0 6 6 0 8 0 art_node 32 233 0 164 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 9 1 0 1 1 0 8 0 semupl 112 4 0 4 3 3 0 1 0 8 0 semapl 112 86 0 76 1 0 1 1 0 8 0 shmpl 112 22 0 3 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 5661 0 4144 96 0 96 96 0 8 0 ffsino 296 5661 0 4144 118 0 118 118 0 8 0 nchpl 144 8781 0 7057 65 0 65 65 0 8 0 rtmask 32 15 0 15 7 7 0 1 0 8 0 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 31639 0 31639 4 3 1 3 0 8 1 percpumem 16 194 0 143 1 0 1 1 0 8 0 kstatmem 264 218 0 186 5 2 3 3 0 8 0 scsiplug 72 10 0 10 3 3 0 1 0 8 0 scxspl 216 41719 0 41719 11 10 1 8 1 8 1 plimitpl 152 489 0 472 1 0 1 1 0 8 0 sigapl 424 2582 0 2525 9 2 7 9 0 8 0 knotepl 120 627 0 0 18 0 18 18 0 8 0 kqueuepl 224 991 0 979 17 15 2 5 0 8 1 pipepl 344 529 0 502 12 9 3 9 0 8 0 fdescpl 528 2534 0 2501 3 0 3 3 0 8 0 filepl 160 18086 0 17847 39 26 13 17 0 8 0 lockfpl 104 1132 0 1127 2 1 1 2 0 8 0 lockfspl 48 503 0 498 1 0 1 1 0 8 0 sessionpl 144 39 0 29 1 0 1 1 0 8 0 pgrppl 48 146 0 128 1 0 1 1 0 8 0 ucredpl 104 3071 0 3057 1 0 1 1 0 8 0 zombiepl 144 3676 0 3676 1 0 1 1 0 8 1 processpl 1232 2582 0 2525 7 0 7 7 0 8 0 procpl 664 6202 0 6130 10 3 7 9 0 8 0 sosppl 168 20 0 20 6 6 0 1 0 8 0 sockpl 752 5207 0 5167 74 69 5 22 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 63 0 0 6 0 6 6 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 1184 0 0 73 0 73 73 0 8 0 bufpl 280 15136 0 8992 441 1 440 440 0 8 0 anonpl 32 14347 0 0 116 0 116 116 0 246 0 amapchunkpl 152 76319 0 75592 65 36 29 35 0 158 0 amappl16 200 7719 0 7593 75 64 11 35 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 145 0 132 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 3324 0 3291 3 1 2 2 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 22 0 21 1 0 1 1 0 8 0 amappl9 144 251 0 250 1 0 1 1 0 8 0 amappl8 136 22 0 19 1 0 1 1 0 8 0 amappl7 128 136 0 122 1 0 1 1 0 8 0 amappl6 120 283 0 277 1 0 1 1 0 8 0 amappl5 112 166 0 156 1 0 1 1 0 8 0 amappl4 104 335 0 315 1 0 1 1 0 8 0 amappl3 96 15626 0 15499 4 0 4 4 0 8 0 amappl2 88 856 0 784 2 0 2 2 0 8 0 amappl1 80 19404 0 18705 16 1 15 15 0 8 0 amappl 88 21029 0 20834 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 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 6 0 6 1 1 0 1 0 8 0 dma128 128 257 0 257 4 4 0 1 0 8 0 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 24 0 3 1 0 1 1 0 8 0 uaddrrnd 24 2534 0 2501 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2534 0 2501 1 0 1 1 0 8 0 vmmpekpl 168 21857 0 21794 4 0 4 4 0 8 0 vmmpepl 168 164938 0 162587 151 47 104 117 0 357 0 vmsppl 488 2533 0 2501 6 1 5 5 0 8 0 rwobjpl 80 49583 0 42455 154 6 148 150 0 8 0 pdppl 4096 5076 0 5002 122 48 74 86 0 8 0 pvpl 32 20600 0 0 166 0 166 166 0 265 0 pmappl 256 2533 0 2501 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 408 0 102 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(ffffffff8336fbc1) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833af890,ffffffff833ad1c4,84,ffffffff8340817e) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x24f rtable_add(20) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(20,ffff800001488000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd7790,8020699f,ffff80003908f4a0,ffff80003c446558) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff80003c446558,ffff80003908f680,ffff80003908f5d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003908f680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003908f680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcbd9d5168b0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) 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(ffff8000299edff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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(ffff8000299edff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5