The Maximum Stack Size

combined stack size of 2 calls is 544. Too large
processed 192213 insns (limit 1000000) max_states_per_insn 31 total_states 12609 peak_states 1056 mark_read 41
Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.

Measuring the Stack Size

From the Verifier Logs

From Your Object Files

Spilling of unamed values, such as intermediate values of an expression does not appear in this output

Workarounds

Reduce the Scope of Variables

Use Tail Calls

Move Large Variables to Array Maps