diff options
| author | Hengqi Chen <[email protected]> | 2025-10-02 14:39:52 +0000 |
|---|---|---|
| committer | Huacai Chen <[email protected]> | 2025-10-02 14:39:52 +0000 |
| commit | ea645cfd3d5f74a2bd40a60003f113b3c467975d (patch) | |
| tree | 808189c4c66143a67ab5f181830be7ed586464dd /net/unix/af_unix.c | |
| parent | LoongArch: BPF: Don't align trampoline size (diff) | |
| download | kernel-ea645cfd3d5f74a2bd40a60003f113b3c467975d.tar.gz kernel-ea645cfd3d5f74a2bd40a60003f113b3c467975d.zip | |
LoongArch: BPF: Make trampoline size stable
When attach fentry/fexit BPF programs, __arch_prepare_bpf_trampoline()
is called twice with different `struct bpf_tramp_image *im`:
bpf_trampoline_update()
-> arch_bpf_trampoline_size()
-> __arch_prepare_bpf_trampoline()
-> arch_prepare_bpf_trampoline()
-> __arch_prepare_bpf_trampoline()
Use move_imm() will emit unstable instruction sequences, so let's use
move_addr() instead to prevent subtle bugs.
(I observed this while debugging other issues with printk.)
Cc: [email protected]
Tested-by: Vincent Li <[email protected]>
Signed-off-by: Hengqi Chen <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
