aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/verifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/verifier.c')
-rw-r--r--kernel/bpf/verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 3fb50757e812..92a4332b041d 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -8619,8 +8619,8 @@ static int convert_ctx_accesses(struct bpf_verifier_env *env)
8619 } 8619 }
8620 8620
8621 if (is_narrower_load && size < target_size) { 8621 if (is_narrower_load && size < target_size) {
8622 u8 shift = bpf_ctx_narrow_load_shift(off, size, 8622 u8 shift = bpf_ctx_narrow_access_offset(
8623 size_default); 8623 off, size, size_default) * 8;
8624 if (ctx_field_size <= 4) { 8624 if (ctx_field_size <= 4) {
8625 if (shift) 8625 if (shift)
8626 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, 8626 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH,