bpf: Factor out check_load_mem() and check_store_reg()
Extract BPF_LDX and most non-ATOMIC BPF_STX instruction handling logic in do_check() into helper functions to be used later. While we are here, make that comment about "reserved fields" more specific. Suggested-by:Eduard Zingerman <eddyz87@gmail.com> Acked-by:
Eduard Zingerman <eddyz87@gmail.com> Signed-off-by:
Peilin Ye <yepeilin@google.com> Link: https://lore.kernel.org/r/8b39c94eac2bb7389ff12392ca666f939124ec4f.1740978603.git.yepeilin@google.com Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Loading
Please sign in to comment