]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Reduce stack consumption in check_stack_write_fixed_off
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 13 Jun 2024 11:53:09 +0000 (13:53 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Jun 2024 18:16:01 +0000 (11:16 -0700)
commite73cd1cfc2177654e562b04f514be5f0f0b96da2
tree80e9183bca908b2452d45c87141e7b13c33502af
parent92424801261d1564a0bb759da3cf3ccd69fdf5a2
bpf: Reduce stack consumption in check_stack_write_fixed_off

The fake_reg moved into env->fake_reg given it consumes a lot of stack
space (120 bytes). Migrate the fake_reg in check_stack_write_fixed_off()
as well now that we have it.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20240613115310.25383-2-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c