Files
linux/tools/lib
Alex Gartrell f0ba7b6604 libbpf: Fix unintentional success return code in bpf_object__load
[ Upstream commit ef05afa66c ]

There are code paths where EINVAL is returned directly without setting
errno. In that case, errno could be 0, which would mask the
failure. For example, if a careless programmer set log_level to 10000
out of laziness, they would have to spend a long time trying to figure
out why.

Fixes: 4f33ddb4e3 ("libbpf: Propagate EPERM to caller on program load")
Signed-off-by: Alex Gartrell <alexgartrell@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200826075549.1858580-1-alexgartrell@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 10:11:14 +01:00
..
2020-08-13 09:34:26 -03:00
2020-07-17 09:33:06 -03:00