Home
last modified time | relevance | path

Searched hist:dc7d7447b56bcc9cf79a9c22e4edad200a298e4c (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm64/net/
H A Dbpf_jit_comp.cdiff dc7d7447b56bcc9cf79a9c22e4edad200a298e4c Tue Apr 16 08:42:07 CEST 2024 Xu Kuohai <xukuohai@huawei.com> bpf, arm64: Fix incorrect runtime stats

When __bpf_prog_enter() returns zero, the arm64 register x20 that stores
prog start time is not assigned to zero, causing incorrect runtime stats.

To fix it, assign the return value of bpf_prog_enter() to x20 register
immediately upon its return.

Fixes: efc9909fdce0 ("bpf, arm64: Add bpf trampoline for arm64")
Reported-by: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Ivan Babrou <ivan@cloudflare.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240416064208.2919073-2-xukuohai@huaweicloud.com