diff options
author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2024-08-19 16:11:27 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-08-19 15:30:06 -0700 |
commit | 2aa93695081d4bd62350b41d58684d802be4563f (patch) | |
tree | cbf7c7feca370a9c662fbc0ae17967ce365b5be4 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c | |
parent | 955bba7e0a0ec7c13d3e9aa73c61f0d31e43fda8 (diff) |
selftests/bpf: Disable strict aliasing for verifier_nocsr.c
verfifier_nocsr.c fails to compile in GCC. The reason behind it was
initially explained in commit 27a90b14b93d3b2e1efd10764e456af7e2a42991.
"A few BPF selftests perform type punning and they may break strict
aliasing rules, which are exploited by both GCC and clang by default
while optimizing. This can lead to broken compiled programs."
Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240819151129.1366484-2-cupertino.miranda@oracle.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions