panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *508654 68638 0 0 0x4000000 0 syz-executor 287408 611 0 0x2 0x1 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833b1026) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833f1272,ffffffff833eac4e,84,ffffffff83446278) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff800001599000) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015cf4f8,8020699f,ffff80003c41fd60,ffff80003c44ed20) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff80003c44ed20,ffff80003c41ff40,ffff80003c41fe90) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c41ff40) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41ff40) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x81437efa1b0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833b1026) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833f1272,ffffffff833eac4e,84,ffffffff83446278) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff800001599000) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015cf4f8,8020699f,ffff80003c41fd60,ffff80003c44ed20) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff80003c44ed20,ffff80003c41ff40,ffff80003c41fe90) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c41ff40) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41ff40) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x81437efa1b0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c41fa70 rbx 0xffffffff8384ae07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff80003c44ed20 rax 0xffffffff83849ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x187909cde96be3be r11 0xc991db8ecd041e5a r12 0xffffffff8384ac08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff82d27e25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c41fa60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=508654 pid=68638 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=0xffff80003c44f250,0xffffffff83a13e30 process=0xffff80003c410020 user=0xffff80003c41a000, vmspace=0xfffffd800f7d75d8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 68638 174764 20810 0 2 0 syz-executor 68638 415497 20810 0 2 0x4000000 syz-executor *68638 508654 20810 0 7 0x4000000 syz-executor 37615 120169 59370 0 2 0 syz-executor 37615 120271 59370 0 3 0x4000080 fsleep syz-executor 43151 459697 611 0 3 0x80 nanoslp syz-executor 43151 454573 611 0 3 0x4000000 smrbar syz-executor 48222 211143 16511 0 2 0 syz-executor 48222 129315 16511 0 3 0x4000080 kqsel syz-executor 48222 244708 16511 0 3 0x4000080 kqread syz-executor 60531 90500 82442 0 3 0x80 nanoslp syz-executor 60531 145644 82442 0 3 0x4000080 netcon syz-executor 60531 409178 82442 0 3 0x4000080 fsleep syz-executor 64869 273402 50062 0 3 0x3000 suspend syz-executor 64869 33423 50062 0 2 0x4081000 syz-executor 44723 63864 0 0 3 0x14200 acct acct 11829 24320 68805 0 3 0x3000 suspend syz-executor 11829 170958 68805 0 2 0x4081000 syz-executor 93352 476067 76242 0 3 0x3000 suspend syz-executor 93352 44626 76242 0 2 0x4081000 syz-executor 93352 257590 76242 0 3 0x4081000 inode syz-executor 93352 230081 76242 0 3 0x4081000 fltagain2 syz-executor 5486 117892 1 0 3 0x100083 ttyin getty 611 287408 85961 0 7 0x3 syz-executor 59370 450731 85961 0 2 0x3 syz-executor 82442 38952 85961 0 2 0xc82 syz-executor 68805 286106 85961 0 2 0xc82 syz-executor 76242 124396 85961 0 2 0xc82 syz-executor 16511 31456 85961 0 2 0x2 syz-executor 20810 314720 85961 0 2 0xc82 syz-executor 50062 455600 85961 0 2 0xc82 syz-executor 85961 271034 35419 0 3 0x82 kqread syz-executor 35419 465340 29502 0 3 0x10008a sigsusp ksh 29502 130067 60848 0 3 0x98 kqread sshd-session 60848 418890 8790 0 3 0x92 kqread sshd-session 8790 131943 1 0 3 0x88 kqread sshd 9325 204714 27935 74 3 0x1100092 bpf pflogd 27935 462612 1 0 3 0x80 sbwait pflogd 11686 134921 98366 73 3 0x1100090 kqread syslogd 98366 81354 1 0 3 0x100082 sbwait syslogd 61716 385497 1 0 3 0x100080 kqread resolvd 47104 165492 38149 77 3 0x100092 kqread dhcpleased 62790 398603 38149 77 3 0x100092 kqread dhcpleased 38149 104765 1 0 3 0x80 kqread dhcpleased 76940 336983 0 0 2 0x40014200 smr 7889 155549 0 0 3 0x14200 pgzero zerothread 96666 45522 0 0 3 0x14200 aiodoned aiodoned 45957 197698 0 0 3 0x14200 syncer update 92874 278331 0 0 3 0x14200 cleaner cleaner 39423 127586 0 0 3 0x14200 reaper reaper 84637 76604 0 0 3 0x14200 pgdaemon pagedaemon 5581 404667 0 0 3 0x14200 bored viomb 8931 271934 0 0 3 0x40014200 acpi0 acpi0 47156 465651 0 0 3 0x40014200 idle1 74315 140830 0 0 3 0x14200 bored softnet1 5376 293712 0 0 3 0x14200 bored softnet0 36431 440439 0 0 3 0x14200 bored systqmp 15374 445128 0 0 3 0x14200 bored systq 83695 104809 0 0 3 0x14200 tmoslp softclockmp 51634 225478 0 0 3 0x40014200 tmoslp softclock 18219 157267 0 0 3 0x40014200 idle0 1 504509 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 68638 (syz-executor) thread 0xffff80003c44ed20 (508654) Process 64869 (syz-executor) thread 0xffff8000ffff2018 (33423) Process 11829 (syz-executor) thread 0xffff80003c44fa18 (170958) Process 93352 (syz-executor) thread 0xffff8000fffea7e8 (44626) Process 93352 (syz-executor) thread 0xffff8000fffea020 (257590) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11085 12314K 13530K 166960K 13229 0 pcb 19 13K 13K 166960K 90 0 rtable 224 8K 8K 166960K 404 0 pf 38 18K 18K 166960K 78 0 ifaddr 45 7K 8K 166960K 67 0 ifgroup 59 2K 2K 166960K 99 0 sysctl 3 1K 9K 166960K 10 0 counters 74 37K 37K 166960K 110 0 ioctlops 0 0K 4K 166960K 1534 0 iov 0 0K 16K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1403 88K 88K 166960K 1864 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 17 136K 136K 166960K 26 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 106K 166960K 625 0 sigio 0 0K 0K 166960K 14 0 proc 72 115K 196K 166960K 593 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 69 0 in_multi 100 7K 7K 166960K 133 0 ether_multi 1 0K 0K 166960K 7 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 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 429 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 270 164K 168K 166960K 7803 0 UVM aobj 10 2K 2K 166960K 11 0 pinsyscall 43 86K 106K 166960K 1746 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 42 0 NDP 14 0K 1K 166960K 43 0 temp 64 8675K 8927K 166960K 26673 0 kqueue 15 24K 28K 166960K 104 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 60 0 56 1 0 1 1 0 8 0 rtentry 176 119 0 23 5 0 5 5 0 8 0 unpcb 144 420 0 399 3 1 2 2 0 8 1 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpcb 736 117 0 109 1 0 1 1 0 8 0 arp 136 18 0 2 1 0 1 1 0 8 0 inpcb 328 647 0 631 13 9 4 7 0 8 2 nd6 152 25 0 2 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 14 0 12 3 2 1 1 0 8 0 pppxif 1504 2 0 2 1 0 1 1 0 8 1 pffrag 232 7 0 1 1 0 1 1 0 482 0 pffrnode 88 7 0 1 1 0 1 1 0 8 0 pffrent 40 9 0 3 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 54 0 15 1 0 1 1 0 8 0 pfstkey 128 54 0 15 2 0 2 2 0 8 0 pfstate 448 54 0 15 6 0 6 6 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 516 0 66 30 1 29 29 0 8 0 art_table 40 518 0 66 5 0 5 5 0 8 0 art_node 32 119 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 3 1 0 1 1 0 8 0 semapl 112 20 0 5 1 0 1 1 0 8 0 shmpl 112 8 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2495 0 982 96 0 96 96 0 8 0 ffsino 296 2495 0 982 117 0 117 117 0 8 0 nchpl 144 3391 0 1682 64 0 64 64 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 vnodes 216 2868 0 0 160 0 160 160 0 8 0 namei 1024 11553 0 11552 3 1 2 2 0 8 1 percpumem 16 70 0 18 1 0 1 1 0 8 0 kstatmem 264 56 0 26 4 1 3 3 0 8 0 scsiplug 72 6 0 6 1 0 1 1 0 8 1 scxspl 216 21014 0 21014 10 9 1 8 1 8 1 plimitpl 152 225 0 204 1 0 1 1 0 8 0 sigapl 424 937 0 888 7 1 6 7 0 8 0 knotepl 120 556 0 0 17 0 17 17 0 8 0 kqueuepl 224 244 0 229 6 1 5 5 0 8 4 pipepl 344 145 0 117 3 0 3 3 0 8 0 fdescpl 528 911 0 879 3 0 3 3 0 8 0 filepl 160 5135 0 4894 18 4 14 15 0 8 2 lockfpl 104 342 0 340 1 0 1 1 0 8 0 lockfspl 48 103 0 101 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 37 0 19 1 0 1 1 0 8 0 ucredpl 104 723 0 710 1 0 1 1 0 8 0 zombiepl 144 1194 0 1191 1 0 1 1 0 8 0 processpl 1232 937 0 888 5 0 5 5 0 8 0 procpl 664 1850 0 1788 6 0 6 6 0 8 0 sosppl 176 5 0 4 2 1 1 1 0 8 0 sockpl 752 1139 0 1097 16 9 7 11 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 117 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 34 0 0 5 0 5 5 0 8 0 mtagpl 96 18 0 0 1 0 1 1 0 8 0 mbufpl 256 1211 0 0 76 0 76 76 0 8 0 bufpl 280 10001 0 3864 439 0 439 439 0 8 0 anonpl 32 11290 0 0 92 0 92 92 0 246 1 amapchunkpl 152 24638 0 23942 33 4 29 29 0 158 0 amappl16 200 4116 0 3742 26 6 20 21 0 8 0 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 9 0 9 1 1 0 1 0 8 0 amappl13 176 442 0 441 1 0 1 1 0 8 0 amappl12 168 1268 0 1225 3 0 3 3 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 55 0 40 1 0 1 1 0 8 0 amappl9 144 253 0 253 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 85 0 84 1 0 1 1 0 8 0 amappl6 120 292 0 278 1 0 1 1 0 8 0 amappl5 112 75 0 64 1 0 1 1 0 8 0 amappl4 104 410 0 380 1 0 1 1 0 8 0 amappl3 96 4714 0 4592 5 1 4 4 0 8 0 amappl2 88 528 0 467 2 0 2 2 0 8 0 amappl1 80 11127 0 10530 15 2 13 15 0 8 0 amappl 88 6981 0 6789 5 0 5 5 0 92 0 uvmvnodes 80 119 0 0 3 0 3 3 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 7 0 7 2 2 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 10 0 1 1 0 1 1 0 8 0 uaddrrnd 24 911 0 879 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 911 0 879 1 0 1 1 0 8 0 vmmpekpl 168 8994 0 8959 2 0 2 2 0 8 0 vmmpepl 168 65371 0 63019 106 3 103 103 0 357 0 vmsppl 488 910 0 879 5 1 4 5 0 8 0 rwobjpl 80 20961 0 19531 32 2 30 30 0 8 0 pdppl 4096 1829 0 1758 101 30 71 85 0 8 0 pvpl 32 21179 0 0 171 0 171 171 0 265 0 pmappl 256 910 0 879 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 349 0 37 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833b1026) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833f1272,ffffffff833eac4e,84,ffffffff83446278) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(c,21) at rtmap_grow+0x24f rtable_add(b) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(b) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(b,ffff800001599000) at if_createrdomain+0x40 sys/net/if.c:2045 ifioctl(ffff8000015cf4f8,8020699f,ffff80003c41fd60,ffff80003c44ed20) at ifioctl+0x1c52 sys/net/if.c:2394 sys_ioctl(ffff80003c44ed20,ffff80003c41ff40,ffff80003c41fe90) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c41ff40) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41ff40) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x81437efa1b0, count: -10 ddb{0}> machine ddbcpu 1