Files
twx-linux/kernel
Lorenz Bauer a4fe956b03 bpf: verifier: Allocate idmap scratch in verifier env
commit c9e73e3d2b upstream.

func_states_equal makes a very short lived allocation for idmap,
probably because it's too large to fit on the stack. However the
function is called quite often, leading to a lot of alloc / free
churn. Replace the temporary allocation with dedicated scratch
space in struct bpf_verifier_env.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/bpf/20210429134656.122225-4-lmb@cloudflare.com
[OP: adjusted context for 4.19]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 11:47:59 +02:00
..
2020-09-17 13:45:31 +02:00
…
…
…
…
…
…
2021-07-20 16:16:04 +02:00
…
…
…
…
…
…
…
…
…
…
2021-02-10 09:21:06 +01:00
2020-03-25 08:06:13 +01:00
…
…
…
…
…
…
…
2021-02-07 14:48:38 +01:00
…
…
…
…
…
…
…
…
…
…