summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorYonghong Song <yonghong.song@linux.dev>2023-07-27 18:12:07 -0700
committerAlexei Starovoitov <ast@kernel.org>2023-07-27 18:52:33 -0700
commit1f1e864b65554e33fe74e3377e58b12f4302f2eb (patch)
tree9effb1a9e6dfd2f9bd97b90965f50d984612f7f5 /arch/x86
parent8100928c881482a73ed8bd499d602bab0fe55608 (diff)
downloadlinux-stable-1f1e864b65554e33fe74e3377e58b12f4302f2eb.tar.gz
linux-stable-1f1e864b65554e33fe74e3377e58b12f4302f2eb.tar.bz2
linux-stable-1f1e864b65554e33fe74e3377e58b12f4302f2eb.zip
bpf: Handle sign-extenstin ctx member accesses
Currently, if user accesses a ctx member with signed types, the compiler will generate an unsigned load followed by necessary left and right shifts. With the introduction of sign-extension load, compiler may just emit a ldsx insn instead. Let us do a final movsx sign extension to the final unsigned ctx load result to satisfy original sign extension requirement. Acked-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20230728011207.3712528-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions