summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorYonghong Song <yonghong.song@linux.dev>2026-05-13 07:50:54 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-05-13 19:27:31 +0300
commit848d624acf668ae0d71b128f163d1d18d2ac6b90 (patch)
tree2623fc2b5deedf9be75b449e219bc592b0a1683f /include/linux/stackprotector.h
parentdc8f1cf6787c4bb1d8cabfac1e44d2d0ab435caa (diff)
downloadlinux-848d624acf668ae0d71b128f163d1d18d2ac6b90.tar.xz
bpf: Prepare architecture JIT support for stack arguments
Add bpf_jit_supports_stack_args() as a weak function defaulting to false. Architectures that implement JIT support for stack arguments override it to return true. Reject BPF functions with more than 5 parameters at verification time if the architecture does not support stack arguments. Acked-by: Puranjay Mohan <puranjay@kernel.org> Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260513045054.2390945-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions