commit | 9601148392520e2e134936e76788fc2a6371e7be | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Tue Mar 23 08:32:59 2021 +0100 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Fri Apr 16 23:51:21 2021 +0200 |
tree | 4b12106c68f6229ce8292b94ad12e790e4ec756d | |
parent | afd0be7299533bb2e2b09104399d8a467ecbd2c5 [diff] |
bpf: Use correct permission flag for mixed signed bounds arithmetic We forbid adding unknown scalars with mixed signed bounds due to the spectre v1 masking mitigation. Hence this also needs bypass_spec_v1 flag instead of allow_ptr_leaks. Fixes: 2c78ee898d8f ("bpf: Implement CAP_BPF") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org>