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 * 45381 71707 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333acee) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378d38,ffffffff8335bec5,84,ffffffff833d146e) 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,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014a55d0,8020699f,ffff800038147280,ffff80002a81e7e0) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a81e7e0,ffff800038147450,ffff8000381473a0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038147450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038147450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf5f17b313f0, 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(ffffffff8333acee) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378d38,ffffffff8335bec5,84,ffffffff833d146e) 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,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014a55d0,8020699f,ffff800038147280,ffff80002a81e7e0) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a81e7e0,ffff800038147450,ffff8000381473a0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038147450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038147450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf5f17b313f0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800038146fb0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a81e7e0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x28c25ee7ad1d2db3 r11 0xbb733153b094cd37 r12 0 r13 0x17 r14 0 r15 0x1 rip 0xffffffff818b9715 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800038146fa0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=45381 pid=71707 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=0xffff80002a81e018,0xffff80002a81ea88 process=0xffff80002a849230 user=0xffff800038142000, vmspace=0xfffffd805f0e0a28 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71707 190542 36653 0 3 0x80 fsleep syz-executor *71707 45381 36653 0 7 0x4000000 syz-executor 71707 106174 36653 0 2 0x4000000 syz-executor 42451 171356 72281 0 3 0x80 fsleep syz-executor 42451 449221 72281 0 3 0x4000080 lockf syz-executor 42451 393435 72281 0 3 0x4000080 fsleep syz-executor 98690 112127 44200 0 3 0x80 fsleep syz-executor 98690 261648 44200 0 3 0x4000080 sbwait syz-executor 60179 360855 41011 0 3 0x80 fsleep syz-executor 60179 212609 41011 0 3 0x4000080 fifor syz-executor 68264 436572 0 0 3 0x14280 nfsidl nfsio 72449 49652 0 0 3 0x14280 nfsidl nfsio 78154 331461 0 0 3 0x14280 nfsidl nfsio 23619 18026 0 0 3 0x14280 nfsidl nfsio 27710 348190 0 0 3 0x14280 nfsidl nfsio 66552 326232 0 0 3 0x14280 nfsidl nfsio 88039 364871 0 0 3 0x14280 nfsidl nfsio 90662 225495 0 0 3 0x14280 nfsidl nfsio 5105 521243 0 0 3 0x14280 nfsidl nfsio 51627 94197 0 0 3 0x14280 nfsidl nfsio 93664 427537 0 0 3 0x14280 nfsidl nfsio 10059 197761 0 0 3 0x14280 nfsidl nfsio 1677 356075 0 0 3 0x14280 nfsidl nfsio 23858 30763 0 0 3 0x14280 nfsidl nfsio 18149 192505 0 0 3 0x14280 nfsidl nfsio 67581 350690 0 0 3 0x14280 nfsidl nfsio 36007 405367 0 0 3 0x14280 nfsidl nfsio 11611 199470 0 0 3 0x14280 nfsidl nfsio 18792 73860 0 0 3 0x14280 nfsidl nfsio 10470 343316 0 0 3 0x14280 nfsidl nfsio 41011 13000 80562 0 2 0xc82 syz-executor 5199 290055 1 0 3 0x100083 ttyin getty 93314 305156 0 0 3 0x14200 bored sosplice 52489 279886 80562 0 3 0x82 wait syz-executor 41256 138283 80562 0 2 0x2 syz-executor 44200 223167 80562 0 2 0x3 syz-executor 62212 147876 80562 0 2 0x2 syz-executor 72281 234085 80562 0 2 0x3 syz-executor 36653 241011 80562 0 2 0xc82 syz-executor 24517 515323 80562 0 3 0x82 piperd syz-executor 80562 496043 38976 0 2 0x3 syz-executor 38976 364961 42774 0 3 0x10008a sigsusp ksh 42774 297635 32145 0 3 0x98 kqread sshd-session 32145 260690 22790 0 3 0x92 kqread sshd-session 22790 50422 1 0 3 0x88 kqread sshd 32522 51689 23566 73 3 0x1100090 kqread syslogd 23566 238739 1 0 3 0x100082 sbwait syslogd 55198 86025 1 0 3 0x100080 kqread resolvd 78 511582 95851 77 3 0x100092 kqread dhcpleased 93409 265218 95851 77 3 0x100092 kqread dhcpleased 95851 89571 1 0 3 0x80 kqread dhcpleased 53580 404426 0 0 3 0x14200 bored smr 78128 321681 0 0 2 0x14200 zerothread 53342 71618 0 0 3 0x14200 aiodoned aiodoned 44882 395774 0 0 3 0x14200 syncer update 54704 372648 0 0 3 0x14200 cleaner cleaner 92306 115087 0 0 3 0x14200 reaper reaper 50859 179953 0 0 3 0x14200 pgdaemon pagedaemon 36660 76885 0 0 3 0x14200 bored viomb 98366 309591 0 0 3 0x40014200 acpi0 acpi0 47397 500185 0 0 3 0x14200 bored softnet7 73604 87287 0 0 3 0x14200 bored softnet6 15615 291526 0 0 3 0x14200 bored softnet5 88817 394621 0 0 3 0x14200 bored softnet4 94600 357416 0 0 3 0x14200 bored softnet3 56453 345476 0 0 3 0x14200 bored softnet2 89682 64818 0 0 3 0x14200 bored softnet1 9056 134084 0 0 3 0x14200 bored softnet0 71266 375547 0 0 3 0x14200 bored systqmp 83853 438358 0 0 3 0x14200 bored systq 33819 501588 0 0 2 0x40014200 softclock 5725 350957 0 0 3 0x40014200 idle0 1 139128 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 10183 11111K 12194K 166960K 11925 0 pcb 17 16K 17K 166960K 298 0 rtable 198 8K 9K 166960K 398 0 pf 28 12K 13K 166960K 72 0 ifaddr 35 6K 7K 166960K 68 0 ifgroup 46 2K 2K 166960K 103 0 sysctl 3 1K 9K 166960K 10 0 counters 31 17K 18K 166960K 57 0 ioctlops 0 0K 4K 166960K 77 0 iov 1 2K 12K 166960K 19 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1428 90K 91K 166960K 1707 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 4 9K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 21 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 97K 166960K 548 0 sigio 0 0K 0K 166960K 11 0 proc 60 59K 124K 166960K 558 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 60 0 in_multi 77 5K 7K 166960K 120 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 6 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 412 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 208 159K 176K 166960K 6537 0 UVM aobj 8 4K 4K 166960K 9 0 pinsyscall 36 72K 96K 166960K 1620 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 36 0 NDP 10 0K 2K 166960K 46 0 temp 77 8646K 8710K 166960K 27387 0 kqueue 13 20K 32K 166960K 110 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 75 0 71 1 0 1 1 0 8 0 rtentry 136 117 0 38 4 0 4 4 0 8 0 unpcb 144 526 0 504 7 1 6 6 0 8 5 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 736 229 0 221 7 3 4 4 0 8 3 arp 96 13 0 5 1 0 1 1 0 8 0 ipq 40 5 0 2 1 0 1 1 0 8 0 ipqe 40 13 0 10 1 0 1 1 0 8 0 inpcb 328 985 0 972 20 10 10 12 0 8 8 nd6 104 20 0 7 1 0 1 1 0 8 0 pkpcb 40 39 0 37 2 1 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 19 0 19 1 0 1 1 0 8 1 pppxif 1384 1 0 1 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 545 0 184 30 2 28 28 0 8 3 art_table 40 548 0 184 5 0 5 5 0 8 0 art_node 32 116 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 17 0 7 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 2338 0 845 95 0 95 95 0 8 0 ffsino 256 2338 0 845 95 0 95 95 0 8 0 nchpl 144 3114 0 1431 63 0 63 63 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 uvmvnodes 80 2621 0 0 54 0 54 54 0 8 0 vnodes 216 2621 0 0 146 0 146 146 0 8 0 namei 1024 10676 0 10676 2 1 1 2 0 8 1 kstatmem 264 56 0 36 2 0 2 2 0 8 0 scxspl 216 11687 0 11687 15 7 8 8 1 8 8 plimitpl 152 152 0 136 1 0 1 1 0 8 0 sigapl 424 855 0 787 9 1 8 8 0 8 0 knotepl 120 35390 0 35343 21 11 10 17 0 8 8 kqueuepl 184 404 0 395 5 1 4 4 0 8 3 pipepl 304 301 0 274 8 5 3 8 0 8 0 fdescpl 448 812 0 785 5 1 4 5 0 8 0 filepl 120 5963 0 5738 18 5 13 15 0 8 5 lockfpl 104 369 0 364 2 1 1 2 0 8 0 lockfspl 48 104 0 100 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 577 0 566 1 0 1 1 0 8 0 zombiepl 144 898 0 897 1 0 1 1 0 8 0 processpl 1152 855 0 787 7 1 6 6 0 8 0 procpl 664 1504 0 1430 8 0 8 8 0 8 0 sosppl 168 3 0 3 2 1 1 1 0 8 1 sockpl 552 1642 0 1601 19 8 11 12 0 8 8 mcl64k 65536 26 0 25 2 1 1 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 2997 0 2939 14 6 8 14 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 889 0 886 3 1 2 2 0 8 0 mtagpl 96 5 0 5 2 1 1 1 0 8 1 mbufpl 256 8317 0 8177 13 0 13 13 0 8 0 bufpl 280 5034 0 119 352 0 352 352 0 8 0 anonpl 24 150505 0 146788 55 8 47 47 0 187 21 amapchunkpl 152 21347 0 20899 42 5 37 37 0 158 15 amappl16 200 2834 0 2801 18 7 11 15 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 115 0 105 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 1450 0 1423 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 240 0 240 1 1 0 1 0 8 0 amappl8 136 34 0 32 1 0 1 1 0 8 0 amappl7 128 121 0 110 1 0 1 1 0 8 0 amappl6 120 207 0 203 1 0 1 1 0 8 0 amappl5 112 118 0 111 1 0 1 1 0 8 0 amappl4 104 281 0 266 1 0 1 1 0 8 0 amappl3 96 3484 0 3407 3 0 3 3 0 8 0 amappl2 88 1072 0 1001 2 0 2 2 0 8 0 amappl1 80 10626 0 10095 13 0 13 13 0 8 0 amappl 88 5788 0 5645 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 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 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 812 0 785 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 812 0 785 1 0 1 1 0 8 0 vmmpekpl 168 8718 0 8682 2 0 2 2 0 8 0 vmmpepl 168 58253 0 56522 97 4 93 93 0 357 7 vmsppl 368 811 0 785 4 1 3 4 0 8 0 rwobjpl 40 20763 0 17313 36 0 36 36 0 8 0 pdppl 4096 1630 0 1570 104 38 66 82 0 8 6 pvpl 32 373706 0 365142 132 18 114 114 0 265 27 pmappl 216 811 0 785 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 387 0 59 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(ffffffff8333acee) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378d38,ffffffff8335bec5,84,ffffffff833d146e) 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,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014a55d0,8020699f,ffff800038147280,ffff80002a81e7e0) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a81e7e0,ffff800038147450,ffff8000381473a0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038147450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038147450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf5f17b313f0, 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(ffffffff8333acee) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83378d38,ffffffff8335bec5,84,ffffffff833d146e) 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,ffff80000146f800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014a55d0,8020699f,ffff800038147280,ffff80002a81e7e0) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80002a81e7e0,ffff800038147450,ffff8000381473a0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038147450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038147450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf5f17b313f0, count: -10