summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2026-01-24 09:19:57 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-01-25 05:49:35 +0300
commitf1b56b3cbdb2d2a51d8ea91008eddf4d1d9f277b (patch)
tree278c3302c1a897f73434ebc772ef57d7ec1472e4 /include/linux/stackprotector.h
parent2d419c44658f75e7655794341a95c0687830f3df (diff)
downloadlinux-f1b56b3cbdb2d2a51d8ea91008eddf4d1d9f277b.tar.xz
bpf: use the least significant byte for the nr_args in trampoline
For now, ((u64 *)ctx)[-1] is used to store the nr_args in the trampoline. However, 1 byte is enough to store such information. Therefore, we use only the least significant byte of ((u64 *)ctx)[-1] to store the nr_args, and reserve the rest for other usages. Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn> Link: https://lore.kernel.org/r/20260124062008.8657-3-dongml2@chinatelecom.cn Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions