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 *150993 44018 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83354ae6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338deea,ffffffff8337066b,84,ffffffff833e5ab6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001465800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014b4918,8020699f,ffff80003a51fbb0,ffff80003c94a2b8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c94a2b8,ffff80003a51fd80,ffff80003a51fcd0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a51fd80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a51fd80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8ec1a243b0, 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(ffffffff83354ae6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338deea,ffffffff8337066b,84,ffffffff833e5ab6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001465800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014b4918,8020699f,ffff80003a51fbb0,ffff80003c94a2b8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c94a2b8,ffff80003a51fd80,ffff80003a51fcd0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a51fd80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a51fd80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8ec1a243b0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003a51f8e0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003c94a2b8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5979ac4583878708 r11 0xfe7647e77bb30240 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff831249c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003a51f8d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=150993 pid=44018 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c94a020,0xffffffff838d79d8 process=0xffff8000ffff8498 user=0xffff80003a51a000, vmspace=0xfffffd806ba132f0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62122 328186 506 0 3 0x80 fsleep syz-executor 62122 58048 506 0 2 0x4000000 syz-executor 44018 310007 81118 0 3 0x80 fsleep syz-executor 44018 60996 81118 0 2 0x4000000 syz-executor *44018 150993 81118 0 7 0x4000000 syz-executor 70872 492405 47905 0 3 0x90 fsleep syz-executor 70872 52175 47905 0 3 0x4000090 kqsel syz-executor 53156 82430 19009 0 3 0x80 fsleep syz-executor 53156 425670 19009 0 3 0x4000080 fsleep syz-executor 53156 133061 19009 0 3 0x4000080 kqpoll syz-executor 53156 99590 19009 0 3 0x4000080 kqpoll syz-executor 18070 506755 67641 0 3 0x80 fsleep syz-executor 18070 521844 67641 0 3 0x4000080 piperd syz-executor 93764 482330 73579 0 3 0x80 fsleep syz-executor 93764 452094 73579 0 3 0x4000080 kqread syz-executor 94567 457367 51258 0 3 0x80 fsleep syz-executor 94567 26093 51258 0 3 0x4000080 msgwait syz-executor 6814 236154 0 0 3 0x14200 bored sosplice 67641 80328 67908 0 3 0x82 nanoslp syz-executor 47905 105597 67908 0 3 0x82 nanoslp syz-executor 506 53021 67908 0 2 0xc82 syz-executor 81118 126843 67908 0 2 0xc82 syz-executor 19009 442249 67908 0 3 0x82 nanoslp syz-executor 51258 149665 67908 0 2 0xc82 syz-executor 73579 424262 67908 0 3 0x82 nanoslp syz-executor 94836 159932 67908 0 2 0x2 syz-executor 67908 522888 36263 0 3 0x82 kqread syz-executor 36263 428149 99482 0 3 0x10008a sigsusp ksh 99482 233621 69798 0 3 0x98 kqread sshd-session 69798 443304 4961 0 3 0x92 kqread sshd-session 6909 469778 1 0 3 0x100083 ttyin getty 4961 453380 1 0 3 0x88 kqread sshd 40023 231264 30892 73 3 0x1100090 kqread syslogd 30892 46656 1 0 3 0x100082 sbwait syslogd 89492 331453 1 0 3 0x100080 kqread resolvd 4925 432304 99557 77 3 0x100092 kqread dhcpleased 86310 270117 99557 77 3 0x100092 kqread dhcpleased 99557 521368 1 0 3 0x80 kqread dhcpleased 6116 139815 0 0 3 0x14200 bored smr 15439 475013 0 0 2 0x14200 zerothread 85064 313032 0 0 3 0x14200 aiodoned aiodoned 63405 458161 0 0 3 0x14200 syncer update 54888 106386 0 0 3 0x14200 cleaner cleaner 81225 124505 0 0 3 0x14200 reaper reaper 95463 425312 0 0 3 0x14200 pgdaemon pagedaemon 79595 291409 0 0 3 0x14200 bored viomb 83105 144840 0 0 3 0x40014200 acpi0 acpi0 27968 143398 0 0 3 0x14200 bored softnet0 71907 279941 0 0 3 0x14200 bored systqmp 82890 276920 0 0 3 0x14200 bored systq 89416 119757 0 0 3 0x40014200 tmoslp softclock 73601 444025 0 0 3 0x40014200 idle0 1 302599 0 0 3 0x82 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 10181 11064K 12165K 166960K 11991 0 pcb 19 12K 12K 166960K 73 0 rtable 170 6K 7K 166960K 306 0 pf 30 13K 14K 166960K 64 0 ifaddr 35 6K 7K 166960K 55 0 ifgroup 46 2K 2K 166960K 76 0 sysctl 4 1K 9K 166960K 9 0 counters 31 17K 17K 166960K 46 0 ioctlops 0 0K 4K 166960K 80 0 iov 0 0K 20K 166960K 27 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1463 92K 93K 166960K 1814 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 90 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 487 0 sigio 1 0K 0K 166960K 13 0 proc 63 67K 124K 166960K 539 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 41 0 in_multi 78 5K 7K 166960K 105 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 449 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 222 151K 174K 166960K 5797 0 UVM aobj 14 2K 2K 166960K 14 0 pinsyscall 38 76K 96K 166960K 1504 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 10 0K 2K 166960K 36 0 temp 49 8641K 8768K 166960K 5804 0 kqueue 15 24K 34K 166960K 100 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 138 0 135 3 0 3 3 0 8 2 rtentry 136 100 0 31 4 0 4 4 0 8 0 unpcb 144 249 0 234 2 0 2 2 0 8 1 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 282 0 277 14 10 4 7 0 8 3 arp 96 11 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 328 627 0 617 18 14 4 11 0 8 3 ip6q 72 4 0 3 1 0 1 1 0 8 0 ip6af 40 8 0 7 1 0 1 1 0 8 0 nd6 112 18 0 4 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 1 0 1 0 8 0 ppxss 1072 11 0 11 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 384 2 0 2 1 1 0 1 0 8 0 pfrule 1344 3 0 3 2 1 1 1 0 8 1 rttmr 136 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 440 0 112 28 1 27 28 0 8 2 art_table 40 441 0 112 5 0 5 5 0 8 0 art_node 32 99 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 87 0 77 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2279 0 780 95 0 95 95 0 8 0 ffsino 256 2279 0 780 95 0 95 95 0 8 0 nchpl 144 2992 0 1312 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 uvmvnodes 80 2641 0 0 54 0 54 54 0 8 0 vnodes 216 2641 0 0 147 0 147 147 0 8 0 namei 1024 9698 0 9696 4 3 1 2 0 8 0 kstatmem 264 40 0 20 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 10011 0 10011 10 8 2 8 1 8 2 plimitpl 152 208 0 192 1 0 1 1 0 8 0 sigapl 424 746 0 703 6 1 5 6 0 8 0 knotepl 120 16604 0 16310 23 14 9 15 0 8 0 kqueuepl 184 194 0 179 4 0 4 4 0 8 3 pipepl 304 162 0 133 5 2 3 5 0 8 0 fdescpl 448 732 0 703 5 1 4 5 0 8 0 filepl 120 4165 0 3947 19 8 11 15 0 8 3 lockfpl 104 112 0 110 1 0 1 1 0 8 0 lockfspl 48 49 0 47 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 629 0 615 1 0 1 1 0 8 0 zombiepl 144 828 0 828 1 0 1 1 0 8 1 processpl 1152 746 0 703 4 0 4 4 0 8 0 procpl 664 1285 0 1232 6 0 6 6 0 8 1 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 552 1030 0 1002 19 12 7 11 0 8 4 mcl64k 65536 22 0 22 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 8 0 8 3 2 1 1 0 8 1 mcl4k 4096 2901 0 2846 14 6 8 14 0 8 0 mcl2k 2048 729 0 725 3 0 3 3 0 8 1 mtagpl 96 5 0 4 1 0 1 1 0 8 0 mbufpl 256 7717 0 7566 23 4 19 19 0 8 8 bufpl 280 3659 0 121 253 0 253 253 0 8 0 anonpl 24 143975 0 140782 60 20 40 45 0 187 13 amapchunkpl 152 20314 0 19845 47 13 34 34 0 158 14 amappl16 200 2315 0 2283 7 3 4 5 0 8 1 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 106 0 96 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1364 0 1335 2 0 2 2 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 24 0 24 1 1 0 1 0 8 0 amappl9 144 250 0 249 1 0 1 1 0 8 0 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 101 0 91 1 0 1 1 0 8 0 amappl6 120 207 0 204 1 0 1 1 0 8 0 amappl5 112 114 0 107 1 0 1 1 0 8 0 amappl4 104 284 0 269 1 0 1 1 0 8 0 amappl3 96 3055 0 2964 3 0 3 3 0 8 0 amappl2 88 971 0 899 2 0 2 2 0 8 0 amappl1 80 9457 0 8909 15 1 14 14 0 8 1 amappl 88 5090 0 4931 6 1 5 5 0 92 1 dma8192 8192 2 0 2 1 0 1 1 0 8 1 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 2 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 732 0 703 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 732 0 703 1 0 1 1 0 8 0 vmmpekpl 168 7211 0 7180 2 0 2 2 0 8 0 vmmpepl 168 51927 0 50084 89 0 89 89 0 357 6 vmsppl 368 731 0 703 4 1 3 4 0 8 0 rwobjpl 40 18631 0 15133 36 0 36 36 0 8 0 pdppl 4096 1470 0 1406 102 36 66 82 0 8 2 pvpl 32 349811 0 341129 139 37 102 120 0 265 22 pmappl 216 731 0 703 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 406 0 71 10 0 10 10 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(ffffffff83354ae6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338deea,ffffffff8337066b,84,ffffffff833e5ab6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001465800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014b4918,8020699f,ffff80003a51fbb0,ffff80003c94a2b8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c94a2b8,ffff80003a51fd80,ffff80003a51fcd0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a51fd80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a51fd80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8ec1a243b0, 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(ffffffff83354ae6) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8338deea,ffffffff8337066b,84,ffffffff833e5ab6) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x1f2 rtable_add(b) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(b,ffff800001465800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014b4918,8020699f,ffff80003a51fbb0,ffff80003c94a2b8) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80003c94a2b8,ffff80003a51fd80,ffff80003a51fcd0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a51fd80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a51fd80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8ec1a243b0, count: -10