diff options
author | Xi Wang <[email protected]> | 2015-05-08 06:39:51 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-05-08 16:15:07 +0100 |
commit | 1e4df6b7208140f3c49f316d33a409d3a161f350 (patch) | |
tree | fdc3195d8e5d8bc5fa87bee6c2dc7c2d5f20e3fc /fs/jbd/commit.c | |
parent | 326a780317d572711f70d53054502e86a1ff5317 (diff) |
arm64: bpf: fix signedness bug in loading 64-bit immediate
Consider "(u64)insn1.imm << 32 | imm" in the arm64 JIT. Since imm is
signed 32-bit, it is sign-extended to 64-bit, losing the high 32 bits.
The fix is to convert imm to u32 first, which will be zero-extended to
u64 implicitly.
Cc: Zi Shen Lim <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: <[email protected]>
Fixes: 30d3d94cc3d5 ("arm64: bpf: add 'load 64-bit immediate' instruction")
Signed-off-by: Xi Wang <[email protected]>
[will: removed non-arm64 bits and redundant casting]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions