mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
bpf: preserve sleepable bit in subprog info
Copy over main program's sleepable bit into subprog's info. This might be important for, e.g., freplace cases. Suggested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Stanislav Fomichev <sdf@google.com> Message-ID: <20240314000127.3881569-1-andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
6cda7e1739
commit
4d8926a040
|
|
@ -19158,6 +19158,7 @@ static int jit_subprogs(struct bpf_verifier_env *env)
|
|||
if (bpf_prog_calc_tag(func[i]))
|
||||
goto out_free;
|
||||
func[i]->is_func = 1;
|
||||
func[i]->sleepable = prog->sleepable;
|
||||
func[i]->aux->func_idx = i;
|
||||
/* Below members will be freed only at prog->aux */
|
||||
func[i]->aux->btf = prog->aux->btf;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user