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 *132156 36398 60928 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333a905) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833791b8,ffffffff83359bdf,84,ffffffff833cf0a8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff800000b12800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014859f0,8020699f,ffff80002cd29cf0,ffff80002f12aa88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002f12aa88,ffff80002cd29ec0,ffff80002cd29e10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002cd29ec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cd29ec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6591b20af0, 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(ffffffff8333a905) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833791b8,ffffffff83359bdf,84,ffffffff833cf0a8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff800000b12800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014859f0,8020699f,ffff80002cd29cf0,ffff80002f12aa88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002f12aa88,ffff80002cd29ec0,ffff80002cd29e10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002cd29ec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cd29ec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6591b20af0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002cd29a20 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002f12aa88 r8 0x101010101010101 r9 0x8080808080808080 r10 0x523794f6482663d1 r11 0x8e191ae8f49737d9 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff81963515 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002cd29a10 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=132156 pid=36398 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=77, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f54e0,0xffff80002f12a568 process=0xffff8000ffff9b18 user=0xffff80002cd24000, vmspace=0xfffffd806ba3db90 estcpu=28, cpticks=3, pctcpu=0.1, user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 9920 269077 27577 0 2 0 syz-executor 9920 173927 27577 0 3 0x4000080 fsleep syz-executor 93250 150429 61755 0 2 0 syz-executor 93250 420314 61755 0 3 0x4000080 fsleep syz-executor 96892 297279 65344 0 2 0 syz-executor 96892 479133 65344 0 3 0x4000080 fsleep syz-executor 96892 519470 65344 0 2 0x4000000 syz-executor 96892 265302 65344 0 3 0x4000080 fsleep syz-executor 99111 386111 86855 0 2 0 syz-executor 99111 511322 86855 0 2 0x4000000 syz-executor 99111 314568 86855 0 2 0x4000000 syz-executor 35264 506853 57362 0 2 0 syz-executor 35264 171361 57362 0 2 0x4000000 syz-executor 33466 172567 62753 0 2 0x82000 syz-executor 33466 4315 62753 0 3 0x4002000 suspend syz-executor 33466 108692 62753 0 4 0x4082000 syz-executor 36398 379517 4320 60928 2 0x10 syz-executor 36398 271488 4320 60928 2 0x4000010 syz-executor *36398 132156 4320 60928 7 0x4000010 syz-executor 904 1813 0 0 3 0x14200 bored sosplice 4320 144284 40791 0 2 0x3 syz-executor 65344 355865 40791 0 2 0x3 syz-executor 27577 411807 40791 0 3 0x82 nanoslp syz-executor 27396 311868 40791 0 2 0x2 syz-executor 61755 346538 40791 0 3 0x82 nanoslp syz-executor 86855 127466 40791 0 2 0x3 syz-executor 62753 400172 40791 0 2 0x3 syz-executor 57362 449987 40791 0 2 0x3 syz-executor 40791 362518 63550 0 3 0x82 kqread syz-executor 63550 49818 30621 0 3 0x10008a sigsusp ksh 30621 450648 87498 0 3 0x98 kqread sshd-session 87498 343127 40329 0 3 0x92 kqread sshd-session 27612 394126 1 0 3 0x100083 ttyopn getty 40329 483662 1 0 3 0x88 kqread sshd 17492 219313 85413 73 3 0x1100090 kqread syslogd 85413 376246 1 0 3 0x100082 sbwait syslogd 29629 187003 1 0 3 0x100080 kqread resolvd 76907 124263 12500 77 3 0x100092 kqread dhcpleased 80524 523408 12500 77 3 0x100092 kqread dhcpleased 12500 393635 1 0 3 0x80 kqread dhcpleased 64412 136175 0 0 3 0x14200 bored smr 51971 385558 0 0 2 0x14200 zerothread 23800 452419 0 0 3 0x14200 aiodoned aiodoned 19814 54028 0 0 3 0x14200 syncer update 16453 204181 0 0 3 0x14200 cleaner cleaner 3229 257505 0 0 3 0x14200 reaper reaper 10293 74040 0 0 3 0x14200 pgdaemon pagedaemon 83757 1264 0 0 3 0x14200 bored viomb 81320 481205 0 0 3 0x40014200 acpi0 acpi0 42269 287444 0 0 3 0x14200 bored softnet7 58537 222363 0 0 3 0x14200 bored softnet6 80123 116453 0 0 3 0x14200 bored softnet5 4948 223845 0 0 3 0x14200 bored softnet4 43964 33042 0 0 3 0x14200 bored softnet3 95620 49132 0 0 3 0x14200 bored softnet2 79860 9715 0 0 3 0x14200 bored softnet1 54989 88130 0 0 2 0x14200 softnet0 52560 219055 0 0 3 0x14200 bored systqmp 80815 406212 0 0 3 0x14200 bored systq 20549 302503 0 0 3 0x40014200 tmoslp softclock 60505 352286 0 0 3 0x40014200 idle0 1 251498 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 10181 11050K 11268K 166960K 11372 0 pcb 19 12K 12K 166960K 46 0 rtable 207 6K 6K 166960K 286 0 pf 30 12K 13K 166960K 42 0 ifaddr 42 7K 7K 166960K 50 0 ifgroup 50 2K 2K 166960K 61 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 18K 166960K 37 0 ioctlops 0 0K 4K 166960K 48 0 iov 0 0K 28K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1341 84K 85K 166960K 1432 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 5K 5K 166960K 6 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 256 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 124K 166960K 489 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 140 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 372 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 229 159K 168K 166960K 3747 0 UVM aobj 6 4K 4K 166960K 7 0 pinsyscall 38 76K 96K 166960K 1288 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 11 0K 2K 166960K 31 0 temp 40 8635K 8699K 166960K 7593 0 kqueue 13 20K 28K 166960K 41 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 45 0 42 1 0 1 1 0 8 0 rtentry 136 102 0 10 4 0 4 4 0 8 0 unpcb 144 244 0 226 2 1 1 2 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 95 0 91 7 6 1 7 0 8 0 arp 88 11 0 1 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 231 0 222 7 6 1 7 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 104 16 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 1 0 1 0 8 0 pppxif 1384 1 0 1 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 0 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 488 0 52 31 2 29 31 0 8 0 art_table 40 489 0 52 5 0 5 5 0 8 0 art_node 32 102 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 112 2 0 1 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1799 0 293 95 0 95 95 0 8 0 ffsino 256 1799 0 293 95 0 95 95 0 8 0 nchpl 144 2158 0 478 63 0 63 63 0 8 0 uvmvnodes 80 1916 0 0 40 0 40 40 0 8 0 vnodes 216 1916 0 0 107 0 107 107 0 8 0 namei 1024 6538 0 6536 3 2 1 2 0 8 0 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scxspl 216 7636 0 7636 8 7 1 8 1 8 1 plimitpl 152 81 0 63 1 0 1 1 0 8 0 sigapl 424 542 0 492 7 1 6 7 0 8 0 knotepl 120 8287 0 8239 17 7 10 10 0 8 8 kqueuepl 184 54 0 42 1 0 1 1 0 8 0 pipepl 304 142 0 115 5 2 3 5 0 8 0 fdescpl 448 520 0 491 5 1 4 5 0 8 0 filepl 120 2198 0 1984 9 1 8 9 0 8 0 lockfpl 104 75 0 72 1 0 1 1 0 8 0 lockfspl 48 21 0 18 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 221 0 208 1 0 1 1 0 8 0 zombiepl 144 528 0 528 2 1 1 1 0 8 1 processpl 1152 542 0 492 5 1 4 5 0 8 0 procpl 664 761 0 698 6 0 6 6 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 552 524 0 494 7 4 3 7 0 8 0 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 2608 0 2552 16 8 8 16 0 8 1 mcl2k 2048 390 0 386 4 2 2 3 0 8 1 mtagpl 96 7 0 4 1 0 1 1 0 8 0 mbufpl 256 5332 0 5165 16 1 15 16 0 8 1 bufpl 280 3015 0 117 207 0 207 207 0 8 0 anonpl 24 73130 0 70033 34 2 32 32 0 187 11 amapchunkpl 152 10849 0 10364 26 1 25 25 0 158 2 amappl16 200 542 0 509 3 1 2 3 0 8 0 amappl15 192 73 0 73 1 1 0 1 0 8 0 amappl14 184 99 0 89 1 0 1 1 0 8 0 amappl13 176 1 0 1 1 1 0 1 0 8 0 amappl12 168 1130 0 1101 3 1 2 3 0 8 0 amappl11 160 40 0 30 1 0 1 1 0 8 0 amappl10 152 24 0 24 1 1 0 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 90 0 89 1 0 1 1 0 8 0 amappl7 128 93 0 83 1 0 1 1 0 8 0 amappl6 120 176 0 173 1 0 1 1 0 8 0 amappl5 112 108 0 100 1 0 1 1 0 8 0 amappl4 104 257 0 243 1 0 1 1 0 8 0 amappl3 96 1892 0 1800 3 0 3 3 0 8 0 amappl2 88 743 0 673 2 0 2 2 0 8 0 amappl1 80 8549 0 8002 13 1 12 13 0 8 0 amappl 88 3084 0 2920 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 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 8 0 8 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 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 520 0 491 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 520 0 491 1 0 1 1 0 8 0 vmmpekpl 168 5765 0 5738 2 0 2 2 0 8 0 vmmpepl 168 37981 0 36136 84 0 84 84 0 357 0 vmsppl 368 519 0 491 4 1 3 4 0 8 0 rwobjpl 40 13793 0 11026 29 0 29 29 0 8 0 pdppl 4096 1046 0 982 98 32 66 82 0 8 2 pvpl 32 212977 0 204961 96 5 91 91 0 265 18 pmappl 216 519 0 491 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 385 0 60 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(ffffffff8333a905) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833791b8,ffffffff83359bdf,84,ffffffff833cf0a8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff800000b12800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014859f0,8020699f,ffff80002cd29cf0,ffff80002f12aa88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002f12aa88,ffff80002cd29ec0,ffff80002cd29e10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002cd29ec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cd29ec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6591b20af0, 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(ffffffff8333a905) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833791b8,ffffffff83359bdf,84,ffffffff833cf0a8) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(17,21) at rtmap_grow+0x1f2 rtable_add(16) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(16) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(16,ffff800000b12800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014859f0,8020699f,ffff80002cd29cf0,ffff80002f12aa88) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002f12aa88,ffff80002cd29ec0,ffff80002cd29e10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002cd29ec0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002cd29ec0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf6591b20af0, count: -10