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 *484498 98869 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) at __assert+0x29 rtmap_grow(1c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1b) at rtable_add+0x279 if_createrdomain(1b,ffff800001181000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806b64d620,8020699f,ffff80002a59d540,ffff80002a47a540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47a540,ffff80002a59d720,ffff80002a59d670) at sys_ioctl+0x678 syscall(ffff80002a59d720) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7b86976980, 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) at __assert+0x29 rtmap_grow(1c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1b) at rtable_add+0x279 if_createrdomain(1b,ffff800001181000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806b64d620,8020699f,ffff80002a59d540,ffff80002a47a540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47a540,ffff80002a59d720,ffff80002a59d670) at sys_ioctl+0x678 syscall(ffff80002a59d720) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7b86976980, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a59d270 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a47a540 r8 0x101010101010101 r9 0x8080808080808080 r10 0x561e04093c40a259 r11 0x4c52ef39b7ba2cbf r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff81fea4f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a59d260 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=484498 pid=98869 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a47b980,0xffff80002a47b708 process=0xffff80002a4659b8 user=0xffff80002a598000, vmspace=0xfffffd806c28a978 estcpu=33, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 69869 498206 99251 0 2 0x101004 sh 4537 51327 89958 0 2 0 syz-executor 4537 44770 89958 0 2 0x4000000 syz-executor 49932 240958 76569 0 2 0 syz-executor 49932 266561 76569 0 3 0x4000080 fsleep syz-executor 49932 315138 76569 0 3 0x4000080 fsleep syz-executor 98869 477547 43001 0 2 0 syz-executor 98869 523869 43001 0 2 0x4000000 syz-executor *98869 484498 43001 0 7 0x4000000 syz-executor 37036 328938 56702 0 2 0 syz-executor 37036 45095 56702 0 3 0x4000080 fsleep syz-executor 37036 314389 56702 0 3 0x4000080 fsleep syz-executor 30979 260871 99609 0 3 0x3000 suspend syz-executor 30979 223387 99609 0 2 0x4081000 syz-executor 99251 149896 13712 0 3 0x10008a sigsusp sh 51017 205443 6141 0 2 0 syz-executor 51017 102253 6141 0 3 0x4000080 kqread syz-executor 89958 474756 29076 0 3 0x82 nanoslp syz-executor 13712 62530 29076 0 3 0x82 wait syz-executor 43001 380396 29076 0 3 0x82 nanoslp syz-executor 76569 120308 29076 0 3 0x82 nanoslp syz-executor 73540 435366 29076 0 3 0x2 biowait syz-executor 99609 253449 29076 0 3 0x82 nanoslp syz-executor 56702 258725 29076 0 3 0x82 nanoslp syz-executor 6141 202514 29076 0 3 0x82 nanoslp syz-executor 19695 101375 1 0 3 0x3000 suspend syz-executor 19695 297108 1 0 2 0x4081000 syz-executor 22372 354098 1 0 3 0x100083 ttyin getty 57480 415771 0 0 3 0x14200 bored sosplice 29076 119476 29481 0 2 0x3 syz-executor 29481 75740 92042 0 3 0x10008a sigsusp ksh 92042 44718 33430 0 3 0x98 kqread sshd-session 33430 437551 19461 0 3 0x92 kqread sshd-session 19461 25866 1 0 3 0x88 kqread sshd 32461 449686 39058 73 2 0x1100010 syslogd 39058 505716 1 0 3 0x100082 sbwait syslogd 55904 155761 1 0 3 0x100080 kqread resolvd 58768 151865 2577 77 3 0x100092 kqread dhcpleased 74948 130052 2577 77 3 0x100092 kqread dhcpleased 2577 316967 1 0 3 0x80 kqread dhcpleased 42188 216736 0 0 3 0x14200 bored smr 98862 428666 0 0 2 0x14200 zerothread 47719 120425 0 0 3 0x14200 aiodoned aiodoned 491 338651 0 0 3 0x14200 syncer update 30943 226677 0 0 3 0x14200 cleaner cleaner 79539 501572 0 0 3 0x14200 reaper reaper 43062 324762 0 0 3 0x14200 pgdaemon pagedaemon 46313 320224 0 0 3 0x14200 bored viomb 89922 102045 0 0 3 0x40014200 acpi0 acpi0 67278 233554 0 0 3 0x14200 bored softnet3 94153 394632 0 0 3 0x14200 bored softnet2 70779 206095 0 0 3 0x14200 bored softnet1 94827 123787 0 0 3 0x14200 bored softnet0 29578 341665 0 0 3 0x14200 bored systqmp 71258 493003 0 0 3 0x14200 bored systq 86279 52930 0 0 3 0x40014200 tmoslp softclock 23399 201731 0 0 3 0x40014200 idle0 1 494751 0 0 3 0x80082 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 10176 10021K 10340K 166960K 11529 0 pcb 17 12K 12K 166960K 52 0 rtable 240 7K 7K 166960K 1110 0 pf 31 13K 16K 166960K 99 0 ifaddr 43 8K 8K 166960K 153 0 ifgroup 50 2K 2K 166960K 172 0 sysctl 1 0K 0K 166960K 1 0 counters 30 17K 17K 166960K 62 0 ioctlops 0 0K 2K 166960K 61 0 iov 0 0K 16K 166960K 76 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1399 88K 88K 166960K 1850 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 7 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 19 69K 97K 166960K 698 0 sigio 0 0K 0K 166960K 8 0 proc 58 59K 124K 166960K 1164 0 subproc 117 7K 7K 166960K 416 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 30 0 in_multi 100 7K 7K 166960K 369 0 ether_multi 1 0K 0K 166960K 1 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 85 387K 387K 166960K 85 0 exec 1 0K 2K 166960K 735 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 244 81K 81K 166960K 6440 0 UVM aobj 11 2K 2K 166960K 13 0 pinsyscall 40 80K 106K 166960K 2346 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 15 0K 2K 166960K 107 0 temp 52 6805K 6883K 166960K 28499 0 kqueue 15 24K 28K 166960K 58 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 99 0 96 1 0 1 1 0 8 0 rtentry 112 383 0 273 4 0 4 4 0 8 0 unpcb 144 371 0 355 6 0 6 6 0 8 5 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpcb 808 157 0 152 5 1 4 4 0 8 3 arp 88 68 0 49 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 336 467 0 453 4 0 4 4 0 8 2 nd6 104 97 0 74 1 0 1 1 0 8 0 kcovpl 48 32 0 23 1 0 1 1 0 8 0 ppxss 1072 4 0 4 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfstkey 128 2 0 2 1 0 1 1 0 8 1 pfstate 344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1537 0 1078 30 0 30 30 0 8 0 art_table 32 1538 0 1078 4 0 4 4 0 8 0 art_node 16 381 0 283 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 6 0 1 1 0 1 1 0 8 0 shmpl 112 10 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1958 0 408 97 0 97 97 0 8 0 ffsino 240 1958 0 408 92 0 92 92 0 8 0 nchpl 144 2457 0 746 64 0 64 64 0 8 0 uvmvnodes 80 2464 0 0 51 0 51 51 0 8 0 vnodes 216 2464 0 0 137 0 137 137 0 8 0 namei 1024 10030 0 10027 3 1 2 2 0 8 1 kstatmem 264 86 0 64 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 14720 0 14719 10 2 8 8 1 8 7 plimitpl 152 113 0 96 1 0 1 1 0 8 0 sigapl 424 932 0 884 7 1 6 7 0 8 0 futexpl 64 3434 0 3430 1 0 1 1 0 8 0 knotepl 120 10784 0 10491 10 1 9 9 0 8 0 kqueuepl 184 101 0 90 3 0 3 3 0 8 2 pipepl 288 196 0 166 4 1 3 3 0 8 0 fdescpl 432 915 0 884 5 1 4 5 0 8 0 filepl 120 3925 0 3644 15 0 15 15 0 8 4 lockfpl 104 87 0 80 1 0 1 1 0 8 0 lockfspl 48 39 0 33 1 0 1 1 0 8 0 sessionpl 144 46 0 38 1 0 1 1 0 8 0 pgrppl 48 78 0 61 1 0 1 1 0 8 0 ucredpl 104 394 0 383 1 0 1 1 0 8 0 zombiepl 144 969 0 967 1 0 1 1 0 8 0 processpl 1096 932 0 884 4 0 4 4 0 8 0 procpl 648 1283 0 1225 7 1 6 6 0 8 0 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 504 943 0 910 29 17 12 26 0 8 7 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl16k 16384 7 0 7 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 3 0 3 1 1 0 1 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 5799 0 5701 24 10 14 24 0 8 1 mtagpl 96 5 0 5 2 1 1 1 0 8 1 mbufpl 256 10818 0 10619 19 0 19 19 0 8 4 bufpl 280 5922 0 90 417 0 417 417 0 8 0 anonpl 24 197276 0 191199 64 3 61 61 0 187 24 amapchunkpl 152 20342 0 19793 36 1 35 35 0 158 13 amappl16 200 4291 0 4123 12 3 9 9 0 8 0 amappl15 192 73 0 73 1 1 0 1 0 8 0 amappl14 184 158 0 148 1 0 1 1 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 1920 0 1889 3 1 2 3 0 8 0 amappl11 160 52 0 42 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 133 0 133 1 1 0 1 0 8 0 amappl8 136 34 0 33 1 0 1 1 0 8 0 amappl7 128 147 0 137 1 0 1 1 0 8 0 amappl6 120 415 0 412 1 0 1 1 0 8 0 amappl5 112 222 0 214 1 0 1 1 0 8 0 amappl4 104 362 0 346 1 0 1 1 0 8 0 amappl3 96 3622 0 3518 4 0 4 4 0 8 1 amappl2 88 1167 0 1095 2 0 2 2 0 8 0 amappl1 80 10599 0 10058 15 3 12 15 0 8 0 amappl 88 5917 0 5729 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 12 0 2 1 0 1 1 0 8 0 uaddrrnd 24 915 0 884 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 915 0 884 1 0 1 1 0 8 0 vmmpekpl 168 9024 0 8970 3 0 3 3 0 8 0 vmmpepl 168 64344 0 62406 91 4 87 87 0 357 0 vmsppl 344 914 0 884 4 1 3 4 0 8 0 rwobjpl 24 24388 0 20866 22 0 22 22 0 8 0 pdppl 4096 1837 0 1768 131 58 73 83 0 8 4 pvpl 32 490083 0 477800 224 2 222 222 0 265 120 pmappl 216 914 0 884 3 0 3 3 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 454 0 95 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) at __assert+0x29 rtmap_grow(1c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1b) at rtable_add+0x279 if_createrdomain(1b,ffff800001181000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806b64d620,8020699f,ffff80002a59d540,ffff80002a47a540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47a540,ffff80002a59d720,ffff80002a59d670) at sys_ioctl+0x678 syscall(ffff80002a59d720) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7b86976980, 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(ffffffff830ad758) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8306742a,ffffffff8303735f,83,ffffffff830a777d) at __assert+0x29 rtmap_grow(1c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(1b) at rtable_add+0x279 if_createrdomain(1b,ffff800001181000) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806b64d620,8020699f,ffff80002a59d540,ffff80002a47a540) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a47a540,ffff80002a59d720,ffff80002a59d670) at sys_ioctl+0x678 syscall(ffff80002a59d720) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7b86976980, count: -10