Commit e00931c
bpf: Enable private stack for eligible subprogs
If private stack is used by any subprog, set that subprog
prog->aux->jits_use_priv_stack to be true so later jit can allocate
private stack for that subprog properly.
Also set env->prog->aux->jits_use_priv_stack to be true if
any subprog uses private stack. This is a use case for a
single main prog (no subprogs) to use private stack, and
also a use case for later struct-ops progs where
env->prog->aux->jits_use_priv_stack will enable recursion
check if any subprog uses private stack.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20241112163912.2224007-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent a76ab57 commit e00931c
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
| 1526 | + | |
1526 | 1527 | | |
1527 | 1528 | | |
1528 | 1529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6334 | 6334 | | |
6335 | 6335 | | |
6336 | 6336 | | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
| 6344 | + | |
6337 | 6345 | | |
6338 | 6346 | | |
6339 | 6347 | | |
| |||
20274 | 20282 | | |
20275 | 20283 | | |
20276 | 20284 | | |
| 20285 | + | |
| 20286 | + | |
| 20287 | + | |
20277 | 20288 | | |
20278 | 20289 | | |
20279 | 20290 | | |
| |||
0 commit comments