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 * 26427 6780 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830aeaa5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068efa,ffffffff8303af2d,83,ffffffff830ab548) 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,ffff800000e10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d103210,8020699f,ffff80002a49cf70,ffff80002a4b0298) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4b0298,ffff80002a49d150,ffff80002a49d0a0) at sys_ioctl+0x678 syscall(ffff80002a49d150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd58f0689950, 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(ffffffff830aeaa5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068efa,ffffffff8303af2d,83,ffffffff830ab548) 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,ffff800000e10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d103210,8020699f,ffff80002a49cf70,ffff80002a4b0298) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4b0298,ffff80002a49d150,ffff80002a49d0a0) at sys_ioctl+0x678 syscall(ffff80002a49d150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd58f0689950, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a49cca0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a4b0298 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb272b2afed7f5b48 r11 0x4c3162d23e1055ac r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff8291fb85 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a49cc90 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=26427 pid=6780 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=64, usrpri=65, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002d9e11e8,0xffff80002a4b0020 process=0xffff8000327f7378 user=0xffff80002a498000, vmspace=0xfffffd806beeb168 estcpu=15, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 31341 467445 6332 0 2 0 syz-executor 31341 483378 6332 0 2 0x4000000 syz-executor 63530 83085 12947 0 2 0 syz-executor 15435 253039 13459 -1 2 0x4000010 syz-executor 15435 505848 13459 -1 2 0x4000010 syz-executor 15435 322129 13459 -1 3 0x4000090 fsleep syz-executor 6780 66007 69441 0 2 0 syz-executor 6780 301807 69441 0 2 0x4000000 syz-executor * 6780 26427 69441 0 7 0x4000000 syz-executor 52449 89511 81845 0 3 0x3000 suspend syz-executor 52449 513558 81845 0 2 0x4081000 syz-executor 52449 36770 81845 0 3 0x4081000 inode syz-executor 2821 154176 5605 0 2 0x2 syz-executor 55071 302824 1 0 3 0x100083 ttyin getty 12947 357019 5605 0 2 0x3 syz-executor 13459 355970 5605 0 3 0x82 nanoslp syz-executor 69441 439160 5605 0 3 0x82 nanoslp syz-executor 91909 353927 5605 0 2 0x2 syz-executor 81845 200404 5605 0 3 0x82 nanoslp syz-executor 53842 328949 5605 0 2 0x2 syz-executor 6332 79554 5605 0 2 0x3 syz-executor 16006 347446 0 0 3 0x14200 bored sosplice 5605 108253 39746 0 2 0x3 syz-executor 39746 476619 3560 0 3 0x10008a sigsusp ksh 3560 433454 20942 0 3 0x98 kqread sshd-session 20942 109186 1 0 3 0x92 kqread sshd-session 37708 342324 35724 73 2 0x1100010 syslogd 35724 101733 1 0 3 0x100082 sbwait syslogd 85962 23640 1 0 3 0x100080 kqread resolvd 10053 400435 95560 77 3 0x100092 kqread dhcpleased 2711 464256 95560 77 3 0x100092 kqread dhcpleased 95560 210692 1 0 3 0x80 kqread dhcpleased 21000 485374 0 0 3 0x14200 bored smr 97043 251498 0 0 2 0x14200 zerothread 1467 37599 0 0 3 0x14200 aiodoned aiodoned 33516 98831 0 0 3 0x14200 syncer update 92509 520788 0 0 3 0x14200 cleaner cleaner 95227 96264 0 0 2 0x14200 reaper 83904 475382 0 0 3 0x14200 pgdaemon pagedaemon 80388 313006 0 0 3 0x14200 bored viomb 97848 389571 0 0 3 0x40014200 acpi0 acpi0 33034 490058 0 0 3 0x14200 bored softnet3 46705 227329 0 0 3 0x14200 bored softnet2 72049 293940 0 0 3 0x14200 bored softnet1 70560 371639 0 0 3 0x14200 bored softnet0 44462 107819 0 0 3 0x14200 bored systqmp 70138 303482 0 0 3 0x14200 bored systq 93002 162441 0 0 3 0x40014200 tmoslp softclock 3141 185342 0 0 3 0x40014200 idle0 1 127257 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 10179 14179K 14414K 166960K 11764 0 pcb 17 14K 15K 166960K 124 0 rtable 212 6K 7K 166960K 723 0 pf 29 12K 20K 166960K 73 0 ifaddr 38 6K 7K 166960K 96 0 ifgroup 46 2K 2K 166960K 115 0 sysctl 2 0K 0K 166960K 3 0 counters 29 17K 17K 166960K 48 0 ioctlops 0 0K 4K 166960K 60 0 iov 0 0K 16K 166960K 98 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1426 90K 90K 166960K 1915 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 13 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 15 53K 97K 166960K 620 0 sigio 0 0K 0K 166960K 7 0 proc 60 59K 124K 166960K 797 0 subproc 92 5K 6K 166960K 235 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 50 0 in_multi 84 6K 7K 166960K 227 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 551 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 188 63K 90K 166960K 6660 0 UVM aobj 95 3K 3K 166960K 96 0 pinsyscall 34 68K 96K 166960K 1916 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 19 0 NDP 10 0K 2K 166960K 65 0 temp 72 6817K 6882K 166960K 16588 0 kqueue 13 20K 24K 166960K 79 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 76 0 73 1 0 1 1 0 8 0 rtentry 112 244 0 148 4 0 4 4 0 8 0 unpcb 144 697 0 680 7 1 6 6 0 8 5 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 118 0 116 1 0 1 1 0 8 0 arp 88 45 0 28 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 336 669 0 661 15 6 9 10 0 8 8 nd6 104 57 0 38 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 18 0 11 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 1 0 1 1 0 8 0 pfstate 344 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 913 0 517 30 1 29 29 0 8 0 art_table 32 914 0 517 4 0 4 4 0 8 0 art_node 16 243 0 156 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 93 0 1 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2259 0 743 96 0 96 96 0 8 0 ffsino 240 2259 0 743 90 0 90 90 0 8 0 nchpl 144 2981 0 2436 63 33 30 63 0 8 8 uvmvnodes 80 2744 0 0 56 0 56 56 0 8 0 vnodes 216 2745 0 0 153 0 153 153 0 8 0 namei 1024 10308 0 10304 3 2 1 2 0 8 0 kstatmem 264 58 0 38 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 12797 0 12797 8 7 1 8 1 8 1 plimitpl 152 100 0 84 1 0 1 1 0 8 0 sigapl 424 883 0 840 7 1 6 7 0 8 0 futexpl 64 5789 0 5788 1 0 1 1 0 8 0 knotepl 120 15230 0 15181 18 8 10 10 0 8 8 kqueuepl 184 104 0 94 1 0 1 1 0 8 0 pipepl 288 205 0 178 6 1 5 5 0 8 2 fdescpl 432 865 0 839 5 1 4 5 0 8 0 filepl 120 4858 0 4629 18 4 14 14 0 8 6 lockfpl 104 238 0 234 2 0 2 2 0 8 1 lockfspl 48 115 0 112 1 0 1 1 0 8 0 sessionpl 144 34 0 27 1 0 1 1 0 8 0 pgrppl 48 55 0 40 1 0 1 1 0 8 0 ucredpl 104 620 0 607 1 0 1 1 0 8 0 zombiepl 144 985 0 984 1 0 1 1 0 8 0 processpl 1096 883 0 840 4 0 4 4 0 8 0 procpl 648 1455 0 1402 7 1 6 6 0 8 0 sosppl 168 6 0 6 1 1 0 1 0 8 0 sockpl 504 1451 0 1423 44 32 12 26 0 8 8 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 14 0 14 2 1 1 1 0 8 1 mcl4k 4096 4 0 4 1 1 0 1 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 5943 0 5848 31 16 15 29 0 8 0 mtagpl 96 57 0 56 2 0 2 2 0 8 1 mbufpl 256 11780 0 11611 17 0 17 17 0 8 3 bufpl 280 5882 0 96 414 0 414 414 0 8 0 anonpl 24 205028 0 202197 86 19 67 67 0 187 41 amapchunkpl 152 21935 0 21539 40 4 36 36 0 158 17 amappl16 200 4897 0 4880 26 18 8 14 0 8 6 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 151 0 142 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 1 1 1 0 8 1 amappl12 168 1641 0 1615 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 15 0 15 1 1 0 1 0 8 0 amappl9 144 115 0 115 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 122 0 112 1 0 1 1 0 8 0 amappl6 120 266 0 265 1 0 1 1 0 8 0 amappl5 112 166 0 158 1 0 1 1 0 8 0 amappl4 104 346 0 331 1 0 1 1 0 8 0 amappl3 96 4337 0 4249 4 0 4 4 0 8 1 amappl2 88 805 0 749 2 0 2 2 0 8 0 amappl1 80 9448 0 9011 13 2 11 13 0 8 1 amappl 88 6202 0 6061 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 254 0 254 2 1 1 1 0 8 1 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 95 0 1 2 0 2 2 0 8 0 uaddrrnd 24 865 0 839 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 865 0 839 1 0 1 1 0 8 0 vmmpekpl 168 7962 0 7914 3 0 3 3 0 8 0 vmmpepl 168 61351 0 59870 91 7 84 84 0 357 14 vmsppl 344 864 0 839 4 1 3 4 0 8 0 rwobjpl 24 23739 0 20187 23 1 22 22 0 8 0 pdppl 4096 1736 0 1678 104 42 62 82 0 8 4 pvpl 32 470245 0 462182 243 35 208 208 0 265 127 pmappl 216 864 0 839 3 0 3 3 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 450 0 106 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(ffffffff830aeaa5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068efa,ffffffff8303af2d,83,ffffffff830ab548) 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,ffff800000e10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d103210,8020699f,ffff80002a49cf70,ffff80002a4b0298) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4b0298,ffff80002a49d150,ffff80002a49d0a0) at sys_ioctl+0x678 syscall(ffff80002a49d150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd58f0689950, 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(ffffffff830aeaa5) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068efa,ffffffff8303af2d,83,ffffffff830ab548) 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,ffff800000e10800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806d103210,8020699f,ffff80002a49cf70,ffff80002a4b0298) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a4b0298,ffff80002a49d150,ffff80002a49d0a0) at sys_ioctl+0x678 syscall(ffff80002a49d150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd58f0689950, count: -10