panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *344864 20843 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333bad3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a8d7,ffffffff833598b2,84,ffffffff833ce56b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001478800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014b4280,8020699f,ffff80002a808df0,ffff80003394b250) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003394b250,ffff80002a808fc0,ffff80002a808f10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a808fc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a808fc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb05416f5dd0, 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 132 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8333bad3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a8d7,ffffffff833598b2,84,ffffffff833ce56b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001478800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014b4280,8020699f,ffff80002a808df0,ffff80003394b250) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003394b250,ffff80002a808fc0,ffff80002a808f10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a808fc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a808fc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb05416f5dd0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a808b20 rbx 0x21 rdx 0 rcx 0 rax 0xffff80003394b250 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6a8afc6eadc323da r11 0xe2e7090d66d34916 r12 0 r13 0x6 r14 0 r15 0x1 rip 0xffffffff8185e295 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a808b10 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=344864 pid=20843 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f9a10,0xffff80003394a038 process=0xffff80003c9876e0 user=0xffff80002a804000, vmspace=0xfffffd806b9e2748 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87277 345690 73378 -1 2 0x10 syz-executor 87277 320725 73378 -1 3 0x4000090 fsleep syz-executor 12116 387629 36222 0 2 0 syz-executor 94133 434599 27133 0 2 0 syz-executor 94133 403613 27133 0 2 0x4000000 syz-executor 36390 136915 67718 0 2 0 syz-executor 36390 57532 67718 0 3 0x4000080 fsleep syz-executor 20631 386758 81890 0 2 0 syz-executor 20631 361454 81890 0 2 0x4000000 syz-executor 20631 304065 81890 0 2 0x4000000 syz-executor 20843 237761 8117 0 2 0 syz-executor 20843 107204 8117 0 3 0x4000080 ttyout syz-executor 20843 423290 8117 0 2 0x4000000 syz-executor *20843 344864 8117 0 7 0x4000000 syz-executor 40062 337338 0 0 3 0x14200 acct acct 63343 504549 0 0 3 0x14200 bored sosplice 73378 409061 76837 0 3 0x82 nanoslp syz-executor 7496 48205 76837 0 2 0xc82 syz-executor 8117 94197 76837 0 2 0xc82 syz-executor 36222 180110 76837 0 3 0x82 nanoslp syz-executor 81890 421429 76837 0 2 0xc82 syz-executor 27133 469914 76837 0 3 0x82 nanoslp syz-executor 16350 177105 76837 0 3 0x82 wait syz-executor 67718 78276 76837 0 2 0xc82 syz-executor 76837 468861 24586 0 3 0x82 kqread syz-executor 24586 174760 15961 0 3 0x10008a sigsusp ksh 15961 171434 21922 0 3 0x98 kqread sshd-session 21922 492228 44632 0 3 0x92 kqread sshd-session 84081 330939 1 0 3 0x100083 ttyopn getty 44632 148430 1 0 3 0x88 kqread sshd 87633 80085 32187 73 3 0x1100090 kqread syslogd 32187 18360 1 0 3 0x100082 sbwait syslogd 76012 489146 1 0 3 0x100080 kqread resolvd 87296 415568 0 0 3 0x14200 bored smr 35109 142809 0 0 2 0x14200 zerothread 83948 46323 0 0 3 0x14200 aiodoned aiodoned 54754 158053 0 0 3 0x14200 syncer update 3781 4551 0 0 3 0x14200 cleaner cleaner 95465 363876 0 0 3 0x14200 reaper reaper 25146 419797 0 0 3 0x14200 pgdaemon pagedaemon 37533 88399 0 0 3 0x14200 bored viomb 73650 72539 0 0 3 0x40014200 acpi0 acpi0 48812 258350 0 0 3 0x14200 bored softnet7 49630 468272 0 0 3 0x14200 bored softnet6 22746 390794 0 0 3 0x14200 bored softnet5 37525 465475 0 0 3 0x14200 bored softnet4 27720 216833 0 0 3 0x14200 bored softnet3 47670 126851 0 0 3 0x14200 bored softnet2 86378 489364 0 0 3 0x14200 bored softnet1 48064 499077 0 0 3 0x14200 bored softnet0 76297 150408 0 0 3 0x14200 bored systqmp 74067 155344 0 0 3 0x14200 bored systq 57867 110059 0 0 2 0x40014200 softclock 69198 167163 0 0 3 0x40014200 idle0 1 192383 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 10199 11058K 11236K 166960K 11761 0 pcb 19 14K 16K 166960K 134 0 rtable 159 7K 7K 166960K 353 0 pf 27 12K 16K 166960K 92 0 ifaddr 33 6K 8K 166960K 79 0 ifgroup 45 2K 2K 166960K 131 0 sysctl 4 1K 9K 166960K 18 0 counters 30 17K 18K 166960K 70 0 ioctlops 0 0K 4K 166960K 351 0 iov 0 0K 24K 166960K 36 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1396 88K 88K 166960K 1908 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 64 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 740 0 sigio 0 0K 0K 166960K 73 0 proc 54 43K 91K 166960K 530 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 70 0 in_multi 72 5K 7K 166960K 132 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 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 435 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 203 125K 159K 166960K 8382 0 UVM aobj 23 2K 2K 166960K 25 0 pinsyscall 33 66K 96K 166960K 1782 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 31 0 NDP 9 0K 2K 166960K 50 0 temp 76 8644K 8710K 166960K 19562 0 kqueue 7 12K 34K 166960K 161 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 79 0 78 1 0 1 1 0 8 0 rtentry 136 118 0 56 4 0 4 4 0 8 0 unpcb 144 574 0 563 4 0 4 4 0 8 3 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 294 0 285 7 6 1 7 0 8 0 arp 88 11 0 3 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 5 0 2 1 0 1 1 0 8 0 inpcb 328 858 0 845 15 5 10 10 0 8 8 ip6q 72 5 0 3 1 0 1 1 0 8 0 ip6af 40 11 0 8 1 0 1 1 0 8 0 nd6 104 23 0 11 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 25 0 25 2 1 1 1 0 8 1 pppxif 1384 7 0 7 2 1 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 4 0 1 1 0 1 1 0 8 0 pfosfpen 112 4 0 1 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1344 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 550 0 234 28 0 28 28 0 8 4 art_table 40 551 0 234 5 0 5 5 0 8 0 art_node 32 115 0 59 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 61 0 51 1 0 1 1 0 8 0 shmpl 112 22 0 2 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2788 0 1299 95 0 95 95 0 8 0 ffsino 256 2788 0 1299 95 0 95 95 0 8 0 nchpl 144 3832 0 2151 63 0 63 63 0 8 0 rtmask 32 4 0 4 1 0 1 1 0 8 1 uvmvnodes 80 3182 0 0 65 0 65 65 0 8 0 vnodes 216 3182 0 0 177 0 177 177 0 8 0 namei 1024 12925 0 12924 3 1 2 2 0 8 1 kstatmem 264 66 0 48 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 15051 0 15051 15 7 8 8 1 8 8 plimitpl 152 126 0 110 1 0 1 1 0 8 0 sigapl 424 1029 0 980 7 1 6 7 0 8 0 knotepl 120 30564 0 30533 30 20 10 17 0 8 8 kqueuepl 184 452 0 445 4 0 4 4 0 8 3 pipepl 304 151 0 123 3 0 3 3 0 8 0 fdescpl 448 1006 0 979 5 1 4 5 0 8 0 filepl 120 6497 0 6287 21 6 15 15 0 8 7 lockfpl 104 448 0 445 2 1 1 2 0 8 0 lockfspl 48 123 0 121 1 0 1 1 0 8 0 sessionpl 144 23 0 16 1 0 1 1 0 8 0 pgrppl 48 40 0 25 1 0 1 1 0 8 0 ucredpl 104 984 0 975 1 0 1 1 0 8 0 zombiepl 144 1408 0 1406 1 0 1 1 0 8 0 processpl 1168 1029 0 980 5 1 4 5 0 8 0 procpl 664 2165 0 2108 7 0 7 7 0 8 1 sosppl 168 4 0 4 1 0 1 1 0 8 1 sockpl 552 1534 0 1509 15 5 10 10 0 8 7 mcl64k 65536 176 0 175 2 1 1 1 0 8 0 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3295 0 3244 16 8 8 15 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1152 0 1149 3 1 2 2 0 8 1 mtagpl 96 12 0 10 1 0 1 1 0 8 0 mbufpl 256 11209 0 11046 20 0 20 20 0 8 4 bufpl 280 6868 0 640 446 0 446 446 0 8 0 anonpl 24 170531 0 167767 60 11 49 49 0 187 20 amapchunkpl 152 27747 0 27289 34 3 31 31 0 158 12 amappl16 200 3028 0 3001 19 8 11 14 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 109 0 102 1 0 1 1 0 8 0 amappl13 176 1 0 1 1 1 0 1 0 8 0 amappl12 168 1623 0 1596 3 1 2 3 0 8 0 amappl11 160 47 0 43 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 22 0 21 1 0 1 1 0 8 0 amappl7 128 101 0 94 1 0 1 1 0 8 0 amappl6 120 178 0 174 1 0 1 1 0 8 0 amappl5 112 113 0 110 1 0 1 1 0 8 0 amappl4 104 270 0 256 1 0 1 1 0 8 0 amappl3 96 5397 0 5298 4 0 4 4 0 8 0 amappl2 88 624 0 584 2 0 2 2 0 8 0 amappl1 80 10554 0 10097 15 2 13 14 0 8 1 amappl 88 7632 0 7475 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 255 0 255 2 1 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 24 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1006 0 979 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1006 0 979 1 0 1 1 0 8 0 vmmpekpl 168 9472 0 9445 2 0 2 2 0 8 0 vmmpepl 168 68152 0 66553 92 1 91 91 0 357 17 vmsppl 368 1005 0 979 4 1 3 4 0 8 0 rwobjpl 40 23065 0 19165 41 0 41 41 0 8 0 pdppl 4096 2018 0 1958 106 46 60 82 0 8 0 pvpl 32 444114 0 436522 129 19 110 110 0 265 34 pmappl 216 1005 0 979 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 400 0 70 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:438 panic(ffffffff8333bad3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a8d7,ffffffff833598b2,84,ffffffff833ce56b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001478800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014b4280,8020699f,ffff80002a808df0,ffff80003394b250) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003394b250,ffff80002a808fc0,ffff80002a808f10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a808fc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a808fc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb05416f5dd0, 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(ffffffff8333bad3) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff8337a8d7,ffffffff833598b2,84,ffffffff833ce56b) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(21,21) at rtmap_grow+0x1f2 rtable_add(20) at rtable_add+0x289 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(20) at rtable_add+0x289 sys/net/rtable.c:223 if_createrdomain(20,ffff800001478800) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014b4280,8020699f,ffff80002a808df0,ffff80003394b250) at ifioctl+0x1c06 sys/net/if.c:2301 sys_ioctl(ffff80003394b250,ffff80002a808fc0,ffff80002a808f10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a808fc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a808fc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb05416f5dd0, count: -10