diff options
| author | Xu Kuohai <[email protected]> | 2024-04-16 06:42:08 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-04-16 15:19:41 +0000 |
| commit | 10541b374aa05c8118cc6a529a615882e53f261b (patch) | |
| tree | 59373141f5538e6004c743c0a6c0493ce6b7ca79 /net/unix/af_unix.c | |
| parent | bpf, arm64: Fix incorrect runtime stats (diff) | |
| download | kernel-10541b374aa05c8118cc6a529a615882e53f261b.tar.gz kernel-10541b374aa05c8118cc6a529a615882e53f261b.zip | |
riscv, bpf: Fix incorrect runtime stats
When __bpf_prog_enter() returns zero, the s1 register is not set to zero,
resulting in incorrect runtime stats. Fix it by setting s1 immediately upon
the return of __bpf_prog_enter().
Fixes: 49b5e77ae3e2 ("riscv, bpf: Add bpf trampoline support for RV64")
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Pu Lehui <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
