diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2025-03-05 00:54:36 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-15 11:48:30 -0700 |
| commit | 871ef8d50e7c92b93ebd5d8ff11dc6dfb2fdce1d (patch) | |
| tree | b0ccb72244f73a44bb890054febaec7754a3ab0a /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | Merge branch 'bpf-simple-dfa-based-live-registers-analysis' (diff) | |
| download | linux-871ef8d50e7c92b93ebd5d8ff11dc6dfb2fdce1d.tar.gz linux-871ef8d50e7c92b93ebd5d8ff11dc6dfb2fdce1d.zip | |
bpf: correct use/def for may_goto instruction
may_goto instruction does not use any registers,
but in compute_insn_live_regs() it was treated as a regular
conditional jump of kind BPF_K with r0 as source register.
Thus unnecessarily marking r0 as used.
Fixes: 14c8552db644 ("bpf: simple DFA-based live registers analysis")
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250305085436.2731464-1-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
