login: 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 *337202 44203 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83339022) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a266,ffffffff833594f0,84,ffffffff833ce96b) 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,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014857c8,8020699f,ffff80003c998e70,ffff80002a7cc550) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7cc550,ffff80003c999040,ffff80003c998f90) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c999040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c999040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde6dab5a80, 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(ffffffff83339022) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a266,ffffffff833594f0,84,ffffffff833ce96b) 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,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014857c8,8020699f,ffff80003c998e70,ffff80002a7cc550) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7cc550,ffff80003c999040,ffff80003c998f90) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c999040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c999040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde6dab5a80, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c998ba0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7cc550 r8 0x101010101010101 r9 0x8080808080808080 r10 0x742cf55c91b33420 r11 0xe768eb77b7ad0a3e r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff819880d5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c998b90 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=337202 pid=44203 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7cc7e8,0xffffffff838e31c0 process=0xffff80003a529218 user=0xffff80003c994000, vmspace=0xfffffd806ba34d00 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 44203 482351 48933 0 3 0x80 fsleep syz-executor 44203 135655 48933 0 2 0x4000000 syz-executor *44203 337202 48933 0 7 0x4000000 syz-executor 20590 522480 10490 0 3 0x80 fsleep syz-executor 20590 87273 10490 0 2 0x4000000 syz-executor 24272 257463 42940 0 3 0x80 fsleep syz-executor 24272 474606 42940 0 3 0x4000000 smrbar syz-executor 10490 353696 92112 0 2 0xc82 syz-executor 16764 28866 4093 0 3 0x80 fsleep syz-executor 16764 506461 4093 0 3 0x4000080 fifor syz-executor 64881 128173 0 0 3 0x14200 acct acct 16829 427103 52686 0 3 0x80 fsleep syz-executor 16829 297812 52686 0 3 0x4000080 wsevent_read syz-executor 96978 492582 39576 0 3 0x80 fsleep syz-executor 96978 39743 39576 0 3 0x4000080 ttyin syz-executor 14784 512040 69092 0 3 0x80 fsleep syz-executor 14784 211052 69092 0 3 0x4000080 kqsel syz-executor 43441 340064 58099 0 3 0x80 fsleep syz-executor 43441 82459 58099 0 3 0x4000080 msgwait syz-executor 43441 29581 58099 0 3 0x4000080 fsleep syz-executor 43441 450747 58099 0 3 0x4000080 fsleep syz-executor 14735 452456 1 0 3 0x100083 ttyin getty 82302 137710 0 0 3 0x14200 bored sosplice 39576 39495 92112 0 2 0xc82 syz-executor 69092 243076 92112 0 2 0xc82 syz-executor 58099 95086 92112 0 2 0xc82 syz-executor 52686 359244 92112 0 2 0xc82 syz-executor 4093 60363 92112 0 2 0xc82 syz-executor 42940 332065 92112 0 2 0xc82 syz-executor 48933 86827 92112 0 2 0xc82 syz-executor 92112 233774 7619 0 3 0x82 kqread syz-executor 7619 285095 87344 0 3 0x10008a sigsusp ksh 87344 348433 18106 0 3 0x98 kqread sshd-session 18106 304299 89234 0 3 0x92 kqread sshd-session 89234 22229 1 0 3 0x88 kqread sshd 15586 479900 76711 73 3 0x1100090 kqread syslogd 76711 501288 1 0 3 0x100082 sbwait syslogd 45402 363274 1 0 3 0x100080 kqread resolvd 65186 193921 35027 77 3 0x100092 kqread dhcpleased 99352 354874 35027 77 3 0x100092 kqread dhcpleased 35027 342237 1 0 3 0x80 kqread dhcpleased 66831 215913 0 0 3 0x14200 bored smr 73173 457022 0 0 2 0x14200 zerothread 91302 215940 0 0 3 0x14200 aiodoned aiodoned 8796 396620 0 0 3 0x14200 syncer update 4492 22347 0 0 3 0x14200 cleaner cleaner 59575 491554 0 0 3 0x14200 reaper reaper 91400 281714 0 0 3 0x14200 pgdaemon pagedaemon 12178 142428 0 0 3 0x14200 bored viomb 83738 146762 0 0 3 0x40014200 acpi0 acpi0 35646 174124 0 0 3 0x14200 bored softnet0 32838 307223 0 0 3 0x14200 smrbar systqmp 78090 300874 0 0 3 0x14200 bored systq 95334 417124 0 0 3 0x40014200 tmoslp softclock 23612 77635 0 0 3 0x40014200 idle0 1 128909 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 10191 11185K 11437K 166960K 11845 0 pcb 17 12K 12K 166960K 80 0 rtable 215 7K 7K 166960K 351 0 pf 29 12K 17K 166960K 71 0 ifaddr 38 6K 7K 166960K 65 0 ifgroup 46 2K 2K 166960K 92 0 sysctl 3 1K 9K 166960K 10 0 counters 31 17K 18K 166960K 49 0 ioctlops 0 0K 4K 166960K 117 0 iov 0 0K 12K 166960K 148 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1400 88K 88K 166960K 1752 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 22 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 488 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 124K 166960K 552 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 74 0 in_multi 88 6K 7K 166960K 124 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 482 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 235 159K 174K 166960K 5801 0 UVM aobj 8 2K 2K 166960K 9 0 pinsyscall 39 78K 96K 166960K 1535 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 24 0 NDP 13 0K 2K 166960K 45 0 temp 52 8637K 8707K 166960K 16104 0 kqueue 16 24K 28K 166960K 97 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 98 0 95 2 1 1 2 0 8 0 rtentry 136 116 0 27 4 0 4 4 0 8 0 unpcb 144 205 0 186 2 1 1 2 0 8 0 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 147 0 136 5 3 2 4 0 8 0 arp 96 13 0 4 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 1 1 0 1 1 0 8 0 inpcb 328 346 0 331 5 3 2 4 0 8 0 ip6q 72 5 0 2 1 0 1 1 0 8 0 ip6af 40 7 0 4 1 0 1 1 0 8 0 nd6 112 19 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 12 0 12 1 1 0 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 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 384 1 0 0 1 0 1 1 0 8 0 pfrule 1344 4 0 4 1 1 0 1 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 556 0 158 29 4 25 29 0 8 0 art_table 40 558 0 158 5 0 5 5 0 8 0 art_node 32 116 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 9 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2224 0 728 95 0 95 95 0 8 0 ffsino 256 2224 0 728 95 0 95 95 0 8 0 nchpl 144 2885 0 1198 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 2568 0 0 53 0 53 53 0 8 0 vnodes 216 2568 0 0 143 0 143 143 0 8 0 namei 1024 9384 0 9383 4 3 1 2 0 8 0 kstatmem 264 52 0 32 3 1 2 3 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 15124 0 15124 15 14 1 8 1 8 1 plimitpl 152 86 0 70 1 0 1 1 0 8 0 sigapl 424 763 0 718 7 1 6 6 0 8 0 knotepl 120 18605 0 18554 16 14 2 16 0 8 0 kqueuepl 184 226 0 214 6 5 1 4 0 8 0 pipepl 304 140 0 111 3 0 3 3 0 8 0 fdescpl 448 746 0 716 5 1 4 5 0 8 0 filepl 120 3933 0 3706 11 3 8 11 0 8 0 lockfpl 104 132 0 129 1 0 1 1 0 8 0 lockfspl 48 60 0 57 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 36 0 20 1 0 1 1 0 8 0 ucredpl 104 461 0 449 1 0 1 1 0 8 0 zombiepl 144 722 0 722 1 0 1 1 0 8 1 processpl 1152 763 0 718 4 0 4 4 0 8 0 procpl 664 1286 0 1230 6 1 5 6 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 552 660 0 623 5 2 3 5 0 8 0 mcl64k 65536 35 0 34 2 1 1 1 0 8 0 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 2886 0 2832 14 6 8 14 0 8 0 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 663 0 660 2 1 1 2 0 8 0 mtagpl 96 8 0 5 2 1 1 1 0 8 0 mbufpl 256 7337 0 7190 13 0 13 13 0 8 0 bufpl 280 6718 0 490 445 0 445 445 0 8 0 anonpl 24 150216 0 147000 71 36 35 68 0 187 0 amapchunkpl 152 18653 0 18151 32 11 21 30 0 158 1 amappl16 200 3321 0 3291 34 30 4 27 0 8 0 amappl14 184 110 0 100 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 1369 0 1339 3 1 2 3 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 259 0 259 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 187 0 184 1 0 1 1 0 8 0 amappl5 112 115 0 109 1 0 1 1 0 8 0 amappl4 104 277 0 260 1 0 1 1 0 8 0 amappl3 96 3059 0 2963 3 0 3 3 0 8 0 amappl2 88 977 0 904 2 0 2 2 0 8 0 amappl1 80 9478 0 8927 13 0 13 13 0 8 0 amappl 88 5084 0 4915 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 2 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 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 746 0 716 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 746 0 716 1 0 1 1 0 8 0 vmmpekpl 168 7266 0 7235 2 0 2 2 0 8 0 vmmpepl 168 53306 0 51408 104 11 93 103 0 357 0 vmsppl 368 745 0 716 4 1 3 4 0 8 0 rwobjpl 40 19621 0 16191 38 1 37 38 0 8 0 pdppl 4096 1498 0 1432 102 34 68 82 0 8 2 pvpl 32 351347 0 342423 145 45 100 145 0 265 0 pmappl 216 745 0 716 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 383 0 60 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(ffffffff83339022) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a266,ffffffff833594f0,84,ffffffff833ce96b) 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,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014857c8,8020699f,ffff80003c998e70,ffff80002a7cc550) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7cc550,ffff80003c999040,ffff80003c998f90) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c999040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c999040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde6dab5a80, 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(ffffffff83339022) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a266,ffffffff833594f0,84,ffffffff833ce96b) 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,ffff800001476800) at if_createrdomain+0x40 sys/net/if.c:1978 ifioctl(ffff8000014857c8,8020699f,ffff80003c998e70,ffff80002a7cc550) at ifioctl+0x1c06 sys/net/if.c:2327 sys_ioctl(ffff80002a7cc550,ffff80003c999040,ffff80003c998f90) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c999040) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c999040) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde6dab5a80, count: -10