Hello:
This patch was applied to bpf/bpf.git (refs/heads/master):
On Wed, 5 May 2021 15:25:29 +0200 you wrote:
We can't currently allow to attach functions with variable arguments.
The problem is that we should save all the registers for arguments,
which is probably doable, but if caller uses more than 6 arguments,
we need stack data, which will be wrong, because of the extra stack
frame we do in bpf trampoline, so we could crash.
Also currently there's malformed trampoline code generated for such
functions at the moment as described in:
https://lore.kernel.org/bpf/20210429212834.82621-1-jolsa@kernel.org/ (local)
[...]
Here is the summary with links:
- bpf: Forbid trampoline attach for functions with variable arguments
https://git.kernel.org/bpf/bpf/c/0a1a616720d9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html