diff options
author | Shung-Hsi Yu <[email protected]> | 2024-07-12 16:01:24 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-07-12 08:54:07 -0700 |
commit | 4a04b4f0de59dd5c621e78f15803ee0b0544eeb8 (patch) | |
tree | a269c2797c6ab33dc8e4849d77bac21b943a23f3 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 2454075f8e2915cebbe52a1195631bc7efe2b7e1 (diff) |
bpf: fix overflow check in adjust_jmp_off()
adjust_jmp_off() incorrectly used the insn->imm field for all overflow check,
which is incorrect as that should only be done or the BPF_JMP32 | BPF_JA case,
not the general jump instruction case. Fix it by using insn->off for overflow
check in the general case.
Fixes: 5337ac4c9b80 ("bpf: Fix the corner case with may_goto and jump to the 1st insn.")
Signed-off-by: Shung-Hsi Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions