bpf: starting_state parameter for __mark_chain_precision()
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 11 Jun 2025 20:08:29 +0000 (13:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 Jun 2025 23:52:42 +0000 (16:52 -0700)
commit9a2a0d79244d27fae6b5174e199b34fe17db0316
tree13d99db5ae6ad0db720707154663efb609bcfb77
parent13f843c0177eeb367ac63467c538046b90785583
bpf: starting_state parameter for __mark_chain_precision()

Allow `mark_chain_precision()` to run from an arbitrary starting state
by replacing direct references to `env->cur_state` with a parameter.

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