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 *356987 17191 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333e4e7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83379b51,ffffffff8335c6f9,84,ffffffff833d21d2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001482800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fc31c8,8020699f,ffff80003153bce0,ffff80003c99b4e8) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003c99b4e8,ffff80003153beb0,ffff80003153be00) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003153beb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153beb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x992c8bad720, 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(ffffffff8333e4e7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83379b51,ffffffff8335c6f9,84,ffffffff833d21d2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001482800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fc31c8,8020699f,ffff80003153bce0,ffff80003c99b4e8) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003c99b4e8,ffff80003153beb0,ffff80003153be00) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003153beb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153beb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x992c8bad720, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003153ba10 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003c99b4e8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb1fc4b2436bbbdb r11 0x69772ef870b6adbb r12 0 r13 0x19 r14 0 r15 0x1 rip 0xffffffff8141e945 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003153ba00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=356987 pid=17191 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c99b250,0xffff80003c99a800 process=0xffff80003c961220 user=0xffff800031536000, vmspace=0xfffffd806bbbb5d0 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55658 450733 75161 0 2 0 syz-executor 55658 266109 75161 0 2 0x4000000 syz-executor 57730 474531 85156 0 2 0 syz-executor 57730 327225 85156 0 3 0x4000080 fsleep syz-executor 63142 438747 14640 0 2 0 syz-executor 19176 60787 10300 0 2 0 syz-executor 19176 343004 10300 0 2 0x4000001 syz-executor 51250 321642 32037 0 2 0 syz-executor 51250 59303 32037 0 3 0x4000080 lockf syz-executor 51250 27947 32037 0 3 0x4000080 lockf syz-executor 51250 370867 32037 0 2 0x4000000 syz-executor 51250 40123 32037 0 2 0x4000000 syz-executor 17191 490212 8300 0 2 0 syz-executor 17191 78499 8300 0 2 0x4000000 syz-executor *17191 356987 8300 0 7 0x4000000 syz-executor 88592 91544 16202 0 2 0x2 ndp 16202 46163 67674 0 3 0x10008a sigsusp sh 67674 294998 42240 0 3 0x82 wait syz-executor 14640 169206 42240 0 3 0x82 nanoslp syz-executor 93427 409073 0 0 3 0x14200 acct acct 32037 67097 42240 0 3 0x82 nanoslp syz-executor 61331 438100 1 0 3 0x100083 ttyin getty 8300 470870 42240 0 3 0x82 nanoslp syz-executor 26958 235438 42240 0 3 0x82 nanoslp syz-executor 53669 344828 0 0 3 0x14200 bored sosplice 75161 483147 42240 0 3 0x82 nanoslp syz-executor 85156 382129 42240 0 3 0x82 nanoslp syz-executor 10300 80856 42240 0 2 0x3 syz-executor 42240 308724 37885 0 3 0x82 kqread syz-executor 37885 272274 93736 0 3 0x10008a sigsusp ksh 93736 326740 35642 0 3 0x98 kqread sshd-session 35642 159134 37803 0 3 0x92 kqread sshd-session 37803 431847 1 0 3 0x88 kqread sshd 64257 135695 36969 73 3 0x1100090 kqread syslogd 36969 210971 1 0 3 0x100082 sbwait syslogd 32790 390105 1 0 3 0x100080 kqread resolvd 36915 390750 64639 77 3 0x100092 kqread dhcpleased 28103 36119 64639 77 3 0x100092 kqread dhcpleased 64639 152478 1 0 3 0x80 kqread dhcpleased 48366 497359 0 0 3 0x14200 bored smr 61129 242207 0 0 2 0x14200 zerothread 10987 511619 0 0 3 0x14200 aiodoned aiodoned 22405 306035 0 0 2 0x14e00 update 35964 492415 0 0 3 0x14200 cleaner cleaner 66798 421476 0 0 3 0x14200 reaper reaper 38160 523218 0 0 3 0x14200 pgdaemon pagedaemon 3165 26948 0 0 3 0x14200 bored viomb 99888 220832 0 0 3 0x40014200 acpi0 acpi0 91480 355785 0 0 3 0x14200 bored softnet7 14329 230874 0 0 3 0x14200 bored softnet6 11352 161782 0 0 3 0x14200 bored softnet5 32349 183652 0 0 3 0x14200 bored softnet4 26678 517892 0 0 3 0x14200 bored softnet3 86696 165737 0 0 3 0x14200 bored softnet2 3906 508139 0 0 3 0x14200 bored softnet1 12553 415041 0 0 3 0x14200 bored softnet0 50946 131052 0 0 3 0x14200 bored systqmp 49263 289626 0 0 3 0x14200 bored systq 95792 268642 0 0 3 0x40014200 tmoslp softclock 51361 486318 0 0 3 0x40014200 idle0 1 494889 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10181 11050K 11139K 166960K 12064 0 pcb 17 17K 22K 166960K 546 0 rtable 189 9K 9K 166960K 852 0 pf 31 13K 16K 166960K 197 0 ifaddr 34 6K 8K 166960K 194 0 ifgroup 49 2K 2K 166960K 281 0 sysctl 4 1K 9K 166960K 52 0 counters 31 17K 18K 166960K 119 0 ioctlops 0 0K 4K 166960K 226 0 iov 0 0K 24K 166960K 97 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1391 87K 88K 166960K 2445 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 28 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 66 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 240K 166960K 1715 0 sigio 0 0K 0K 166960K 14 0 proc 61 59K 83K 166960K 1237 0 subproc 72 4K 4K 166960K 262 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 376 0 in_multi 66 4K 7K 166960K 385 0 ether_multi 1 0K 0K 166960K 12 0 mrt 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 861 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 229 153K 171K 166960K 16682 0 UVM aobj 55 4K 4K 166960K 58 0 pinsyscall 40 80K 94K 166960K 3300 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 85 0 NDP 10 0K 2K 166960K 138 0 temp 78 8643K 8718K 166960K 66847 0 kqueue 13 20K 30K 166960K 284 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 211 0 208 2 0 2 2 0 8 1 rtentry 136 325 0 261 4 0 4 4 0 8 0 unpcb 144 1215 0 1199 8 2 6 6 0 8 5 syncache 336 9 0 9 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 478 0 474 6 1 5 5 0 8 4 arp 88 38 0 26 1 0 1 1 0 8 0 ipq 40 5 0 4 1 0 1 1 0 8 0 ipqe 40 8 0 6 1 0 1 1 0 8 0 inpcb 328 1679 0 1667 14 5 9 12 0 8 7 ip6q 72 38 0 38 1 0 1 1 0 8 1 ip6af 40 73 0 73 1 0 1 1 0 8 1 nd6 104 62 0 53 1 0 1 1 0 8 0 pkpcb 40 12 0 12 2 1 1 1 0 8 1 kcovpl 48 29 0 21 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 49 0 49 1 0 1 1 0 8 1 pppxif 1384 5 0 5 1 0 1 1 0 8 1 pfrule 1344 2 0 2 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 6 0 0 6 0 6 6 0 8 0 art_heap4 256 1538 0 1262 31 6 25 30 0 8 7 art_table 40 1544 0 1262 5 0 5 5 0 8 0 art_node 32 323 0 267 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 60 0 50 1 0 1 1 0 8 0 shmpl 112 55 0 3 2 0 2 2 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 4126 0 2597 96 0 96 96 0 8 0 ffsino 256 4126 0 2597 96 0 96 96 0 8 0 nchpl 144 6107 0 5518 65 32 33 65 0 8 8 rtmask 32 6 0 6 1 0 1 1 0 8 1 uvmvnodes 80 4666 0 0 96 0 96 96 0 8 0 vnodes 216 4667 0 0 260 0 260 260 0 8 0 namei 1024 21796 0 21795 3 2 1 2 0 8 0 kstatmem 264 160 0 140 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 18472 0 18472 15 7 8 8 1 8 8 plimitpl 152 352 0 336 1 0 1 1 0 8 0 sigapl 424 1948 0 1895 8 1 7 7 0 8 1 knotepl 120 56338 0 56291 32 21 11 17 0 8 8 kqueuepl 184 620 0 611 4 0 4 4 0 8 3 pipepl 304 266 0 239 3 0 3 3 0 8 0 fdescpl 448 1923 0 1892 5 1 4 5 0 8 0 filepl 120 10974 0 10759 15 0 15 15 0 8 7 lockfpl 104 707 0 702 2 0 2 2 0 8 1 lockfspl 48 187 0 184 1 0 1 1 0 8 0 sessionpl 144 48 0 40 1 0 1 1 0 8 0 pgrppl 48 90 0 74 1 0 1 1 0 8 0 ucredpl 104 2092 0 2080 1 0 1 1 0 8 0 zombiepl 144 2968 0 2965 1 0 1 1 0 8 0 processpl 1152 1948 0 1895 5 1 4 5 0 8 0 procpl 664 4428 0 4364 7 0 7 7 0 8 1 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 552 3149 0 3118 23 13 10 16 0 8 7 mcl64k 65536 134 0 134 1 0 1 1 0 8 1 mcl16k 16384 5 0 5 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 24 0 24 2 1 1 1 0 8 1 mcl4k 4096 4326 0 4271 16 7 9 15 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 2755 0 2752 7 3 4 4 0 8 3 mtagpl 96 7 0 7 2 1 1 1 0 8 1 mbufpl 256 20063 0 19920 36 16 20 31 0 8 8 bufpl 280 5613 0 157 390 0 390 390 0 8 0 anonpl 24 253146 0 249956 49 5 44 44 0 187 15 amapchunkpl 152 55243 0 54763 44 12 32 35 0 158 13 amappl16 200 3002 0 2976 17 6 11 15 0 8 8 amappl15 192 9 0 9 2 1 1 1 0 8 1 amappl14 184 156 0 145 1 0 1 1 0 8 0 amappl13 176 1 0 1 1 1 0 1 0 8 0 amappl12 168 2867 0 2836 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 256 0 256 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 141 0 130 1 0 1 1 0 8 0 amappl6 120 385 0 380 1 0 1 1 0 8 0 amappl5 112 199 0 192 1 0 1 1 0 8 0 amappl4 104 313 0 297 1 0 1 1 0 8 0 amappl3 96 10803 0 10692 4 0 4 4 0 8 1 amappl2 88 943 0 882 2 0 2 2 0 8 0 amappl1 80 16069 0 15499 14 1 13 13 0 8 0 amappl 88 15431 0 15268 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 7 0 7 2 1 1 1 0 8 1 dma128 128 254 0 254 2 1 1 1 0 8 1 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 57 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1923 0 1892 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1923 0 1892 1 0 1 1 0 8 0 vmmpekpl 168 15757 0 15709 3 0 3 3 0 8 0 vmmpepl 168 123485 0 121563 93 0 93 93 0 357 9 vmsppl 368 1922 0 1892 4 1 3 4 0 8 0 rwobjpl 40 36863 0 31262 57 0 57 57 0 8 0 pdppl 4096 3852 0 3784 144 76 68 80 0 8 0 pvpl 32 769388 0 760986 129 8 121 121 0 265 37 pmappl 216 1922 0 1892 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 464 0 117 12 1 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:438 panic(ffffffff8333e4e7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83379b51,ffffffff8335c6f9,84,ffffffff833d21d2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001482800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fc31c8,8020699f,ffff80003153bce0,ffff80003c99b4e8) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003c99b4e8,ffff80003153beb0,ffff80003153be00) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003153beb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153beb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x992c8bad720, 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(ffffffff8333e4e7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83379b51,ffffffff8335c6f9,84,ffffffff833d21d2) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001482800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fc31c8,8020699f,ffff80003153bce0,ffff80003c99b4e8) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003c99b4e8,ffff80003153beb0,ffff80003153be00) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003153beb0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003153beb0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x992c8bad720, count: -10