]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Comment on check_mem_size_reg
authorAndrei Matei <andreimatei1@gmail.com>
Sun, 10 Dec 2023 22:51:50 +0000 (17:51 -0500)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 12 Dec 2023 23:35:32 +0000 (15:35 -0800)
commit745e0311306507ddbe1727ac798c8f956812b810
treeb21a12da3e98d9621086ab49e6d4b2c2e103db58
parent56c26d5ad86dfe48a76855a91b523ab4f372c003
bpf: Comment on check_mem_size_reg

This patch adds a comment to check_mem_size_reg -- a function whose
meaning is not very transparent. The function implicitly deals with two
registers connected by convention, which is not obvious.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231210225149.67639-1-andreimatei1@gmail.com
kernel/bpf/verifier.c