panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 131 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 71075 64126 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834063b7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b6d0b,ffffffff83383f37,83,ffffffff83402b98) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd5910,8020699f,ffff80003c970de0,ffff80002a8e47c8) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a8e47c8,ffff80003c970fc0,ffff80003c970f10) at sys_ioctl+0x5bf syscall(ffff80003c970fc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95bf5af10e0, 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 131 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834063b7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b6d0b,ffffffff83383f37,83,ffffffff83402b98) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd5910,8020699f,ffff80003c970de0,ffff80002a8e47c8) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a8e47c8,ffff80003c970fc0,ffff80003c970f10) at sys_ioctl+0x5bf syscall(ffff80003c970fc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95bf5af10e0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c970b10 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a8e47c8 r8 0 r9 0x8080808080808080 r10 0x9ce5b14bafe0b9d2 r11 0x15320c8ef384e34 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff810e2c55 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c970b00 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=71075 pid=64126 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=78, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a8e5498,0xffff80002a8e4cf8 process=0xffff8000ffff4d20 user=0xffff80003c96c000, vmspace=0xfffffd806860a180 estcpu=29, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 38171 368178 68020 0 2 0 syz-executor 38171 258851 68020 0 3 0x4000080 fsleep syz-executor 38171 389818 68020 0 3 0x4000080 fsleep syz-executor 2420 400298 46637 0 2 0 syz-executor 2420 406374 46637 0 3 0x4000080 msgwait syz-executor 2420 16487 46637 0 3 0x4000080 fsleep syz-executor 2420 391604 46637 0 3 0x4000080 fsleep syz-executor 64126 41090 86828 0 2 0 syz-executor 64126 174888 86828 0 2 0x4000000 syz-executor *64126 71075 86828 0 7 0x4000000 syz-executor 90010 125861 54446 -1 2 0x10 syz-executor 90010 213143 54446 -1 3 0x4000090 fsleep syz-executor 91438 14703 12725 -1 2 0x490 syz-executor 91438 425419 12725 -1 3 0x4000090 kqsel syz-executor 91438 345809 12725 -1 3 0x4000090 fsleep syz-executor 82049 89772 0 0 3 0x14200 acct acct 65990 464584 0 0 3 0x14200 bored sosplice 12725 111725 283 0 2 0x482 syz-executor 9779 300997 283 0 2 0x2 syz-executor 11912 407321 283 0 2 0x482 syz-executor 86828 249903 283 0 3 0x82 nanoslp syz-executor 54446 77677 283 0 3 0x82 nanoslp syz-executor 46637 391159 283 0 2 0x482 syz-executor 68020 510257 283 0 2 0x482 syz-executor 29585 96874 283 0 2 0x2 syz-executor 283 408078 49012 0 3 0x82 kqread syz-executor 49012 520101 99270 0 3 0x10008a sigsusp ksh 99270 472769 44049 0 3 0x98 kqread sshd-session 44049 255676 51283 0 3 0x92 kqread sshd-session 78525 433915 1 0 3 0x100083 ttyin getty 51283 73788 1 0 3 0x88 kqread sshd 20292 222697 65119 73 3 0x1100090 kqread syslogd 65119 429138 1 0 3 0x100082 sbwait syslogd 35940 219182 1 0 3 0x100080 kqread resolvd 53711 38150 78870 77 3 0x100092 kqread dhcpleased 35083 248009 78870 77 3 0x100092 kqread dhcpleased 78870 271617 1 0 3 0x80 kqread dhcpleased 80734 212348 0 0 3 0x14200 bored smr 44792 411918 0 0 2 0x14200 zerothread 52268 26842 0 0 3 0x14200 aiodoned aiodoned 26858 353423 0 0 3 0x14200 syncer update 85853 325663 0 0 3 0x14200 cleaner cleaner 21932 254848 0 0 3 0x14200 reaper reaper 92160 391335 0 0 3 0x14200 pgdaemon pagedaemon 45936 420183 0 0 3 0x14200 bored viomb 86098 369845 0 0 3 0x40014200 acpi0 acpi0 88334 179379 0 0 3 0x14200 bored softnet3 33248 441306 0 0 3 0x14200 bored softnet2 74311 133365 0 0 3 0x14200 bored softnet1 86038 149532 0 0 3 0x14200 bored softnet0 64202 120124 0 0 3 0x14200 bored systqmp 84118 33422 0 0 3 0x14200 bored systq 21646 394600 0 0 3 0x40014200 tmoslp softclock 50435 478725 0 0 3 0x40014200 idle0 1 498687 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 10187 11119K 11429K 166960K 12033 0 pcb 18 13K 13K 166960K 78 0 rtable 204 8K 10K 166960K 425 0 pf 28 12K 17K 166960K 64 0 ifaddr 37 6K 8K 166960K 57 0 ifgroup 46 2K 2K 166960K 72 0 sysctl 3 1K 1K 166960K 3 0 counters 29 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 65 0 iov 0 0K 14K 166960K 96 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 85K 166960K 1572 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 83 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 97K 166960K 455 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 124K 166960K 519 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 55 0 in_multi 84 6K 7K 166960K 115 0 ether_multi 1 0K 0K 166960K 6 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 91 413K 413K 166960K 91 0 exec 0 0K 2K 166960K 382 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 206 72K 74K 166960K 5587 0 UVM aobj 11 2K 2K 166960K 14 0 pinsyscall 37 74K 96K 166960K 1477 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 10 0K 2K 166960K 34 0 temp 52 8677K 8742K 166960K 7799 0 kqueue 13 20K 29K 166960K 92 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 66 0 63 1 0 1 1 0 8 0 rtentry 112 125 0 37 4 0 4 4 0 8 0 unpcb 144 215 0 197 2 1 1 2 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 173 0 169 10 6 4 7 0 8 3 arp 88 20 0 4 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 1 1 0 1 1 0 8 0 inpcb 344 450 0 441 12 5 7 7 0 8 6 nd6 104 25 0 4 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 2 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 10 0 10 2 2 0 1 0 8 0 pppxif 1384 3 0 3 2 2 0 1 0 8 0 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 pfanchor 1288 7 0 5 1 0 1 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfrule 1344 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 471 0 106 29 0 29 29 0 8 3 art_table 32 473 0 106 4 0 4 4 0 8 0 art_node 16 119 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 77 0 69 1 0 1 1 0 8 0 shmpl 112 11 0 3 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2154 0 659 95 0 95 95 0 8 0 ffsino 248 2154 0 659 95 0 95 95 0 8 0 nchpl 144 2795 0 1117 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 2353 0 0 49 0 49 49 0 8 0 vnodes 216 2353 0 0 131 0 131 131 0 8 0 namei 1024 9432 0 9432 3 2 1 2 0 8 1 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 36 0 16 3 1 2 3 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 9009 0 9009 9 8 1 8 1 8 1 plimitpl 152 70 0 53 1 0 1 1 0 8 0 sigapl 424 736 0 690 7 1 6 7 0 8 0 futexpl 64 5327 0 5321 1 0 1 1 0 8 0 knotepl 120 14432 0 14384 12 9 3 9 0 8 1 kqueuepl 184 161 0 150 3 2 1 3 0 8 0 pipepl 296 188 0 161 8 0 8 8 0 8 5 fdescpl 440 716 0 688 5 1 4 5 0 8 0 filepl 120 4075 0 3860 17 4 13 13 0 8 5 lockfpl 104 103 0 101 1 0 1 1 0 8 0 lockfspl 48 45 0 43 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 96 0 80 1 0 1 1 0 8 0 ucredpl 104 341 0 328 1 0 1 1 0 8 0 zombiepl 144 786 0 785 2 1 1 1 0 8 0 processpl 1112 736 0 690 4 0 4 4 0 8 0 procpl 656 1270 0 1214 7 1 6 6 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 528 739 0 709 11 4 7 7 0 8 4 mcl64k 65536 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 15 0 15 3 2 1 1 0 8 1 mcl4k 4096 2843 0 2792 14 6 8 13 0 8 1 mcl2k 2048 418 0 412 1 0 1 1 0 8 0 mtagpl 96 88 0 5 3 0 3 3 0 8 0 mbufpl 256 7237 0 6995 18 1 17 17 0 8 1 bufpl 280 3833 0 126 265 0 265 265 0 8 0 anonpl 24 137457 0 134363 103 74 29 69 0 187 1 amapchunkpl 152 18086 0 17632 31 8 23 27 0 158 2 amappl16 200 2900 0 2867 39 34 5 27 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 102 0 92 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 1322 0 1294 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 29 0 28 1 0 1 1 0 8 0 amappl7 128 94 0 84 1 0 1 1 0 8 0 amappl6 120 171 0 167 1 0 1 1 0 8 0 amappl5 112 112 0 104 1 0 1 1 0 8 0 amappl4 104 279 0 263 1 0 1 1 0 8 0 amappl3 96 3367 0 3264 4 0 4 4 0 8 0 amappl2 88 610 0 553 2 0 2 2 0 8 0 amappl1 80 8360 0 7851 13 2 11 13 0 8 0 amappl 88 5223 0 5065 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 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 13 0 3 1 0 1 1 0 8 0 uaddrrnd 24 716 0 688 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 716 0 688 1 0 1 1 0 8 0 vmmpekpl 168 7285 0 7252 2 0 2 2 0 8 0 vmmpepl 168 49769 0 48082 113 32 81 98 0 357 0 vmsppl 360 715 0 688 4 1 3 4 0 8 0 rwobjpl 32 18702 0 15503 28 1 27 27 0 8 0 pdppl 4096 1439 0 1376 101 34 67 83 0 8 4 pvpl 32 340160 0 331950 183 99 84 147 0 265 2 pmappl 216 715 0 688 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 285 0 55 8 0 8 8 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(ffffffff834063b7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b6d0b,ffffffff83383f37,83,ffffffff83402b98) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd5910,8020699f,ffff80003c970de0,ffff80002a8e47c8) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a8e47c8,ffff80003c970fc0,ffff80003c970f10) at sys_ioctl+0x5bf syscall(ffff80003c970fc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95bf5af10e0, 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(ffffffff834063b7) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b6d0b,ffffffff83383f37,83,ffffffff83402b98) at __assert+0x29 rtmap_grow(17,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(16) at rtable_add+0x279 if_createrdomain(16,ffff800000b11800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff800010fd5910,8020699f,ffff80003c970de0,ffff80002a8e47c8) at ifioctl+0x19be sys/net/if.c:2301 sys_ioctl(ffff80002a8e47c8,ffff80003c970fc0,ffff80003c970f10) at sys_ioctl+0x5bf syscall(ffff80003c970fc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95bf5af10e0, count: -10