| /linux/kernel/bpf/ |
| H A D | fixups.c | 151 return env->subprog_info[subprog].stack_depth; in get_callee_stack_depth() 705 -(subprogs[0].stack_depth + 8)); in bpf_convert_ctx_accesses() 712 subprogs[0].stack_depth += 8; in bpf_convert_ctx_accesses() 714 -subprogs[0].stack_depth); in bpf_convert_ctx_accesses() 1125 func[i]->aux->stack_depth = env->subprog_info[i].stack_depth; in jit_subprogs() 1477 u16 stack_depth = subprogs[cur_subprog].stack_depth; in bpf_do_misc_fixups() local 1738 int stack_off_cnt = -stack_depth - 16; in bpf_do_misc_fixups() 1781 int stack_off = -stack_depth - 8; in bpf_do_misc_fixups() 1842 prog->aux->stack_depth = MAX_BPF_STACK; in bpf_do_misc_fixups() 2323 subprogs[cur_subprog].stack_depth += stack_depth_extra; in bpf_do_misc_fixups() [all …]
|
| H A D | core.c | 2399 int bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth) in bpf_patch_call_args() argument 2401 stack_depth = max_t(u32, stack_depth, 1); in bpf_patch_call_args() 2403 if (stack_depth > MAX_BPF_STACK) in bpf_patch_call_args() 2405 insn->off = (round_up(stack_depth, 32) / 32) - 1; in bpf_patch_call_args() 2535 u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1); in bpf_prog_select_interpreter() local 2536 u32 idx = (round_up(stack_depth, 32) / 32) - 1; in bpf_prog_select_interpreter()
|
| H A D | verifier.c | 1377 if (env->subprog_info[state->subprogno].stack_depth < size) in grow_stack_state() 1378 env->subprog_info[state->subprogno].stack_depth = size; in grow_stack_state() 5304 static int round_up_stack_depth(struct bpf_verifier_env *env, int stack_depth) in round_up_stack_depth() argument 5307 return round_up(stack_depth, 16); in round_up_stack_depth() 5312 return round_up(max_t(u32, stack_depth, 1), 32); in round_up_stack_depth() 5370 subprog_depth = round_up_stack_depth(env, subprog[idx].stack_depth); in check_max_stack_depth_subprog() 5492 depth -= round_up_stack_depth(env, subprog[idx].stack_depth); in check_max_stack_depth_subprog() 18904 env->prog->aux->stack_depth = env->subprog_info[0].stack_depth; in do_check_main() 18918 u32 depth = env->subprog_info[i].stack_depth; in print_verification_stats()
|
| /linux/lib/ |
| H A D | test_bpf.c | 84 int stack_depth; /* for eBPF only, since tests don't call verifier */ member 452 self->stack_depth = 40; in __bpf_fill_stxdw() 8159 .stack_depth = 8, 8179 .stack_depth = 8, 8196 .stack_depth = 0, 8212 .stack_depth = 0, 8228 .stack_depth = 0, 8248 .stack_depth = 8, 8268 .stack_depth = 8, 8285 .stack_depth = 0, [all …]
|
| /linux/drivers/firewire/ |
| H A D | core-topology.c | 107 int phy_id, stack_depth; in build_tree() local 114 stack_depth = 0; in build_tree() 168 if (child_port_count > stack_depth) { in build_tree() 236 stack_depth += 1 - child_port_count; in build_tree()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 506 static void emit_prologue(u8 **pprog, u8 *ip, u32 stack_depth, bool ebpf_from_cbpf, in emit_prologue() argument 552 if (stack_depth) in emit_prologue() 553 EMIT3_off32(0x48, 0x81, 0xEC, round_up(stack_depth, 8)); in emit_prologue() 728 u32 stack_depth, u8 *ip, in emit_bpf_tail_call_indirect() argument 731 int tcc_ptr_off = BPF_TAIL_CALL_CNT_PTR_STACK_OFF(stack_depth); in emit_bpf_tail_call_indirect() 793 if (stack_depth) in emit_bpf_tail_call_indirect() 795 round_up(stack_depth, 8)); in emit_bpf_tail_call_indirect() 817 bool *callee_regs_used, u32 stack_depth, in emit_bpf_tail_call_direct() argument 820 int tcc_ptr_off = BPF_TAIL_CALL_CNT_PTR_STACK_OFF(stack_depth); in emit_bpf_tail_call_direct() 860 if (stack_depth) in emit_bpf_tail_call_direct() [all …]
|
| /linux/include/linux/ |
| H A D | kcsan-checks.h | 138 int stack_depth; member
|
| H A D | bpf_verifier.h | 725 u16 stack_depth; /* max. stack depth used by this function */ member
|
| H A D | bpf.h | 1666 u32 stack_depth; member 2920 int bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth);
|
| /linux/kernel/kcsan/ |
| H A D | core.c | 437 reorder_access->stack_depth = get_kcsan_stack_depth(); in set_reorder_access() 1122 if (get_kcsan_stack_depth() <= reorder_access->stack_depth) { in __tsan_func_exit() 1133 reorder_access->stack_depth = INT_MIN; in __tsan_func_exit()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp.c | 205 priv_stack_alloc_size = round_up(fp->aux->stack_depth, 16) + in bpf_int_jit_compile() 243 cgctx.stack_size = round_up(fp->aux->stack_depth, 16); in bpf_int_jit_compile() 499 priv_stack_alloc_size = round_up(fp->aux->stack_depth, 16) + in bpf_jit_free()
|
| /linux/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | main.h | 484 u16 stack_depth; member
|
| /linux/fs/overlayfs/ |
| H A D | super.c | 412 struct ovl_fs *ofs, int *stack_depth) in ovl_lower_dir() argument 421 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir()
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 598 ctx->stack_size = round_up(prog->aux->stack_depth, 16); in build_prologue() 2038 priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 16) + in bpf_int_jit_compile() 3152 priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 16) + in bpf_jit_free()
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 587 locals = ALIGN(ctx->program->aux->stack_depth, MIPS_STACK_ALIGNMENT); in build_prologue()
|
| H A D | bpf_jit_comp32.c | 1418 locals = ALIGN(ctx->program->aux->stack_depth, MIPS_STACK_ALIGNMENT); in build_prologue()
|
| /linux/fs/xfs/scrub/ |
| H A D | trace.h | 1113 __field(int, stack_depth) 1120 __entry->stack_depth = si->stack_depth; 1128 __entry->stack_depth,
|
| /linux/arch/parisc/net/ |
| H A D | bpf_jit_comp64.c | 1113 bpf_stack_adjust = ctx->prog->aux->stack_depth; in bpf_jit_build_prologue()
|
| H A D | bpf_jit_comp32.c | 1483 bpf_stack_adjust = ctx->prog->aux->stack_depth; in bpf_jit_build_prologue()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 1309 round_up(ctx->prog->aux->stack_depth, STACK_ALIGN); in bpf_jit_build_prologue()
|
| H A D | bpf_jit_comp64.c | 1999 bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, STACK_ALIGN); in bpf_jit_build_prologue()
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 132 bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, 16); in build_prologue()
|
| /linux/net/core/ |
| H A D | filter.c | 844 if (new_prog && new_prog->aux->stack_depth < stack_off) in bpf_convert_filter() 845 new_prog->aux->stack_depth = stack_off; in bpf_convert_filter()
|