]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: move REG_LIVE_DONE check to clean_live_states()
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 11 Jun 2025 20:08:32 +0000 (13:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 Jun 2025 23:52:43 +0000 (16:52 -0700)
commitb5c677d8d9e58b9f6c6478ba0850580883588d3c
treedc00e41a259e83b14dcfae3b56823384496c70ab
parentdfb2d4c64b82ac1e7a03e0b28b4326458705d26f
bpf: move REG_LIVE_DONE check to clean_live_states()

The next patch would add some relatively heavy-weight operation to
clean_live_states(), this operation can be skipped if REG_LIVE_DONE
is set. Move the check from clean_verifier_state() to
clean_verifier_state() as a small refactoring commit.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250611200836.4135542-7-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c