bpf: Minor cleanup around stack bounds
authorAndrei Matei <andreimatei1@gmail.com>
Fri, 8 Dec 2023 03:25:19 +0000 (22:25 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Dec 2023 22:19:00 +0000 (14:19 -0800)
commit2929bfac006d8f8e22b307d04e0d71bcb84db698
treefc1c424f93e93746a902718f4a0284e6fd002822
parent6b4a64bafd107e521c01eec3453ce94a3fb38529
bpf: Minor cleanup around stack bounds

Push the rounding up of stack offsets into the function responsible for
growing the stack, rather than relying on all the callers to do it.
Uncertainty about whether the callers did it or not tripped up people in
a previous review.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20231208032519.260451-4-andreimatei1@gmail.com
kernel/bpf/verifier.c