Skip to content
Commit 89b51e70 authored by Menglong Dong's avatar Menglong Dong Committed by Greg Kroah-Hartman
Browse files

bpf, x86: save/restore regs with BPF_DW size

[ Upstream commit 02a6dfa8

 ]

As we already reserve 8 byte in the stack for each reg, it is ok to
store/restore the regs in BPF_DW size. This will make the code in
save_regs()/restore_regs() simpler.

Signed-off-by: default avatarMenglong Dong <imagedong@tencent.com>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230713040738.1789742-2-imagedong@tencent.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Stable-dep-of: 2b5dcb31

 ("bpf, x64: Fix tailcall infinite loop")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4ee461c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment