* [PATCH bpf-next] bpf: preserve sleepable bit in subprog info
@ 2024-03-14 0:01 Andrii Nakryiko
2024-03-14 19:49 ` Stanislav Fomichev
2024-03-15 2:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2024-03-14 0:01 UTC (permalink / raw)
To: bpf, ast, daniel, martin.lau; +Cc: andrii, kernel-team
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>
---
kernel/bpf/verifier.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 63749ad5ac6b..7b208e5d38f6 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -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;
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] bpf: preserve sleepable bit in subprog info
2024-03-14 0:01 [PATCH bpf-next] bpf: preserve sleepable bit in subprog info Andrii Nakryiko
@ 2024-03-14 19:49 ` Stanislav Fomichev
2024-03-15 2:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Stanislav Fomichev @ 2024-03-14 19:49 UTC (permalink / raw)
To: Andrii Nakryiko; +Cc: bpf, ast, daniel, martin.lau, kernel-team
On 03/13, Andrii Nakryiko wrote:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] bpf: preserve sleepable bit in subprog info
2024-03-14 0:01 [PATCH bpf-next] bpf: preserve sleepable bit in subprog info Andrii Nakryiko
2024-03-14 19:49 ` Stanislav Fomichev
@ 2024-03-15 2:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-15 2:30 UTC (permalink / raw)
To: Andrii Nakryiko; +Cc: bpf, ast, daniel, martin.lau, kernel-team
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Wed, 13 Mar 2024 17:01:27 -0700 you wrote:
> 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>
> ---
> kernel/bpf/verifier.c | 1 +
> 1 file changed, 1 insertion(+)
Here is the summary with links:
- [bpf-next] bpf: preserve sleepable bit in subprog info
https://git.kernel.org/bpf/bpf-next/c/4d8926a0407c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-15 2:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 0:01 [PATCH bpf-next] bpf: preserve sleepable bit in subprog info Andrii Nakryiko
2024-03-14 19:49 ` Stanislav Fomichev
2024-03-15 2:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox