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 *315455 92088 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2183) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068fd4,ffffffff8303ce9e,83,ffffffff830ad84b) 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,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8071fb1610,8020699f,ffff8000374259c0,ffff80002a4c2528) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4c2528,ffff800037425ba0,ffff800037425af0) at sys_ioctl+0x678 syscall(ffff800037425ba0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x651a3cd21d0, 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:437 panic(ffffffff830b2183) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068fd4,ffffffff8303ce9e,83,ffffffff830ad84b) 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,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8071fb1610,8020699f,ffff8000374259c0,ffff80002a4c2528) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4c2528,ffff800037425ba0,ffff800037425af0) at sys_ioctl+0x678 syscall(ffff800037425ba0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x651a3cd21d0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374256f0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4c2528 r8 0 r9 0x8080808080808080 r10 0x7245e48dd44cb655 r11 0x7e312a06331e396f r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81268845 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374256e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=315455 pid=92088 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4c2a38,0xffff80002a4c3978 process=0xffff800030df4018 user=0xffff800037420000, vmspace=0xfffffd806c1a72c0 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 98536 430808 96080 0 2 0 syz-executor 98536 69378 96080 0 2 0x4000000 syz-executor 98536 106083 96080 0 3 0x4000080 fsleep syz-executor 66379 141835 26226 0 2 0 syz-executor 66379 504809 26226 0 3 0x4000080 kqpoll syz-executor 66379 32658 26226 0 2 0x4000000 syz-executor 87741 213968 48125 0 2 0x2 ndp 48125 297560 77672 0 3 0x10008a sigsusp sh 72623 423255 93439 0 2 0 syz-executor 72623 53798 93439 0 3 0x4000080 fsleep syz-executor 72623 177478 93439 0 3 0x4000080 fsleep syz-executor 72623 258583 93439 0 3 0x4000080 fsleep syz-executor 77308 399736 84329 0 2 0 syz-executor 77308 75507 84329 0 3 0x4000080 fsleep syz-executor 77308 108370 84329 0 3 0x4000080 fsleep syz-executor 92088 407880 13596 0 2 0 syz-executor 92088 248257 13596 0 2 0x4000000 syz-executor *92088 315455 13596 0 7 0x4000000 syz-executor 13596 459945 72962 0 2 0x482 syz-executor 33571 507462 72962 0 2 0x2 syz-executor 77672 759 72962 0 3 0x82 wait syz-executor 84329 77139 72962 0 2 0x482 syz-executor 26226 251447 72962 0 2 0x482 syz-executor 96080 168804 72962 0 2 0x482 syz-executor 64680 212775 72962 0 2 0x2 syz-executor 93439 329198 72962 0 2 0x482 syz-executor 23198 43919 0 0 3 0x14200 bored sosplice 80237 246475 0 0 3 0x14280 nfsidl nfsio 74369 489693 0 0 3 0x14280 nfsidl nfsio 13014 56038 0 0 3 0x14280 nfsidl nfsio 21700 423208 0 0 3 0x14280 nfsidl nfsio 45352 487255 0 0 3 0x14280 nfsidl nfsio 80182 461248 0 0 3 0x14280 nfsidl nfsio 21371 162066 0 0 3 0x14280 nfsidl nfsio 18385 205799 0 0 3 0x14280 nfsidl nfsio 65833 523130 0 0 3 0x14280 nfsidl nfsio 52928 236657 0 0 3 0x14280 nfsidl nfsio 24587 457454 0 0 3 0x14280 nfsidl nfsio 44676 509938 0 0 3 0x14280 nfsidl nfsio 17822 89321 0 0 3 0x14280 nfsidl nfsio 65944 498201 0 0 3 0x14280 nfsidl nfsio 57893 126896 0 0 3 0x14280 nfsidl nfsio 23991 385667 0 0 3 0x14280 nfsidl nfsio 11311 142892 0 0 3 0x14280 nfsidl nfsio 10272 114276 0 0 3 0x14280 nfsidl nfsio 14701 523969 0 0 3 0x14280 nfsidl nfsio 52718 393616 0 0 3 0x14280 nfsidl nfsio 72962 390520 21864 0 3 0x82 kqread syz-executor 21864 402503 89110 0 3 0x10008a sigsusp ksh 89110 487660 32542 0 3 0x98 kqread sshd-session 32542 161019 945 0 3 0x92 kqread sshd-session 6966 429381 1 0 3 0x100083 ttyin getty 945 352726 1 0 3 0x88 kqread sshd 86432 412259 16487 73 2 0x1100010 syslogd 16487 97663 1 0 3 0x100082 sbwait syslogd 11965 507559 1 0 3 0x100080 kqread resolvd 62842 56428 3557 77 3 0x100092 kqread dhcpleased 23563 137248 3557 77 3 0x100092 kqread dhcpleased 3557 284164 1 0 3 0x80 kqread dhcpleased 28449 458863 0 0 3 0x14200 bored smr 88372 210091 0 0 2 0x14200 zerothread 76546 134205 0 0 3 0x14200 aiodoned aiodoned 32475 402787 0 0 3 0x14200 syncer update 59984 367784 0 0 3 0x14200 cleaner cleaner 85412 67468 0 0 3 0x14200 reaper reaper 90595 436288 0 0 3 0x14200 pgdaemon pagedaemon 56220 447800 0 0 3 0x14200 bored viomb 29928 177633 0 0 3 0x40014200 acpi0 acpi0 77083 357106 0 0 3 0x14200 bored softnet3 57505 60704 0 0 3 0x14200 bored softnet2 7342 356775 0 0 3 0x14200 bored softnet1 79326 7313 0 0 3 0x14200 bored softnet0 78734 84998 0 0 3 0x14200 bored systqmp 48940 171106 0 0 3 0x14200 bored systq 35318 49283 0 0 3 0x40014200 tmoslp softclock 47198 268674 0 0 3 0x40014200 idle0 1 292056 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 10183 11118K 11302K 166960K 11944 0 pcb 17 14K 16K 166960K 229 0 rtable 212 6K 7K 166960K 2077 0 pf 35 14K 17K 166960K 183 0 ifaddr 42 8K 8K 166960K 288 0 ifgroup 55 2K 2K 166960K 306 0 sysctl 2 0K 0K 166960K 2 0 counters 31 17K 17K 166960K 97 0 ioctlops 0 0K 4K 166960K 141 0 iov 0 0K 16K 166960K 111 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1475 93K 93K 166960K 2582 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 26 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 1452 0 sigio 0 0K 0K 166960K 13 0 proc 60 59K 91K 166960K 2093 0 subproc 104 6K 7K 166960K 832 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 99 0 in_multi 96 7K 7K 166960K 732 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 1184 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 218 72K 88K 166960K 11597 0 UVM aobj 12 2K 2K 166960K 14 0 pinsyscall 38 76K 96K 166960K 3945 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 11 0 NDP 12 0K 2K 166960K 207 0 temp 76 6816K 6943K 166960K 27286 0 kqueue 14 22K 30K 166960K 117 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 180 0 177 1 0 1 1 0 8 0 rtentry 112 737 0 641 4 0 4 4 0 8 1 unpcb 144 411 0 394 4 0 4 4 0 8 3 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 808 217 0 208 10 2 8 8 0 8 7 arp 88 132 0 114 1 0 1 1 0 8 0 ipq 40 4 0 3 1 0 1 1 0 8 0 ipqe 40 38 0 37 1 0 1 1 0 8 0 inpcb 336 1057 0 1043 16 6 10 10 0 8 8 nd6 104 194 0 170 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 64 0 56 1 0 1 1 0 8 0 ppxss 1072 7 0 7 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 4 1 0 1 1 0 8 0 pfstate 344 4 0 2 1 0 1 1 0 8 0 pfrule 1344 4 0 4 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2977 0 2558 34 6 28 29 0 8 1 art_table 32 2979 0 2558 4 0 4 4 0 8 0 art_node 16 736 0 650 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 11 0 2 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2571 0 961 101 0 101 101 0 8 0 ffsino 240 2571 0 961 95 0 95 95 0 8 0 nchpl 144 3526 0 1769 66 0 66 66 0 8 0 uvmvnodes 80 3709 0 0 76 0 76 76 0 8 0 vnodes 216 3709 0 0 207 0 207 207 0 8 0 namei 1024 17539 0 17538 2 1 1 1 0 8 0 kstatmem 264 156 0 132 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 33141 0 33141 8 7 1 8 1 8 1 plimitpl 152 300 0 283 1 0 1 1 0 8 0 sigapl 424 1644 0 1578 9 0 9 9 0 8 1 futexpl 64 7760 0 7754 1 0 1 1 0 8 0 knotepl 120 27804 0 27755 17 7 10 10 0 8 8 kqueuepl 184 178 0 166 1 0 1 1 0 8 0 pipepl 288 312 0 285 4 1 3 3 0 8 0 fdescpl 432 1607 0 1578 5 1 4 5 0 8 0 filepl 120 7254 0 7011 16 2 14 14 0 8 5 lockfpl 104 362 0 360 2 0 2 2 0 8 1 lockfspl 48 75 0 73 1 0 1 1 0 8 0 sessionpl 144 80 0 72 1 0 1 1 0 8 0 pgrppl 48 149 0 133 1 0 1 1 0 8 0 ucredpl 104 823 0 810 1 0 1 1 0 8 0 zombiepl 144 1809 0 1809 2 1 1 1 0 8 1 processpl 1096 1645 0 1578 6 0 6 6 0 8 0 procpl 648 2487 0 2409 9 1 8 8 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 504 1728 0 1695 27 14 13 17 0 8 8 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 3354 0 3299 19 10 9 18 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1675 0 1674 2 0 2 2 0 8 1 mtagpl 96 47 0 47 1 0 1 1 0 8 1 mbufpl 256 15083 0 14897 16 1 15 15 0 8 2 bufpl 280 7961 0 1021 496 0 496 496 0 8 0 anonpl 24 263684 0 260507 148 23 125 125 0 187 90 amapchunkpl 152 37561 0 37101 69 18 51 51 0 158 31 amappl16 200 3941 0 3928 27 19 8 14 0 8 7 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 237 0 227 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 3116 0 3087 2 0 2 2 0 8 0 amappl11 160 46 0 35 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 117 0 117 1 1 0 1 0 8 0 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 210 0 199 1 0 1 1 0 8 0 amappl6 120 718 0 716 1 0 1 1 0 8 0 amappl5 112 356 0 348 1 0 1 1 0 8 0 amappl4 104 468 0 452 1 0 1 1 0 8 0 amappl3 96 6935 0 6834 4 0 4 4 0 8 1 amappl2 88 1486 0 1419 2 0 2 2 0 8 0 amappl1 80 15385 0 14869 17 1 16 16 0 8 1 amappl 88 10777 0 10614 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma512 512 1 0 1 1 0 1 1 0 8 1 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 2 1 0 1 1 0 8 0 uaddrrnd 24 1607 0 1578 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1607 0 1578 1 0 1 1 0 8 0 vmmpekpl 168 13830 0 13782 3 0 3 3 0 8 0 vmmpepl 168 105423 0 103767 114 14 100 100 0 357 24 vmsppl 344 1606 0 1578 5 1 4 4 0 8 1 rwobjpl 24 35427 0 30859 28 0 28 28 0 8 0 pdppl 4096 3220 0 3156 176 108 68 80 0 8 4 pvpl 32 821353 0 812090 462 132 330 330 0 265 230 pmappl 216 1606 0 1578 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 518 0 154 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:437 panic(ffffffff830b2183) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068fd4,ffffffff8303ce9e,83,ffffffff830ad84b) 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,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8071fb1610,8020699f,ffff8000374259c0,ffff80002a4c2528) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4c2528,ffff800037425ba0,ffff800037425af0) at sys_ioctl+0x678 syscall(ffff800037425ba0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x651a3cd21d0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2183) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068fd4,ffffffff8303ce9e,83,ffffffff830ad84b) 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,ffff800000b10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd8071fb1610,8020699f,ffff8000374259c0,ffff80002a4c2528) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4c2528,ffff800037425ba0,ffff800037425af0) at sys_ioctl+0x678 syscall(ffff800037425ba0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x651a3cd21d0, count: -10