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 * 70313 57376 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8341c4ae) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd4eb,ffffffff83393bc3,83,ffffffff834129a5) 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,ffff80000147d800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff80000140dad0,8020699f,ffff80003c97b700,ffff80002a7f2538) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f2538,ffff80003c97b8e0,ffff80003c97b830) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b8e0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b8e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed5bef8da30, 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(ffffffff8341c4ae) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd4eb,ffffffff83393bc3,83,ffffffff834129a5) 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,ffff80000147d800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff80000140dad0,8020699f,ffff80003c97b700,ffff80002a7f2538) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f2538,ffff80003c97b8e0,ffff80003c97b830) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b8e0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b8e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed5bef8da30, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c97b430 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7f2538 r8 0x101010101010101 r9 0x8080808080808080 r10 0x49235987fb6d5260 r11 0xcb7d49e783a48be9 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff817ad545 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c97b420 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=70313 pid=57376 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=77, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f22a8,0xffff80003c9534c0 process=0xffff8000ffff6fe0 user=0xffff80003c976000, vmspace=0xfffffd806c08c5b0 estcpu=27, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 47830 205258 5144 0 2 0 syz-executor 47830 5788 5144 0 3 0x4000080 fsleep syz-executor 47830 69405 5144 0 2 0x4000000 syz-executor 63198 120724 11414 0 2 0 syz-executor 63198 443520 11414 0 3 0x4000080 fsleep syz-executor 63198 356336 11414 0 3 0x4000080 fsleep syz-executor 63198 321075 11414 0 3 0x4000080 fsleep syz-executor 33291 55596 69117 0 2 0 syz-executor 33291 52365 69117 0 3 0x4000080 fsleep syz-executor 33291 23670 69117 0 3 0x4000080 fsleep syz-executor 33291 368896 69117 0 3 0x4000080 fsleep syz-executor 26061 327584 60584 0 2 0 syz-executor 26061 159238 60584 0 3 0x4000080 fsleep syz-executor 26061 471052 60584 0 3 0x4000080 fsleep syz-executor 57376 396063 3756 0 2 0 syz-executor 57376 350565 3756 0 2 0x4000000 syz-executor *57376 70313 3756 0 7 0x4000000 syz-executor 57376 447903 3756 0 2 0x4000000 syz-executor 52190 389484 72365 0 2 0x2 syz-executor 10171 251138 72365 0 2 0x3 syz-executor 69117 19316 72365 0 2 0x3 syz-executor 11414 306822 72365 0 2 0x3 syz-executor 60584 15489 72365 0 2 0x3 syz-executor 3756 336696 72365 0 2 0x3 syz-executor 10353 149030 72365 0 2 0x2 syz-executor 5144 469037 72365 0 2 0x3 syz-executor 72365 113661 69994 0 3 0x82 kqread syz-executor 69994 301621 54091 0 3 0x10008a sigsusp ksh 54091 255228 42262 0 3 0x98 kqread sshd-session 42262 6997 22300 0 3 0x92 kqread sshd-session 82925 422074 1 0 3 0x100083 ttyin getty 22300 229280 1 0 3 0x88 kqread sshd 72487 139730 23191 73 3 0x1100090 kqread syslogd 23191 65986 1 0 3 0x100082 sbwait syslogd 51172 62492 1 0 3 0x100080 kqread resolvd 55258 135136 34077 77 3 0x100092 kqread dhcpleased 52862 228492 34077 77 3 0x100092 kqread dhcpleased 34077 251519 1 0 3 0x80 kqread dhcpleased 5155 476016 0 0 3 0x14200 bored smr 3586 210661 0 0 2 0x14200 zerothread 26685 429063 0 0 3 0x14200 aiodoned aiodoned 30032 374290 0 0 3 0x14200 syncer update 60241 324934 0 0 3 0x14200 cleaner cleaner 62835 201222 0 0 3 0x14200 reaper reaper 8161 333296 0 0 3 0x14200 pgdaemon pagedaemon 55575 113155 0 0 3 0x14200 bored viomb 5638 232636 0 0 3 0x40014200 acpi0 acpi0 74327 98740 0 0 3 0x14200 bored softnet3 45756 377937 0 0 3 0x14200 bored softnet2 43770 224558 0 0 3 0x14200 bored softnet1 37274 518761 0 0 3 0x14200 bored softnet0 18554 189806 0 0 3 0x14200 bored systqmp 21915 446191 0 0 3 0x14200 bored systq 21561 320194 0 0 3 0x40014200 tmoslp softclock 61468 250362 0 0 3 0x40014200 idle0 1 50684 0 0 3 0x80082 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 10179 11061K 11249K 166960K 11594 0 pcb 18 14K 16K 166960K 131 0 rtable 226 6K 7K 166960K 375 0 pf 31 13K 14K 166960K 45 0 ifaddr 41 7K 7K 166960K 49 0 ifgroup 50 2K 2K 166960K 67 0 sysctl 3 1K 1K 166960K 3 0 counters 30 17K 17K 166960K 35 0 ioctlops 0 0K 4K 166960K 41 0 iov 0 0K 17K 166960K 79 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1343 85K 85K 166960K 1497 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 93K 166960K 310 0 sigio 0 0K 0K 166960K 72 0 proc 60 59K 100K 166960K 496 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 21 0 in_multi 95 7K 7K 166960K 103 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 71 325K 325K 166960K 71 0 exec 0 0K 1K 166960K 434 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 216 158K 168K 166960K 4320 0 UVM aobj 76 3K 3K 166960K 76 0 pinsyscall 36 72K 96K 166960K 1342 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 13 0 NDP 11 0K 1K 166960K 31 0 temp 35 8674K 8738K 166960K 7968 0 kqueue 14 22K 26K 166960K 48 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 46 0 43 1 0 1 1 0 8 0 rtentry 136 117 0 14 4 0 4 4 0 8 0 unpcb 144 258 0 243 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 38 0 34 1 0 1 1 0 8 0 arp 88 20 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 344 335 0 325 8 6 2 7 0 8 1 nd6 104 25 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 2 0 2 2 1 1 1 0 8 1 pppxif 1384 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 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 463 0 28 29 0 29 29 0 8 0 art_table 32 464 0 28 4 0 4 4 0 8 0 art_node 16 116 0 22 1 0 1 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 73 0 0 3 0 3 3 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1887 0 389 95 0 95 95 0 8 0 ffsino 248 1888 0 389 95 0 95 95 0 8 0 nchpl 144 2338 0 658 63 0 63 63 0 8 0 uvmvnodes 80 2045 0 0 42 0 42 42 0 8 0 vnodes 216 2045 0 0 114 0 114 114 0 8 0 namei 1024 7503 0 7502 2 1 1 2 0 8 0 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 7622 0 7622 9 7 2 8 1 8 2 plimitpl 152 55 0 39 1 0 1 1 0 8 0 sigapl 424 590 0 547 6 0 6 6 0 8 0 futexpl 64 2905 0 2896 1 0 1 1 0 8 0 knotepl 120 8557 0 8509 2 0 2 2 0 8 0 kqueuepl 184 61 0 51 1 0 1 1 0 8 0 pipepl 296 114 0 87 3 0 3 3 0 8 0 fdescpl 440 574 0 547 5 1 4 5 0 8 0 filepl 120 2781 0 2567 11 3 8 11 0 8 0 lockfpl 104 75 0 72 1 0 1 1 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 29 0 13 1 0 1 1 0 8 0 ucredpl 104 261 0 249 1 0 1 1 0 8 0 zombiepl 144 596 0 596 1 0 1 1 0 8 1 processpl 1112 590 0 547 4 0 4 4 0 8 0 procpl 656 899 0 843 7 1 6 6 0 8 0 sockpl 528 644 0 616 7 4 3 7 0 8 1 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 2644 0 2592 15 7 8 14 0 8 1 mcl2k 2048 342 0 339 1 0 1 1 0 8 0 mtagpl 96 10 0 4 1 0 1 1 0 8 0 mbufpl 256 6753 0 6559 46 33 13 45 0 8 0 bufpl 280 2626 0 117 180 0 180 180 0 8 0 anonpl 24 96027 0 92966 32 1 31 31 0 187 9 amapchunkpl 152 12743 0 12295 24 2 22 22 0 158 2 amappl16 200 1376 0 1352 5 2 3 4 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 116 0 106 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 1186 0 1159 3 1 2 3 0 8 0 amappl11 160 63 0 52 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 26 0 25 1 0 1 1 0 8 0 amappl7 128 107 0 97 1 0 1 1 0 8 0 amappl6 120 168 0 164 1 0 1 1 0 8 0 amappl5 112 111 0 105 1 0 1 1 0 8 0 amappl4 104 286 0 271 1 0 1 1 0 8 0 amappl3 96 2361 0 2259 4 0 4 4 0 8 1 amappl2 88 605 0 548 2 0 2 2 0 8 0 amappl1 80 8621 0 8081 13 1 12 13 0 8 0 amappl 88 3637 0 3485 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 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 75 0 0 2 0 2 2 0 8 0 uaddrrnd 24 574 0 547 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 574 0 547 1 0 1 1 0 8 0 vmmpekpl 168 6040 0 6003 2 0 2 2 0 8 0 vmmpepl 168 41550 0 39802 84 0 84 84 0 357 1 vmsppl 360 573 0 547 4 1 3 4 0 8 0 rwobjpl 32 15378 0 12421 24 0 24 24 0 8 0 pdppl 4096 1155 0 1094 99 32 67 81 0 8 6 pvpl 32 258048 0 249857 87 6 81 82 0 265 3 pmappl 216 573 0 547 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 300 0 78 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(ffffffff8341c4ae) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd4eb,ffffffff83393bc3,83,ffffffff834129a5) 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,ffff80000147d800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff80000140dad0,8020699f,ffff80003c97b700,ffff80002a7f2538) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f2538,ffff80003c97b8e0,ffff80003c97b830) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b8e0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b8e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed5bef8da30, 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(ffffffff8341c4ae) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833cd4eb,ffffffff83393bc3,83,ffffffff834129a5) 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,ffff80000147d800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff80000140dad0,8020699f,ffff80003c97b700,ffff80002a7f2538) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a7f2538,ffff80003c97b8e0,ffff80003c97b830) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b8e0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b8e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed5bef8da30, count: -10