diff options
| author | Hengqi Chen <hengqi.chen@gmail.com> | 2025-12-31 15:19:20 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-12-31 15:19:20 +0800 |
| commit | 3f5a238f24d7b75f9efe324d3539ad388f58536e (patch) | |
| tree | 892e795da4648c55fc96f095f48cde124ddc21b1 /include/linux | |
| parent | 45cb47c628dfbd1994c619f3eac271a780602826 (diff) | |
LoongArch: BPF: Sign extend kfunc call arguments
The kfunc calls are native calls so they should follow LoongArch calling
conventions. Sign extend its arguments properly to avoid kernel panic.
This is done by adding a new emit_abi_ext() helper. The emit_abi_ext()
helper performs extension in place meaning a value already store in the
target register (Note: this is different from the existing sign_extend()
helper and thus we can't reuse it).
Cc: stable@vger.kernel.org
Fixes: 5dc615520c4d ("LoongArch: Add BPF JIT support")
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
