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: Menglong Dong <imagedong@tencent.com> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20230713040738.1789742-2-imagedong@tencent.com Signed-off-by: Alexei Starovoitov <ast@kernel.org> Stable-dep-of: 2b5dcb31 ("bpf, x64: Fix tailcall infinite loop") Signed-off-by: Sasha Levin <sashal@kernel.org>
Please register or sign in to comment