]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Refactor mark_{dynptr,iter}_read
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 4 Dec 2024 03:03:56 +0000 (19:03 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 4 Dec 2024 16:38:29 +0000 (08:38 -0800)
commitb79f5f54e1dcc4880ae8947aeb8734d93ff7b9a3
treea1bf7eae9ea1d5be3ae9f80ca0f006aa2edf3cac
parent769b0f1c821455ab29baf42491e1ea1d726451fa
bpf: Refactor mark_{dynptr,iter}_read

There is possibility of sharing code between mark_dynptr_read and
mark_iter_read for updating liveness information of their stack slots.
Consolidate common logic into mark_stack_slot_obj_read function in
preparation for the next patch which needs the same logic for its own
stack slots.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241204030400.208005-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c