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 * 39672 73533 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834154b8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833c47c9,ffffffff8338c79f,83,ffffffff8340b85b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(2,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(1,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000015ad900,8020699f,ffff80003c975570,ffff80002a7f02b0) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f02b0,ffff80003c975750,ffff80003c9756a0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c975750) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c975750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdb2ed172180, 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:438 panic(ffffffff834154b8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833c47c9,ffffffff8338c79f,83,ffffffff8340b85b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(2,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(1,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000015ad900,8020699f,ffff80003c975570,ffff80002a7f02b0) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f02b0,ffff80003c975750,ffff80003c9756a0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c975750) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c975750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdb2ed172180, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c9752a0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7f02b0 r8 0 r9 0x8080808080808080 r10 0xeed5c7b20ed269c6 r11 0x5b547deb8e12e84d r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff825d4e35 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c975290 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=39672 pid=73533 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f0cf0,0xffff80002a7f19d0 process=0xffff800033915e80 user=0xffff80003c970000, vmspace=0xfffffd8075b91178 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73533 380035 30139 0 3 0x80 fsleep syz-executor *73533 39672 30139 0 7 0x4000000 syz-executor 73533 397500 30139 0 2 0x4000000 syz-executor 86212 214749 30603 0 3 0x90 fsleep syz-executor 86212 313858 30603 0 3 0x4000090 nanoslp syz-executor 26769 324489 41898 0 3 0x80 fsleep syz-executor 26769 507775 41898 0 3 0x4000080 lockf syz-executor 94321 472687 56277 60928 3 0x90 nanoslp syz-executor 94321 200261 56277 60928 3 0x4000090 fsleep syz-executor 94321 193662 56277 60928 3 0x4000090 bell syz-executor 94321 142867 56277 60928 3 0x4000090 fsleep syz-executor 23424 36254 63197 0 3 0x80 fsleep syz-executor 23424 381880 63197 0 3 0x4000080 ttyin syz-executor 79197 472882 50991 0 3 0x80 fsleep syz-executor 79197 391571 50991 0 3 0x4000080 bpf syz-executor 67160 226412 36793 0 3 0x80 fsleep syz-executor 67160 150194 36793 0 3 0x4000080 sbwait syz-executor 67160 443043 36793 0 3 0x4000080 fsleep syz-executor 64428 247924 72921 0 3 0x80 fsleep syz-executor 64428 351199 72921 0 3 0x4000080 nanoslp syz-executor 25411 99376 0 0 3 0x14200 bored sosplice 30139 15657 23628 0 2 0x482 syz-executor 36793 405551 23628 0 2 0x482 syz-executor 50991 400639 23628 0 2 0x482 syz-executor 63197 136803 23628 0 3 0x82 nanoslp syz-executor 72921 126193 23628 0 2 0x482 syz-executor 56277 281549 23628 0 3 0x82 nanoslp syz-executor 41898 454416 23628 0 3 0x82 nanoslp syz-executor 30603 201400 23628 0 2 0x482 syz-executor 23628 226577 16861 0 2 0x2 syz-executor 16861 235963 60820 0 3 0x10008a sigsusp ksh 60820 290324 57892 0 3 0x98 kqread sshd-session 57892 337628 25637 0 3 0x92 kqread sshd-session 41726 31764 1 0 3 0x100083 ttyin getty 25637 522809 1 0 3 0x88 kqread sshd 71489 111305 56091 73 3 0x1100090 kqread syslogd 56091 302870 1 0 3 0x100082 sbwait syslogd 23175 86687 1 0 3 0x100080 kqread resolvd 5527 416883 17175 77 3 0x100092 kqread dhcpleased 79890 467319 17175 77 3 0x100092 kqread dhcpleased 17175 510984 1 0 3 0x80 kqread dhcpleased 9617 325359 0 0 3 0x14200 bored smr 70364 65691 0 0 2 0x14200 zerothread 26149 457583 0 0 3 0x14200 aiodoned aiodoned 51484 166694 0 0 3 0x14200 syncer update 40566 138066 0 0 3 0x14200 cleaner cleaner 97930 100392 0 0 3 0x14200 reaper reaper 51930 119655 0 0 3 0x14200 pgdaemon pagedaemon 74690 287661 0 0 3 0x14200 bored viomb 10121 521911 0 0 3 0x40014200 acpi0 acpi0 46742 60652 0 0 3 0x14200 bored softnet3 8766 384714 0 0 3 0x14200 bored softnet2 61285 230638 0 0 3 0x14200 bored softnet1 64316 312508 0 0 2 0x14200 softnet0 84071 168996 0 0 3 0x14200 bored systqmp 73406 16532 0 0 3 0x14200 bored systq 57260 144508 0 0 2 0x40014200 softclock 35648 290280 0 0 3 0x40014200 idle0 1 9314 0 0 3 0x82 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 10217 11233K 11373K 166960K 11711 0 pcb 17 14K 16K 166960K 218 0 rtable 219 8K 9K 166960K 499 0 pf 35 14K 18K 166960K 65 0 ifaddr 37 6K 8K 166960K 58 0 ifgroup 46 2K 2K 166960K 77 0 sysctl 3 1K 1K 166960K 3 0 counters 29 17K 17K 166960K 44 0 ioctlops 0 0K 4K 166960K 99 0 iov 1 4K 16K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1339 84K 85K 166960K 1537 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 390 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 100K 166960K 497 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 54 0 in_multi 87 6K 7K 166960K 125 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 359 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 231 160K 174K 166960K 4984 0 UVM aobj 43 3K 3K 166960K 44 0 pinsyscall 39 78K 97K 166960K 1412 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 19 0 NDP 10 0K 2K 166960K 35 0 temp 75 8684K 8750K 166960K 13420 0 kqueue 13 20K 26K 166960K 71 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 69 0 66 1 0 1 1 0 8 0 rtentry 136 154 0 58 4 0 4 4 0 8 0 unpcb 144 252 0 235 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 115 0 111 7 0 7 7 0 8 6 arp 88 19 0 5 1 0 1 1 0 8 0 inpcb 344 585 0 575 13 6 7 7 0 8 5 nd6 104 26 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 10 0 10 2 1 1 1 0 8 1 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfrktable 1344 4 0 1 1 0 1 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 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 344 1 0 0 1 0 1 1 0 8 0 pfrule 1344 1 0 0 1 0 1 1 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 475 0 68 29 1 28 29 0 8 0 art_table 32 476 0 68 4 0 4 4 0 8 0 art_node 16 119 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 1 0 1 0 8 0 semapl 112 8 0 2 1 0 1 1 0 8 0 shmpl 112 41 0 1 2 0 2 2 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1997 0 499 95 0 95 95 0 8 0 ffsino 248 1997 0 499 95 0 95 95 0 8 0 nchpl 144 2546 0 866 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 2183 0 0 45 0 45 45 0 8 0 vnodes 216 2183 0 0 122 0 122 122 0 8 0 namei 1024 8001 0 8001 3 2 1 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 38 0 18 2 0 2 2 0 8 0 scxspl 216 7743 0 7743 2 1 1 2 1 8 1 plimitpl 152 96 0 79 1 0 1 1 0 8 0 sigapl 424 669 0 622 7 1 6 7 0 8 0 futexpl 64 4012 0 4002 1 0 1 1 0 8 0 knotepl 120 12513 0 12465 23 14 9 17 0 8 5 kqueuepl 184 160 0 151 4 3 1 4 0 8 0 pipepl 296 113 0 86 3 0 3 3 0 8 0 fdescpl 440 651 0 621 5 1 4 5 0 8 0 filepl 120 3360 0 3138 12 3 9 11 0 8 0 lockfpl 104 271 0 266 2 0 2 2 0 8 0 lockfspl 48 33 0 30 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 391 0 378 1 0 1 1 0 8 0 zombiepl 144 680 0 680 1 0 1 1 0 8 1 processpl 1112 669 0 622 4 0 4 4 0 8 0 procpl 656 1094 0 1035 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 528 910 0 880 11 4 7 7 0 8 4 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 2739 0 2688 15 7 8 14 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 394 0 394 4 2 2 2 0 8 2 mtagpl 96 24 0 9 1 0 1 1 0 8 0 mbufpl 256 6994 0 6806 23 9 14 23 0 8 0 bufpl 280 2780 0 118 191 0 191 191 0 8 0 anonpl 24 92348 0 89123 44 22 22 44 0 187 0 amapchunkpl 152 15231 0 14737 33 13 20 32 0 158 1 amappl16 200 1187 0 1156 14 12 2 14 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 117 0 107 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1256 0 1226 3 1 2 3 0 8 0 amappl11 160 46 0 35 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 20 0 18 1 0 1 1 0 8 0 amappl7 128 98 0 88 1 0 1 1 0 8 0 amappl6 120 185 0 182 1 0 1 1 0 8 0 amappl5 112 108 0 102 1 0 1 1 0 8 0 amappl4 104 291 0 276 1 0 1 1 0 8 0 amappl3 96 2844 0 2732 3 0 3 3 0 8 0 amappl2 88 621 0 566 2 0 2 2 0 8 0 amappl1 80 8866 0 8312 14 2 12 14 0 8 0 amappl 88 4293 0 4126 4 0 4 4 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 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 43 0 1 1 0 1 1 0 8 0 uaddrrnd 24 651 0 621 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 651 0 621 1 0 1 1 0 8 0 vmmpekpl 168 6654 0 6620 2 0 2 2 0 8 0 vmmpepl 168 45708 0 43821 93 10 83 92 0 357 0 vmsppl 360 650 0 621 4 1 3 4 0 8 0 rwobjpl 32 15854 0 12778 25 0 25 25 0 8 0 pdppl 4096 1308 0 1242 96 30 66 82 0 8 0 pvpl 32 264920 0 256087 112 36 76 112 0 265 2 pmappl 216 650 0 621 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 283 0 55 8 0 8 8 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(ffffffff834154b8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833c47c9,ffffffff8338c79f,83,ffffffff8340b85b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(2,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(1,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000015ad900,8020699f,ffff80003c975570,ffff80002a7f02b0) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f02b0,ffff80003c975750,ffff80003c9756a0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c975750) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c975750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdb2ed172180, 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(ffffffff834154b8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833c47c9,ffffffff8338c79f,83,ffffffff8340b85b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(2,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1) at rtable_add+0x279 sys/net/rtable.c:-1 if_createrdomain(1,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000015ad900,8020699f,ffff80003c975570,ffff80002a7f02b0) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f02b0,ffff80003c975750,ffff80003c9756a0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c975750) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c975750) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdb2ed172180, count: -10