2 "read uninitialized register",
4 BPF_MOV64_REG(BPF_REG_0
, BPF_REG_2
),
7 .errstr
= "R2 !read_ok",
11 "read invalid register",
13 BPF_MOV64_REG(BPF_REG_0
, -1),
16 .errstr
= "R15 is invalid",
20 "program doesn't init R0 before exit",
22 BPF_ALU64_REG(BPF_MOV
, BPF_REG_2
, BPF_REG_1
),
25 .errstr
= "R0 !read_ok",
29 "program doesn't init R0 before exit in all branches",
31 BPF_JMP_IMM(BPF_JGE
, BPF_REG_1
, 0, 2),
32 BPF_MOV64_IMM(BPF_REG_0
, 1),
33 BPF_ALU64_IMM(BPF_ADD
, BPF_REG_0
, 2),
36 .errstr
= "R0 !read_ok",
37 .errstr_unpriv
= "R1 pointer comparison",