Public bug reported:
afl++ 5.02c-0.5ubuntu3 builds "successfully" but ships without its LLVM
components (afl-compiler-rt.o, afl-c++, afl-clang-fast,
SanitizerCoveragePCGUARD.so, ...), so the autopkgtests fail:
https://autopkgtest.ubuntu.com/packages/a/aflplusplus/stonking/amd64
smoke-test-clang: Unable to find 'afl-compiler-rt.o'
smoke-test-clang-fast: make: afl-clang-fast: No such file or directory
adequate-afl: broken-symlink /usr/bin/afl-g++-fast -> afl-c++
broken-symlink /usr/lib/afl/afl-gcc-rt.o ->
afl-compiler-rt.o
In the build log the LLVM self-test fails and the error is ignored by
the upstream makefile:
Oops, the instrumentation does not seem to be behaving correctly!
make[2]: [GNUmakefile:913: install] Error 2 (ignored)
Root cause: src/afl-cc.c records any -fcf-protection* argument as
have_cfisan (as if AFL_USE_CFISAN was set). In clang mode that injects
-flto -fvisibility=hidden; the PCGUARD pass does not run under -flto, so
the binary gets no instrumentation. The Ubuntu build flags always
contain -fcf-protection=..., so the test_build check fails and the LLVM
parts are not installed. Reproduced in a stonking container: only -fcf-
protection=<any value> triggers it.
Fixed upstream (not yet released):
https://github.com/AFLplusplus/AFLplusplus/pull/2896
commit a9e8587ee86c8ff20a14de6aea6ec07d7d3f699f
A backport of that one-line change fixes the build: the LLVM components
are installed again, afl-clang/afl-clang-fast build the test program and
adequate is clean.
** Affects: aflplusplus (Ubuntu)
Importance: Undecided
Status: New
** Tags: stonking update-excuse
** Tags added: stonking update-excuse
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2170639
Title:
afl++ ships without LLVM components: afl-cc treats -fcf-protection as
CFISAN request
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aflplusplus/+bug/2170639/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs