Re: [PATCH bpf-next] selftests/bpf: fix prog_tests/uprobe_autoattach compilation error

From: patchwork-bot+netdevbpf
Date: Thu Apr 21 2022 - 13:00:24 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Thu, 21 Apr 2022 15:23:17 +0200 you wrote:
> I am getting the following compilation error for prog_tests/uprobe_autoattach.c
>
> tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c: In function ‘test_uprobe_autoattach’:
> ./test_progs.h:209:26: error: pointer ‘mem’ may be used after ‘free’ [-Werror=use-after-free]
>
> mem variable is now used in one of the asserts so it shouldn't be freed right
> away. Move free(mem) after the assert block.
>
> [...]

Here is the summary with links:
- [bpf-next] selftests/bpf: fix prog_tests/uprobe_autoattach compilation error
https://git.kernel.org/bpf/bpf-next/c/6a12b8e20d7e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html