Skip to content
Commit 2b589a7e authored by Wang YanQing's avatar Wang YanQing Committed by Daniel Borkmann
Browse files

bpf, arm32: correct check_imm24

imm24 is signed, so the right range is:

  [-(1<<(24 - 1)), (1<<(24 - 1)) - 1]

Note: this patch also fix a typo.

Fixes: 39c13c20

 ("arm: eBPF JIT compiler")
Signed-off-by: default avatarWang YanQing <udknight@gmail.com>
Cc: Shubham Bansal <illusionist.neo@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux@armlinux.org.uk
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 34ea38ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment