]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf, x86: Simplify the parsing logic of structure parameters
authorPu Lehui <pulehui@huawei.com>
Thu, 5 Jan 2023 03:50:26 +0000 (11:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:27 +0000 (17:10 +0100)
commit4ee461c5dc99471fec206e9749b16c0bbb3dac8b
treeeeeb4cf41fb29d172cedd05564c7e68173795de8
parent605c8d8f9966fcd2f0b858fabebe416fc83f2209
bpf, x86: Simplify the parsing logic of structure parameters

[ Upstream commit 7f7880495770329d095d402c2865bfa7089192f8 ]

Extra_nregs of structure parameters and nr_args can be
added directly at the beginning, and using a flip flag
to identifiy structure parameters. Meantime, renaming
some variables to make them more sense.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230105035026.3091988-1-pulehui@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Stable-dep-of: 2b5dcb31a19a ("bpf, x64: Fix tailcall infinite loop")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/net/bpf_jit_comp.c