[llvm-branch-commits] [llvm] [BPF] Add CLI option to enable misaligned memory access (PR #167013)
Claire Fan via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 10 10:49:48 PST 2025
clairechingching wrote:
@yonghong-song The kernel verifier is indeed very restrictive and for good reason. This feature is intended for user-space eBPF, where the decision to allow misaligned access is up to the implementer. In such environments, allowing misaligned accesses is far more performant as it drastically reduces the number of instructions required to perform common memory operations. By making it optional, we leave kernel BPF behavior unchanged while allowing the implementer to improve user space performance when the platform supports it.
https://github.com/llvm/llvm-project/pull/167013
More information about the llvm-branch-commits
mailing list