bpf: extract __check_reg_arg() utility function
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 21 Nov 2023 02:06:54 +0000 (04:06 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 21 Nov 2023 02:33:35 +0000 (18:33 -0800)
commit683b96f9606ab7308ffb23c46ab43cecdef8a241
treede0eccbd211f39fe44075f6ef5012a502735117d
parentf40bfd1679446b22d321e64a1fa98b7d07d2be08
bpf: extract __check_reg_arg() utility function

Split check_reg_arg() into two utility functions:
- check_reg_arg() operating on registers from current verifier state;
- __check_reg_arg() operating on a specific set of registers passed as
  a parameter;

The __check_reg_arg() function would be used by a follow-up change for
callbacks handling.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20231121020701.26440-5-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c