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 *194344 73473 0 0x8000000 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ac3da) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83063374,ffffffff83030f37,83,ffffffff830a14f2) at __assert+0x29 rtmap_grow(18,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(17) at rtable_add+0x279 if_createrdomain(17,ffff800001176000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806dfccbe8,8020699f,ffff80003766cf80,ffff8000376662b0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff8000376662b0,ffff80003766d160,ffff80003766d0b0) at sys_ioctl+0x678 syscall(ffff80003766d160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x650ac0bb3d0, 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(ffffffff830ac3da) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83063374,ffffffff83030f37,83,ffffffff830a14f2) at __assert+0x29 rtmap_grow(18,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(17) at rtable_add+0x279 if_createrdomain(17,ffff800001176000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806dfccbe8,8020699f,ffff80003766cf80,ffff8000376662b0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff8000376662b0,ffff80003766d160,ffff80003766d0b0) at sys_ioctl+0x678 syscall(ffff80003766d160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x650ac0bb3d0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003766ccb0 rbx 0x21 rdx 0 rcx 0 rax 0xffff8000376662b0 r8 0 r9 0x8080808080808080 r10 0x33e2551e67286885 r11 0xc13f89ed79a6cc2f r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff82287535 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003766cca0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=194344 pid=73473 tcnt=3 stat=onproc flags process=8000000 proc=4000000 runpri=76, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000376676f0,0xffff800037666f68 process=0xffff80002a466f20 user=0xffff800037668000, vmspace=0xfffffd8070bef568 estcpu=27, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23472 444284 64489 0 2 0x8000000 syz-executor 97140 294779 79491 0 2 0x8000000 syz-executor 97140 399918 79491 0 3 0xc000080 fsleep syz-executor 32451 114988 65919 0 2 0x8000000 syz-executor 32451 176655 65919 0 2 0xc000000 syz-executor 32451 417352 65919 0 3 0xc000080 fsleep syz-executor 73473 323653 12846 0 2 0x8000000 syz-executor 73473 319242 12846 0 2 0xc000000 syz-executor *73473 194344 12846 0 7 0xc000000 syz-executor 51460 207987 88915 0 2 0xc081000 syz-executor 51460 174893 88915 0 3 0xc003000 suspend syz-executor 72149 195842 58846 0 2 0x8100002 sh 79491 97394 88229 0 2 0x8000482 syz-executor 58846 39211 88229 0 3 0x8000082 wait syz-executor 47696 193027 88229 0 2 0x8000002 syz-executor 65919 6646 88229 0 2 0x8000482 syz-executor 88915 77433 88229 0 3 0x8000082 wait syz-executor 64489 308348 88229 0 2 0x8000482 syz-executor 12846 351216 88229 0 2 0x8000482 syz-executor 1456 512859 88229 0 2 0x8000002 syz-executor 60160 507417 1 0 3 0x18100083 ttyin getty 28576 158587 0 0 3 0x14200 bored sosplice 99660 97625 0 0 3 0x14200 acct acct 88229 462859 23032 0 3 0x8000082 kqread syz-executor 23032 22707 37617 0 3 0x810008a sigsusp ksh 37617 261251 54720 0 3 0x18000098 kqread sshd-session 54720 493955 39830 0 3 0x18000092 kqread sshd-session 39830 421331 1 0 3 0x18000088 kqread sshd 3975 257846 4371 73 2 0x19100010 syslogd 4371 404284 1 0 3 0x18100082 sbwait syslogd 73120 28583 1 0 3 0x18100080 kqread resolvd 60010 498341 10567 77 3 0x18100092 kqread dhcpleased 38224 106829 10567 77 3 0x18100092 kqread dhcpleased 10567 163716 1 0 3 0x18000080 kqread dhcpleased 99801 131226 0 0 3 0x14200 bored smr 12556 242951 0 0 2 0x14200 zerothread 63110 16150 0 0 3 0x14200 aiodoned aiodoned 47128 386907 0 0 3 0x14200 syncer update 60534 320021 0 0 3 0x14200 cleaner cleaner 55287 272389 0 0 3 0x14200 reaper reaper 67990 281071 0 0 3 0x14200 pgdaemon pagedaemon 18182 418047 0 0 3 0x14200 bored viomb 96160 102177 0 0 3 0x40014200 acpi0 acpi0 43093 241033 0 0 3 0x14200 bored softnet3 83013 100660 0 0 3 0x14200 bored softnet2 15206 163897 0 0 3 0x14200 bored softnet1 90133 396614 0 0 3 0x14200 bored softnet0 18790 227530 0 0 3 0x14200 bored systqmp 67560 325263 0 0 3 0x14200 bored systq 57987 309772 0 0 2 0x40014200 softclock 77252 455188 0 0 3 0x40014200 idle0 1 262467 0 0 3 0x8000082 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 10199 10151K 10417K 166960K 11974 0 pcb 20 13K 14K 166960K 129 0 rtable 237 7K 7K 166960K 1195 0 pf 30 12K 14K 166960K 97 0 ifaddr 42 7K 7K 166960K 154 0 ifgroup 50 2K 2K 166960K 166 0 sysctl 4 1K 2K 166960K 5 0 counters 30 17K 17K 166960K 60 0 ioctlops 0 0K 4K 166960K 91 0 iov 0 0K 16K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1534 96K 97K 166960K 2176 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 72K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 79 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 97K 166960K 815 0 sigio 0 0K 0K 166960K 70 0 proc 58 59K 116K 166960K 1204 0 subproc 104 6K 7K 166960K 429 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 59 0 in_multi 99 7K 7K 166960K 386 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 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 702 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 212 72K 100K 166960K 7540 0 UVM aobj 15 2K 2K 166960K 15 0 pinsyscall 37 74K 98K 166960K 2482 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 37 0 NDP 11 0K 2K 166960K 107 0 temp 75 6816K 6943K 166960K 16249 0 kqueue 13 20K 28K 166960K 73 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 115 0 112 1 0 1 1 0 8 0 rtentry 112 393 0 283 4 0 4 4 0 8 0 unpcb 144 437 0 415 7 5 2 6 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 808 116 0 112 2 1 1 2 0 8 0 arp 88 69 0 52 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 8 0 4 1 0 1 1 0 8 0 inpcb 336 689 0 676 8 6 2 8 0 8 0 nd6 104 102 0 77 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 33 0 25 1 0 1 1 0 8 0 ppxss 1072 3 0 3 1 1 0 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfrule 1344 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1570 0 1111 29 0 29 29 0 8 0 art_table 32 1571 0 1111 4 0 4 4 0 8 0 art_node 16 391 0 291 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semapl 112 76 0 66 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2159 0 620 97 0 97 97 0 8 0 ffsino 240 2159 0 620 91 0 91 91 0 8 0 nchpl 144 2810 0 1113 64 0 64 64 0 8 0 uvmvnodes 80 2973 0 0 61 0 61 61 0 8 0 vnodes 216 2973 0 0 166 0 166 166 0 8 0 namei 1024 11718 0 11716 2 1 1 2 0 8 0 vcpupl 3904 4 0 0 1 0 1 1 0 8 0 vmpool 664 6 0 2 1 0 1 1 0 8 0 kstatmem 264 82 0 60 2 0 2 2 0 8 0 scxspl 216 15908 0 15908 9 7 2 8 1 8 2 plimitpl 152 116 0 100 1 0 1 1 0 8 0 sigapl 424 1045 0 999 7 1 6 7 0 8 0 futexpl 64 5981 0 5978 1 0 1 1 0 8 0 knotepl 120 13645 0 13598 10 7 3 9 0 8 1 kqueuepl 184 110 0 101 1 0 1 1 0 8 0 pipepl 288 215 0 188 3 0 3 3 0 8 0 fdescpl 432 1027 0 999 5 1 4 5 0 8 0 filepl 120 5318 0 5069 15 5 10 14 0 8 1 lockfpl 104 109 0 106 1 0 1 1 0 8 0 lockfspl 48 54 0 51 1 0 1 1 0 8 0 sessionpl 144 47 0 39 1 0 1 1 0 8 0 pgrppl 48 89 0 73 1 0 1 1 0 8 0 ucredpl 104 627 0 616 1 0 1 1 0 8 0 zombiepl 144 1038 0 1038 2 1 1 1 0 8 1 processpl 1096 1045 0 999 4 0 4 4 0 8 0 procpl 648 1563 0 1510 6 0 6 6 0 8 0 sockpl 504 1244 0 1206 31 25 6 26 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 6215 0 6120 25 10 15 25 0 8 2 mtagpl 96 12 0 11 1 0 1 1 0 8 0 mbufpl 256 12066 0 11798 22 4 18 19 0 8 0 bufpl 280 6766 0 521 447 0 447 447 0 8 0 anonpl 24 229939 0 226710 126 76 50 103 0 187 21 amapchunkpl 152 24890 0 24451 71 33 38 52 0 158 18 amappl16 200 4893 0 4872 14 12 2 14 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 157 0 147 1 0 1 1 0 8 0 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 2042 0 2012 3 1 2 3 0 8 0 amappl11 160 137 0 127 1 0 1 1 0 8 0 amappl10 152 30 0 30 1 1 0 1 0 8 0 amappl9 144 122 0 122 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 144 0 134 1 0 1 1 0 8 0 amappl6 120 415 0 413 1 0 1 1 0 8 0 amappl5 112 231 0 222 1 0 1 1 0 8 0 amappl4 104 359 0 345 1 0 1 1 0 8 0 amappl3 96 4682 0 4580 5 1 4 4 0 8 1 amappl2 88 950 0 894 2 0 2 2 0 8 0 amappl1 80 11066 0 10534 14 2 12 14 0 8 0 amappl 88 6992 0 6838 6 1 5 5 0 92 0 dma4096 4096 2 0 2 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1033 0 1001 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1033 0 1001 1 0 1 1 0 8 0 vmmpekpl 168 9824 0 9775 3 0 3 3 0 8 0 vmmpepl 168 71296 0 69636 85 5 80 80 0 357 1 vmsppl 344 1032 0 1001 4 0 4 4 0 8 0 rwobjpl 24 26925 0 23088 24 0 24 24 0 8 0 pdppl 4096 2072 0 2006 152 80 72 82 0 8 6 pvpl 32 585365 0 576180 523 310 213 389 0 265 133 pmappl 216 1032 0 1001 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 474 0 132 11 0 11 11 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(ffffffff830ac3da) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83063374,ffffffff83030f37,83,ffffffff830a14f2) at __assert+0x29 rtmap_grow(18,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(17) at rtable_add+0x279 if_createrdomain(17,ffff800001176000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806dfccbe8,8020699f,ffff80003766cf80,ffff8000376662b0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff8000376662b0,ffff80003766d160,ffff80003766d0b0) at sys_ioctl+0x678 syscall(ffff80003766d160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x650ac0bb3d0, 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(ffffffff830ac3da) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83063374,ffffffff83030f37,83,ffffffff830a14f2) at __assert+0x29 rtmap_grow(18,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(17) at rtable_add+0x279 if_createrdomain(17,ffff800001176000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806dfccbe8,8020699f,ffff80003766cf80,ffff8000376662b0) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff8000376662b0,ffff80003766d160,ffff80003766d0b0) at sys_ioctl+0x678 syscall(ffff80003766d160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x650ac0bb3d0, count: -10