diff options
author | 2021-03-07 14:09:48 +0200 | |
---|---|---|
committer | 2021-03-08 16:08:06 +0100 | |
commit | 769c18b254ca191b45047e1fcb3b2ce56fada0b6 (patch) | |
tree | cb35ce94db582bd6fd717ac4340d08e4ead21168 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bpf: Dont allow vmlinux BTF to be used in map_create and prog_load. (diff) | |
download | wireguard-linux-769c18b254ca191b45047e1fcb3b2ce56fada0b6.tar.xz wireguard-linux-769c18b254ca191b45047e1fcb3b2ce56fada0b6.zip |
bpf: Change inode_storage's lookup_elem return value from NULL to -EBADF
bpf_fd_inode_storage_lookup_elem() returned NULL when getting a bad FD,
which caused -ENOENT in bpf_map_copy_value. -EBADF error is better than
-ENOENT for a bad FD behaviour.
The patch was partially contributed by CyberArk Software, Inc.
Fixes: 8ea636848aca ("bpf: Implement bpf_local_storage for inodes")
Signed-off-by: Tal Lossos <tallossos@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210307120948.61414-1-tallossos@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions