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 * 31086 80172 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337daa4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833baaba,ffffffff8339882d,84,ffffffff8340ef9a) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000156d800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff800010fda270,8020699f,ffff800034903370,ffff80002a7bc030) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff80002a7bc030,ffff800034903540,ffff800034903490) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800034903540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800034903540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xff156c66d10, 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(ffffffff8337daa4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833baaba,ffffffff8339882d,84,ffffffff8340ef9a) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000156d800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff800010fda270,8020699f,ffff800034903370,ffff80002a7bc030) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff80002a7bc030,ffff800034903540,ffff800034903490) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800034903540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800034903540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xff156c66d10, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000349030a0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7bc030 r8 0x101010101010101 r9 0x8080808080808080 r10 0x446835ba0239f098 r11 0x30e71b736eb999d r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81637ef5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800034903090 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=31086 pid=80172 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7bc2c8,0xffffffff8398bfb0 process=0xffff80002f8ee418 user=0xffff8000348fe000, vmspace=0xfffffd806bda2188 estcpu=30, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 56371 522291 36920 0 2 0 syz-executor 56371 159392 36920 0 3 0x4000080 fsleep syz-executor 56371 480912 36920 0 3 0x4000080 fsleep syz-executor 56371 432969 36920 0 3 0x4000080 fsleep syz-executor 22916 303413 95030 0 2 0 syz-executor 22916 428637 95030 0 3 0x4000080 fsleep syz-executor 22916 105741 95030 0 3 0x4000080 fsleep syz-executor 22916 262508 95030 0 3 0x4000080 fsleep syz-executor 80172 19582 73135 0 2 0x1 syz-executor 80172 260624 73135 0 2 0x4000000 syz-executor *80172 31086 73135 0 7 0x4000000 syz-executor 47488 142608 59624 0 2 0xc80 syz-executor 47488 52252 59624 0 3 0x4000080 lockf syz-executor 47488 8133 59624 0 3 0x4000080 lockf syz-executor 47488 393088 59624 0 3 0x4000080 fsleep syz-executor 47488 36923 59624 0 3 0x4000080 fsleep syz-executor 95030 204784 35905 0 2 0xc82 syz-executor 60217 107627 35905 0 2 0x2 syz-executor 1467 378605 35905 0 2 0x2 syz-executor 36920 307602 35905 0 2 0xc82 syz-executor 28806 410612 35905 0 2 0x2 syz-executor 63224 361946 35905 0 2 0x2 syz-executor 73135 423062 35905 0 2 0xc82 syz-executor 59624 77907 35905 0 2 0xc82 syz-executor 35905 415651 85971 0 3 0x82 kqread syz-executor 85971 397600 97999 0 3 0x10008a sigsusp ksh 97999 354821 36977 0 3 0x98 kqread sshd-session 36977 123076 65252 0 3 0x92 kqread sshd-session 78513 40278 1 0 3 0x100083 ttyin getty 65252 37702 1 0 3 0x88 kqread sshd 18106 129392 63942 73 3 0x1100090 kqread syslogd 63942 281708 1 0 3 0x100082 sbwait syslogd 79824 392722 1 0 3 0x100080 kqread resolvd 8057 223107 43818 77 3 0x100092 kqread dhcpleased 3149 37032 43818 77 3 0x100092 kqread dhcpleased 43818 407790 1 0 3 0x80 kqread dhcpleased 66651 118413 0 0 3 0x14200 bored smr 66668 367267 0 0 2 0x14200 zerothread 89281 293842 0 0 3 0x14200 aiodoned aiodoned 50294 141469 0 0 3 0x14200 syncer update 92339 468716 0 0 3 0x14200 cleaner cleaner 1289 229233 0 0 3 0x14200 reaper reaper 79697 320577 0 0 3 0x14200 pgdaemon pagedaemon 57118 396014 0 0 3 0x14200 bored viomb 25772 50257 0 0 3 0x40014200 acpi0 acpi0 89713 158049 0 0 2 0x14200 softnet0 69780 459579 0 0 3 0x14200 bored systqmp 41062 85723 0 0 3 0x14200 bored systq 25457 238616 0 0 3 0x40014200 tmoslp softclock 48223 309907 0 0 3 0x40014200 idle0 1 424115 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 11037 12106K 12319K 166960K 12520 0 pcb 19 13K 14K 166960K 159 0 rtable 235 8K 8K 166960K 440 0 pf 34 13K 17K 166960K 67 0 ifaddr 42 7K 8K 166960K 66 0 ifgroup 52 2K 2K 166960K 93 0 sysctl 3 1K 9K 166960K 10 0 counters 34 17K 18K 166960K 88 0 ioctlops 0 0K 4K 166960K 105 0 iov 0 0K 24K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1341 84K 85K 166960K 1626 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 18 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 93K 166960K 444 0 sigio 0 0K 0K 166960K 15 0 proc 61 59K 100K 166960K 528 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 96 7K 7K 166960K 129 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 5 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 398 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 221 160K 170K 166960K 5557 0 UVM aobj 15 4K 4K 166960K 16 0 pinsyscall 35 70K 93K 166960K 1543 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 13 0 NDP 12 0K 1K 166960K 44 0 temp 76 8672K 8736K 166960K 16821 0 kqueue 14 22K 28K 166960K 89 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 54 0 51 1 0 1 1 0 8 0 rtentry 136 131 0 31 4 0 4 4 0 8 0 unpcb 144 285 0 266 4 3 1 4 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 141 0 136 5 3 2 4 0 8 1 arp 96 21 0 3 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 1 1 0 1 1 0 8 0 inpcb 328 461 0 448 7 5 2 4 0 8 0 ip6q 72 3 0 1 2 1 1 1 0 8 0 ip6af 40 4 0 2 2 1 1 1 0 8 0 nd6 112 30 0 5 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 50 0 49 3 2 1 1 0 8 0 pppxif 1384 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 1 0 1 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 5 0 3 2 1 1 1 0 8 0 pfstate 384 3 0 2 2 1 1 1 0 8 0 pfrule 1344 1 0 0 1 0 1 1 0 8 0 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 545 0 128 29 2 27 29 0 8 0 art_table 40 546 0 128 5 0 5 5 0 8 0 art_node 32 131 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2169 0 666 95 0 95 95 0 8 0 ffsino 256 2169 0 666 95 0 95 95 0 8 0 nchpl 144 2765 0 1075 63 0 63 63 0 8 0 rtmask 32 5 0 5 3 2 1 1 0 8 1 vnodes 216 2371 0 0 132 0 132 132 0 8 0 namei 1024 8530 0 8528 2 1 1 1 0 8 0 vcpupl 3904 1 0 0 1 0 1 1 0 8 0 vmpool 808 1 0 0 1 0 1 1 0 8 0 kstatmem 264 52 0 28 2 0 2 2 0 8 0 scxspl 216 11190 0 11190 8 7 1 8 1 8 1 plimitpl 152 77 0 60 1 0 1 1 0 8 0 sigapl 424 729 0 690 6 1 5 6 0 8 0 knotepl 120 13996 0 13947 16 7 9 9 0 8 6 kqueuepl 184 119 0 109 1 0 1 1 0 8 0 pipepl 304 139 0 112 3 0 3 3 0 8 0 fdescpl 448 716 0 690 5 1 4 5 0 8 0 filepl 120 3605 0 3389 12 4 8 10 0 8 0 lockfpl 104 273 0 268 2 1 1 2 0 8 0 lockfspl 48 55 0 52 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 462 0 451 1 0 1 1 0 8 0 zombiepl 144 779 0 779 1 0 1 1 0 8 1 processpl 1152 729 0 690 4 0 4 4 0 8 0 procpl 664 1228 0 1177 7 1 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 806 0 771 10 6 4 7 0 8 0 mcl64k 65536 17 0 17 2 1 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 2857 0 2798 15 7 8 15 0 8 0 mcl2k 2048 659 0 651 4 2 2 2 0 8 0 mtagpl 96 19 0 6 1 0 1 1 0 8 0 mbufpl 256 7249 0 7029 16 0 16 16 0 8 1 bufpl 280 4014 0 123 278 0 278 278 0 8 0 anonpl 24 104315 0 101317 52 20 32 51 0 187 0 amapchunkpl 152 16957 0 16523 36 11 25 27 0 158 4 amappl16 200 1128 0 1106 14 12 2 14 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 5 0 5 1 1 0 1 0 8 0 amappl13 176 413 0 412 1 0 1 1 0 8 0 amappl12 168 1075 0 1040 2 0 2 2 0 8 0 amappl11 160 16 0 16 1 1 0 1 0 8 0 amappl10 152 43 0 33 1 0 1 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 78 0 77 1 0 1 1 0 8 0 amappl6 120 271 0 260 1 0 1 1 0 8 0 amappl5 112 77 0 69 1 0 1 1 0 8 0 amappl4 104 416 0 392 1 0 1 1 0 8 0 amappl3 96 3284 0 3191 4 0 4 4 0 8 0 amappl2 88 511 0 457 2 0 2 2 0 8 0 amappl1 80 10515 0 9983 14 1 13 13 0 8 1 amappl 88 4785 0 4635 6 1 5 5 0 92 0 uvmvnodes 80 111 0 0 3 0 3 3 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma256 256 7 0 7 1 1 0 1 0 8 0 dma128 128 253 0 253 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 15 0 1 1 0 1 1 0 8 0 uaddrrnd 24 716 0 690 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 716 0 690 1 0 1 1 0 8 0 vmmpekpl 168 7291 0 7254 2 0 2 2 0 8 0 vmmpepl 168 51368 0 49728 97 10 87 90 0 357 6 vmsppl 368 715 0 690 4 1 3 4 0 8 0 rwobjpl 40 15793 0 14839 13 1 12 13 0 8 0 pdppl 4096 1440 0 1381 100 33 67 80 0 8 8 pvpl 32 306767 0 298847 139 44 95 131 0 265 7 pmappl 216 716 0 690 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 388 0 57 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(ffffffff8337daa4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833baaba,ffffffff8339882d,84,ffffffff8340ef9a) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000156d800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff800010fda270,8020699f,ffff800034903370,ffff80002a7bc030) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff80002a7bc030,ffff800034903540,ffff800034903490) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800034903540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800034903540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xff156c66d10, 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(ffffffff8337daa4) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833baaba,ffffffff8339882d,84,ffffffff8340ef9a) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(a,21) at rtmap_grow+0x1f2 rtable_add(9) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(9) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(9,ffff80000156d800) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff800010fda270,8020699f,ffff800034903370,ffff80002a7bc030) at ifioctl+0x1be2 sys/net/if.c:2394 sys_ioctl(ffff80002a7bc030,ffff800034903540,ffff800034903490) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800034903540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800034903540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xff156c66d10, count: -10