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 *211362 87305 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333a64c) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378658,ffffffff8335382c,84,ffffffff833c8458) 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,ffff800001470000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd6d20,8020699f,ffff80003a561770,ffff80002a8dc800) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a8dc800,ffff80003a561940,ffff80003a561890) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a561940) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a561940) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x68ac55ad0e0, 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(ffffffff8333a64c) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378658,ffffffff8335382c,84,ffffffff833c8458) 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,ffff800001470000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd6d20,8020699f,ffff80003a561770,ffff80002a8dc800) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a8dc800,ffff80003a561940,ffff80003a561890) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a561940) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a561940) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x68ac55ad0e0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003a5614a0 rbx 0x21 rdx 0xffff800001481e00 rcx 0 rax 0xffff80002a8dc800 r8 0x101010101010101 r9 0x8080808080808080 r10 0x70ff7439b0d6ef24 r11 0xc4c1f458de90d69c r12 0 r13 0x9 r14 0 r15 0x1 rip 0xffffffff814d0975 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003a561490 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=211362 pid=87305 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=0xffff80002a8dd4f8,0xffff80002a8ddcd0 process=0xffff80002a8e2928 user=0xffff80003a55c000, vmspace=0xfffffd806b2e7d08 estcpu=32, cpticks=2, pctcpu=0.1, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55613 366127 38151 0 2 0 syz-executor 55613 466460 38151 0 3 0x4000080 fsleep syz-executor 83704 2431 37311 0 2 0 syz-executor 83704 130346 37311 0 3 0x4000080 fsleep syz-executor 83704 222638 37311 0 2 0x4000000 syz-executor 79431 349365 1790 0 2 0 syz-executor 79431 460538 1790 0 3 0x4000080 fsleep syz-executor 10696 52297 30211 0 2 0 syz-executor 10696 56860 30211 0 3 0x4000080 fsleep syz-executor 10696 221132 30211 0 2 0x4000000 syz-executor 87305 479680 42874 0 2 0 syz-executor *87305 211362 42874 0 7 0x4000000 syz-executor 87305 495895 42874 0 2 0x4000000 syz-executor 55715 86604 73391 0 2 0 syz-executor 55715 469238 73391 0 2 0x4000000 syz-executor 55715 18074 73391 0 3 0x4000080 fsleep syz-executor 32877 229428 0 0 3 0x14200 bored sosplice 61856 17380 0 0 3 0x14280 nfsidl nfsio 35640 88237 0 0 3 0x14280 nfsidl nfsio 92725 161266 0 0 3 0x14280 nfsidl nfsio 41734 454646 0 0 3 0x14280 nfsidl nfsio 22284 370995 0 0 3 0x14280 nfsidl nfsio 80526 359065 0 0 3 0x14280 nfsidl nfsio 13108 136758 0 0 3 0x14280 nfsidl nfsio 68965 189245 0 0 3 0x14280 nfsidl nfsio 91129 388943 0 0 3 0x14280 nfsidl nfsio 99968 343013 0 0 3 0x14280 nfsidl nfsio 81096 488496 0 0 3 0x14280 nfsidl nfsio 70176 166759 0 0 3 0x14280 nfsidl nfsio 98637 173771 0 0 3 0x14280 nfsidl nfsio 80397 483168 0 0 3 0x14280 nfsidl nfsio 99201 473233 0 0 3 0x14280 nfsidl nfsio 89591 508388 0 0 3 0x14280 nfsidl nfsio 91715 141871 0 0 3 0x14280 nfsidl nfsio 45576 449357 0 0 3 0x14280 nfsidl nfsio 48015 68006 0 0 3 0x14280 nfsidl nfsio 79285 356867 0 0 3 0x14280 nfsidl nfsio 42874 263207 33057 0 3 0x82 nanoslp syz-executor 57022 117754 0 0 3 0x14200 acct acct 30211 289529 33057 0 3 0x82 nanoslp syz-executor 73391 432016 33057 0 3 0x82 nanoslp syz-executor 37311 196393 33057 0 3 0x82 nanoslp syz-executor 49498 319616 33057 0 2 0x2 syz-executor 52362 63515 33057 0 2 0x2 syz-executor 38151 322956 33057 0 2 0x3 syz-executor 1790 101125 33057 0 3 0x82 nanoslp syz-executor 33057 50725 10852 0 3 0x82 kqread syz-executor 10852 209462 30688 0 3 0x10008a sigsusp ksh 30688 311067 39571 0 3 0x98 kqread sshd-session 39571 143017 96179 0 3 0x92 kqread sshd-session 95020 443191 1 0 3 0x100083 ttyin getty 96179 180573 1 0 3 0x88 kqread sshd 74357 218912 76391 73 3 0x1100090 kqread syslogd 76391 21028 1 0 3 0x100082 sbwait syslogd 41713 220307 1 0 3 0x100080 kqread resolvd 73713 22833 42913 77 3 0x100092 kqread dhcpleased 79905 345564 42913 77 3 0x100092 kqread dhcpleased 42913 18262 1 0 3 0x80 kqread dhcpleased 1388 216770 0 0 3 0x14200 bored smr 40942 112398 0 0 2 0x14200 zerothread 49872 74798 0 0 3 0x14200 aiodoned aiodoned 31394 387727 0 0 3 0x14200 syncer update 38187 264392 0 0 3 0x14200 cleaner cleaner 61035 198827 0 0 3 0x14200 reaper reaper 77923 334033 0 0 3 0x14200 pgdaemon pagedaemon 38139 304721 0 0 3 0x14200 bored viomb 48241 396145 0 0 3 0x40014200 acpi0 acpi0 96920 372465 0 0 3 0x14200 bored softnet7 40998 356739 0 0 3 0x14200 bored softnet6 23876 352101 0 0 3 0x14200 bored softnet5 79543 107155 0 0 3 0x14200 bored softnet4 37622 251411 0 0 3 0x14200 bored softnet3 83425 2400 0 0 3 0x14200 bored softnet2 42160 256068 0 0 3 0x14200 bored softnet1 42829 88646 0 0 3 0x14200 bored softnet0 14120 377090 0 0 3 0x14200 bored systqmp 80610 160245 0 0 3 0x14200 bored systq 78617 246519 0 0 2 0x40014200 softclock 88250 175664 0 0 3 0x40014200 idle0 1 205870 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 10195 11116K 11318K 166960K 11516 0 pcb 17 12K 20K 166960K 148 0 rtable 185 7K 7K 166960K 357 0 pf 34 13K 17K 166960K 51 0 ifaddr 39 6K 7K 166960K 60 0 ifgroup 54 2K 2K 166960K 70 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 63 0 iov 0 0K 24K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1343 84K 85K 166960K 1535 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 7 0K 1K 166960K 10 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 236K 166960K 418 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 124K 166960K 530 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 42 0 in_multi 78 5K 7K 166960K 125 0 ether_multi 1 0K 0K 166960K 4 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 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 380 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 215 158K 175K 166960K 5307 0 UVM aobj 10 2K 2K 166960K 10 0 pinsyscall 38 76K 96K 166960K 1468 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 10 0 NDP 12 0K 1K 166960K 37 0 temp 38 8631K 8698K 166960K 21539 0 kqueue 13 20K 29K 166960K 83 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 165 0 161 4 2 2 3 0 8 1 rtentry 136 117 0 45 4 0 4 4 0 8 0 unpcb 144 456 0 440 6 0 6 6 0 8 5 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 71 0 64 1 0 1 1 0 8 0 arp 88 15 0 4 1 0 1 1 0 8 0 inpcb 328 344 0 332 3 1 2 2 0 8 1 nd6 104 19 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 9 0 9 2 1 1 1 0 8 1 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 1 0 1 1 0 8 0 pfstate 384 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 557 0 197 29 1 28 29 0 8 3 art_table 40 558 0 197 5 0 5 5 0 8 0 art_node 32 117 0 56 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 7 0 2 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2030 0 530 95 0 95 95 0 8 0 ffsino 256 2030 0 530 95 0 95 95 0 8 0 nchpl 144 2571 0 892 63 0 63 63 0 8 0 uvmvnodes 80 2209 0 0 46 0 46 46 0 8 0 vnodes 216 2209 0 0 123 0 123 123 0 8 0 namei 1024 8052 0 8051 3 2 1 2 0 8 0 kstatmem 264 38 0 14 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 10111 0 10111 15 7 8 8 1 8 8 plimitpl 152 134 0 116 1 0 1 1 0 8 0 sigapl 424 710 0 639 10 1 9 9 0 8 0 knotepl 120 15630 0 15582 18 8 10 10 0 8 7 kqueuepl 184 153 0 144 2 0 2 2 0 8 1 pipepl 304 130 0 103 3 0 3 3 0 8 0 fdescpl 448 668 0 639 5 1 4 5 0 8 0 filepl 120 3396 0 3182 13 2 11 11 0 8 3 lockfpl 104 117 0 115 1 0 1 1 0 8 0 lockfspl 48 51 0 49 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 35 0 19 1 0 1 1 0 8 0 ucredpl 104 311 0 300 1 0 1 1 0 8 0 zombiepl 144 825 0 825 2 1 1 1 0 8 1 processpl 1168 710 0 639 7 1 6 6 0 8 0 procpl 664 1207 0 1126 8 0 8 8 0 8 0 sockpl 552 1039 0 1007 17 7 10 12 0 8 7 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 2819 0 2765 18 9 9 16 0 8 1 mcl2k 2048 573 0 564 2 0 2 2 0 8 0 mtagpl 96 14 0 4 1 0 1 1 0 8 0 mbufpl 256 6916 0 6715 19 0 19 19 0 8 5 bufpl 280 4538 0 119 316 0 316 316 0 8 0 anonpl 24 132626 0 129533 48 3 45 45 0 187 19 amapchunkpl 152 17209 0 16775 40 7 33 33 0 158 13 amappl16 200 2626 0 2599 18 3 15 15 0 8 12 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 110 0 100 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1298 0 1269 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 64 0 64 1 1 0 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 98 0 97 1 0 1 1 0 8 0 amappl7 128 99 0 89 1 0 1 1 0 8 0 amappl6 120 184 0 181 1 0 1 1 0 8 0 amappl5 112 117 0 111 1 0 1 1 0 8 0 amappl4 104 270 0 253 1 0 1 1 0 8 0 amappl3 96 3049 0 2948 4 0 4 4 0 8 0 amappl2 88 638 0 582 2 0 2 2 0 8 0 amappl1 80 9351 0 8805 14 1 13 14 0 8 0 amappl 88 4596 0 4446 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 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 667 0 639 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 667 0 639 1 0 1 1 0 8 0 vmmpekpl 168 6919 0 6887 2 0 2 2 0 8 0 vmmpepl 168 49123 0 47318 98 5 93 93 0 357 7 vmsppl 368 667 0 639 4 1 3 4 0 8 0 rwobjpl 40 18320 0 15272 34 0 34 34 0 8 0 pdppl 4096 1341 0 1278 97 30 67 83 0 8 4 pvpl 32 317257 0 309072 117 3 114 114 0 265 35 pmappl 216 667 0 639 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 388 0 50 11 0 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(ffffffff8333a64c) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378658,ffffffff8335382c,84,ffffffff833c8458) 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,ffff800001470000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd6d20,8020699f,ffff80003a561770,ffff80002a8dc800) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a8dc800,ffff80003a561940,ffff80003a561890) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a561940) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a561940) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x68ac55ad0e0, 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(ffffffff8333a64c) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378658,ffffffff8335382c,84,ffffffff833c8458) 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,ffff800001470000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd6d20,8020699f,ffff80003a561770,ffff80002a8dc800) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a8dc800,ffff80003a561940,ffff80003a561890) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003a561940) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a561940) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x68ac55ad0e0, count: -10