Commit fce7bd8
bpf/verifier: Handle BPF_LOAD_ACQ instructions in insn_def_regno()
In preparation for supporting BPF load-acquire and store-release
instructions for architectures where bpf_jit_needs_zext() returns true
(e.g. riscv64), make insn_def_regno() handle load-acquires properly.
Acked-by: Björn Töpel <bjorn@kernel.org>
Tested-by: Björn Töpel <bjorn@rivosinc.com> # QEMU/RVA23
Signed-off-by: Peilin Ye <yepeilin@google.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/09cb2aec979aaed9d16db41f0f5b364de39377c0.1746588351.git.yepeilin@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent b69d441 commit fce7bd8
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3649 | 3649 | | |
3650 | 3650 | | |
3651 | 3651 | | |
3652 | | - | |
3653 | | - | |
3654 | | - | |
| 3652 | + | |
| 3653 | + | |
3655 | 3654 | | |
3656 | 3655 | | |
3657 | | - | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
3658 | 3659 | | |
3659 | | - | |
3660 | | - | |
3661 | 3660 | | |
| 3661 | + | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | 3664 | | |
| |||
0 commit comments