mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
bpf: Move checks for reserved fields out of the main pass
Check reserved fields of each insn once in a prepass instead of repeatedly rechecking them during the main verifier pass. Link: https://lore.kernel.org/r/20260411200932.41797-1-alexei.starovoitov@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
+200
-147
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"junk insn2",
|
||||
.insns = {
|
||||
BPF_RAW_INSN(1, 0, 0, 0, 0),
|
||||
BPF_RAW_INSN(BPF_LDX | BPF_MEM | BPF_W, 0, 0, 0, 1),
|
||||
BPF_EXIT_INSN(),
|
||||
},
|
||||
.errstr = "BPF_LDX uses reserved fields",
|
||||
|
||||
Reference in New Issue
Block a user