diff options
author | 2021-05-21 10:19:22 +0000 | |
---|---|---|
committer | 2021-05-25 22:08:53 +0200 | |
commit | bb01a1bba579b4b1c5566af24d95f1767859771e (patch) | |
tree | 2a55730fe2493fef3e9067069bed9a5a89bc5ae7 /scripts/gdb/linux/utils.py | |
parent | bpf: Wrap aux data inside bpf_sanitize_info container (diff) | |
download | wireguard-linux-bb01a1bba579b4b1c5566af24d95f1767859771e.tar.xz wireguard-linux-bb01a1bba579b4b1c5566af24d95f1767859771e.zip |
bpf: Fix mask direction swap upon off reg sign change
Masking direction as indicated via mask_to_left is considered to be
calculated once and then used to derive pointer limits. Thus, this
needs to be placed into bpf_sanitize_info instead so we can pass it
to sanitize_ptr_alu() call after the pointer move. Piotr noticed a
corner case where the off reg causes masking direction change which
then results in an incorrect final aux->alu_limit.
Fixes: 7fedb63a8307 ("bpf: Tighten speculative pointer arithmetic mask")
Reported-by: Piotr Krysiuk <piotras@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Piotr Krysiuk <piotras@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions