diff options
Diffstat (limited to 'kernel/bpf/verifier.c')
-rw-r--r-- | kernel/bpf/verifier.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 9584438fa2cc..71988337ac14 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c | |||
@@ -6505,6 +6505,8 @@ int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, | |||
6505 | env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); | 6505 | env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); |
6506 | if (!IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)) | 6506 | if (!IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)) |
6507 | env->strict_alignment = true; | 6507 | env->strict_alignment = true; |
6508 | if (attr->prog_flags & BPF_F_ANY_ALIGNMENT) | ||
6509 | env->strict_alignment = false; | ||
6508 | 6510 | ||
6509 | ret = replace_map_fd_with_map_ptr(env); | 6511 | ret = replace_map_fd_with_map_ptr(env); |
6510 | if (ret < 0) | 6512 | if (ret < 0) |