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 *487814 3287 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8335dbfb) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c1ad,ffffffff8337a715,84,ffffffff833efd84) 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:1974 ifioctl(ffff800001485c20,8020699f,ffff800035912ec0,ffff80002a7c02b0) at ifioctl+0x1ae0 sys/net/if.c:2323 sys_ioctl(ffff80002a7c02b0,ffff800035913090,ffff800035912fe0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035913090) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035913090) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f53e70c20, 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(ffffffff8335dbfb) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c1ad,ffffffff8337a715,84,ffffffff833efd84) 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:1974 ifioctl(ffff800001485c20,8020699f,ffff800035912ec0,ffff80002a7c02b0) at ifioctl+0x1ae0 sys/net/if.c:2323 sys_ioctl(ffff80002a7c02b0,ffff800035913090,ffff800035912fe0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035913090) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035913090) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f53e70c20, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800035912bf0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a7c02b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2a664cc21d182eaf r11 0x8dd11f87fa34fbc3 r12 0 r13 0x9 r14 0 r15 0x1 rip 0xffffffff81738245 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800035912be0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=487814 pid=3287 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=0xffff80002a7c1770,0xffff80002a7c0a88 process=0xffff8000ffff9218 user=0xffff80003590e000, vmspace=0xfffffd806c22f460 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3287 441296 95240 0 3 0x80 fsleep syz-executor * 3287 487814 95240 0 7 0x4000000 syz-executor 3287 477351 95240 0 2 0x4000000 syz-executor 23007 324759 90676 0 3 0x80 fsleep syz-executor 23007 301123 90676 0 3 0x4000080 fsleep syz-executor 23007 82857 90676 0 3 0x4000080 ttyout syz-executor 93588 478844 68642 0 3 0x80 fsleep syz-executor 93588 416180 68642 0 3 0x4000080 rest syz-executor 93588 509003 68642 0 3 0x4000080 bell syz-executor 52916 24948 49334 0 3 0x80 fsleep syz-executor 52916 394279 49334 0 3 0x4000080 netacc syz-executor 96430 154424 3281 0 3 0x80 fsleep syz-executor 96430 489288 3281 0 3 0x4000080 kqsel syz-executor 96430 131514 3281 0 3 0x4000080 fsleep syz-executor 96430 30236 3281 0 3 0x4000080 fsleep syz-executor 91717 265867 26396 0 3 0x80 fsleep syz-executor 91717 398242 26396 0 3 0x4000080 pipewr syz-executor 91717 469320 26396 0 3 0x4000080 fsleep syz-executor 91717 401645 26396 0 3 0x4000080 fsleep syz-executor 79764 142896 1 0 3 0x100083 ttyin getty 3182 421011 0 0 3 0x14200 acct acct 16897 286810 3506 0 3 0x82 nanoslp syz-executor 26396 163107 3506 0 2 0xc82 syz-executor 47969 369197 3506 0 3 0x82 nanoslp syz-executor 3281 402233 3506 0 2 0xc82 syz-executor 49334 368992 3506 0 2 0xc82 syz-executor 95240 130190 3506 0 3 0x82 nanoslp syz-executor 90676 367607 3506 0 2 0xc82 syz-executor 68642 300829 3506 0 3 0x82 nanoslp syz-executor 3506 67736 1839 0 3 0x82 kqread syz-executor 1839 19506 5585 0 3 0x10008a sigsusp ksh 5585 272614 84569 0 3 0x98 kqread sshd-session 84569 371559 87574 0 3 0x92 kqread sshd-session 87574 274393 1 0 3 0x88 kqread sshd 45216 298790 67043 73 3 0x1100090 kqread syslogd 67043 41047 1 0 3 0x100082 sbwait syslogd 46589 235457 1 0 3 0x100080 kqread resolvd 82947 422236 32505 77 3 0x100092 kqread dhcpleased 11638 428863 32505 77 3 0x100092 kqread dhcpleased 32505 452388 1 0 3 0x80 kqread dhcpleased 3255 28770 0 0 3 0x14200 bored smr 49892 461671 0 0 2 0x14200 zerothread 71829 390135 0 0 3 0x14200 aiodoned aiodoned 64841 514332 0 0 3 0x14200 syncer update 54918 435319 0 0 3 0x14200 cleaner cleaner 84744 347342 0 0 3 0x14200 reaper reaper 70931 350610 0 0 3 0x14200 pgdaemon pagedaemon 69102 512172 0 0 3 0x14200 bored viomb 79635 44648 0 0 3 0x40014200 acpi0 acpi0 11428 78384 0 0 3 0x14200 bored softnet0 16181 98619 0 0 3 0x14200 bored systqmp 43907 89228 0 0 3 0x14200 bored systq 71975 321865 0 0 3 0x40014200 tmoslp softclock 86149 446359 0 0 3 0x40014200 idle0 1 513502 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 10216 11063K 11373K 166960K 12189 0 pcb 18 12K 12K 166960K 124 0 rtable 216 8K 8K 166960K 538 0 pf 32 13K 67481K 166960K 98 0 ifaddr 42 7K 8K 166960K 82 0 ifgroup 54 2K 2K 166960K 116 0 sysctl 3 1K 9K 166960K 10 0 counters 33 17K 18K 166960K 72 0 ioctlops 0 0K 4K 166960K 201 0 iov 0 0K 30K 166960K 25 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1407 88K 89K 166960K 1885 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 24 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 699 0 sigio 0 0K 0K 166960K 16 0 proc 61 59K 91K 166960K 547 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 2 0K 0K 166960K 74 0 in_multi 85 6K 7K 166960K 128 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 479 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 244 151K 165K 166960K 7966 0 UVM aobj 17 2K 2K 166960K 17 0 pinsyscall 39 78K 93K 166960K 1773 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 12 0K 2K 166960K 51 0 temp 49 8649K 8713K 166960K 24029 0 kqueue 14 22K 31K 166960K 134 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 87 0 83 1 0 1 1 0 8 0 rtentry 136 137 0 49 4 0 4 4 0 8 0 unpcb 144 373 0 357 4 0 4 4 0 8 3 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 192 0 185 4 3 1 4 0 8 0 arp 96 22 0 5 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 1 1 0 1 1 0 8 0 inpcb 328 484 0 472 4 2 2 4 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 112 27 0 7 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 33 0 33 2 1 1 1 0 8 1 pppxif 1384 5 0 5 2 1 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfrule 1344 3 0 2 2 1 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 531 0 140 30 2 28 30 0 8 0 art_table 40 533 0 140 5 0 5 5 0 8 0 art_node 32 135 0 57 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 6 2 1 1 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 14 0 0 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2641 0 1141 95 0 95 95 0 8 0 ffsino 256 2641 0 1141 95 0 95 95 0 8 0 nchpl 144 3580 0 1890 65 1 64 64 0 8 0 rtmask 32 4 0 4 2 1 1 1 0 8 1 vnodes 216 3016 0 0 168 0 168 168 0 8 0 namei 1024 11826 0 11826 3 2 1 2 0 8 1 kstatmem 264 70 0 46 3 0 3 3 0 8 1 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 10937 0 10937 9 8 1 8 1 8 1 plimitpl 152 283 0 265 1 0 1 1 0 8 0 sigapl 424 979 0 935 6 1 5 6 0 8 0 knotepl 120 25030 0 24982 18 8 10 10 0 8 8 kqueuepl 184 206 0 192 1 0 1 1 0 8 0 pipepl 304 165 0 136 3 0 3 3 0 8 0 fdescpl 448 964 0 934 5 1 4 5 0 8 0 filepl 120 5234 0 5004 11 2 9 10 0 8 1 lockfpl 104 224 0 222 1 0 1 1 0 8 0 lockfspl 48 96 0 94 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 768 0 757 1 0 1 1 0 8 0 zombiepl 144 1036 0 1034 2 1 1 1 0 8 0 processpl 1152 979 0 935 4 0 4 4 0 8 0 procpl 664 1867 0 1810 6 0 6 6 0 8 1 sosppl 176 5 0 5 2 1 1 1 0 8 1 sockpl 552 970 0 938 11 3 8 10 0 8 5 mcl64k 65536 51 0 51 3 2 1 1 0 8 1 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl9k 9216 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 3 2 1 1 0 8 1 mcl4k 4096 3206 0 3155 16 8 8 15 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 1064 0 1059 8 1 7 7 0 8 5 mtagpl 96 5 0 4 2 1 1 1 0 8 0 mbufpl 256 11734 0 11566 106 82 24 83 0 8 8 bufpl 280 3284 0 126 226 0 226 226 0 8 0 anonpl 24 150130 0 146917 56 12 44 44 0 187 21 amapchunkpl 152 25886 0 25364 33 10 23 28 0 158 2 amappl16 200 2259 0 2224 17 6 11 15 0 8 8 amappl15 192 18 0 18 1 1 0 1 0 8 0 amappl14 184 6 0 5 1 0 1 1 0 8 0 amappl13 176 405 0 404 1 0 1 1 0 8 0 amappl12 168 1310 0 1271 2 0 2 2 0 8 0 amappl11 160 9 0 9 1 1 0 1 0 8 0 amappl10 152 58 0 48 1 0 1 1 0 8 0 amappl9 144 280 0 279 1 0 1 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 80 0 79 1 0 1 1 0 8 0 amappl6 120 264 0 253 1 0 1 1 0 8 0 amappl5 112 67 0 59 1 0 1 1 0 8 0 amappl4 104 418 0 393 1 0 1 1 0 8 0 amappl3 96 4323 0 4225 3 0 3 3 0 8 0 amappl2 88 1086 0 1014 2 0 2 2 0 8 0 amappl1 80 11447 0 10907 13 0 13 13 0 8 0 amappl 88 7146 0 6971 5 0 5 5 0 92 0 uvmvnodes 80 3016 0 0 62 0 62 62 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 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 255 0 255 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 16 0 0 1 0 1 1 0 8 0 uaddrrnd 24 964 0 934 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 964 0 934 1 0 1 1 0 8 0 vmmpekpl 168 8978 0 8941 2 0 2 2 0 8 0 vmmpepl 168 66405 0 64557 95 5 90 90 0 357 9 vmsppl 368 963 0 934 4 1 3 4 0 8 0 rwobjpl 40 22075 0 18185 41 0 41 41 0 8 1 pdppl 4096 1934 0 1868 102 36 66 78 0 8 0 pvpl 32 414025 0 405354 126 22 104 104 0 265 24 pmappl 216 963 0 934 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 487 0 147 12 1 11 12 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(ffffffff8335dbfb) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c1ad,ffffffff8337a715,84,ffffffff833efd84) 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:1974 ifioctl(ffff800001485c20,8020699f,ffff800035912ec0,ffff80002a7c02b0) at ifioctl+0x1ae0 sys/net/if.c:2323 sys_ioctl(ffff80002a7c02b0,ffff800035913090,ffff800035912fe0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035913090) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035913090) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f53e70c20, 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(ffffffff8335dbfb) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8339c1ad,ffffffff8337a715,84,ffffffff833efd84) 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:1974 ifioctl(ffff800001485c20,8020699f,ffff800035912ec0,ffff80002a7c02b0) at ifioctl+0x1ae0 sys/net/if.c:2323 sys_ioctl(ffff80002a7c02b0,ffff800035913090,ffff800035912fe0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035913090) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035913090) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f53e70c20, count: -10