bpf: Add some comments to stack representation
authorAndrei Matei <andreimatei1@gmail.com>
Fri, 8 Dec 2023 03:25:17 +0000 (22:25 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Dec 2023 22:19:00 +0000 (14:19 -0800)
commit92e1567ee3e3f6f160e320890ac77eec50bf8e7d
tree69bda1ccd633fd5d04916f39eea25e8004fe9cf7
parent8b7b0e5fe47de90ba6c350f9abece589fb637f79
bpf: Add some comments to stack representation

Add comments to the datastructure tracking the stack state, as the
mapping between each stack slot and where its state is stored is not
entirely obvious.

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-2-andreimatei1@gmail.com
include/linux/bpf_verifier.h