Commit Graph

8 Commits

Author SHA1 Message Date
Evgeny Vereshchagin 9decaec30f
[libbpf] switch to the upstream repository (#7180)
To make it easier to switch to CFLite eventually the fuzzer and
build script were moved upstream. Until CFLite isn't fully integrated
there let's just point OSS-Fuzz to the upstream script to
mostly let CIFuzz make sure it's buildable.
2022-01-25 11:14:20 +00:00
Evgeny Vereshchagin 1063bf256f
[libbpf] add Julia Kartseva (#7121) 2022-01-11 16:38:38 -05:00
Evgeny Vereshchagin 0a4bb3fc1e
[libbpf] turn on i386 (#7115) 2022-01-11 10:08:54 +00:00
Evgeny Vereshchagin 9d0a2b953a
[libbpf] show config.log when configure fails (#7024)
to make it easier to figure out why it fails to compile with AFL
2021-12-16 10:16:57 +00:00
Evgeny Vereshchagin fb3be33af9
[libbpf] use --disable-libdebuginfod while building libelf (#6945)
Looks like --disable-libdebuginfod works now so it seems
it can safely be used instead of installing libcurl and
letting ./configure find and ignore it.
2021-12-01 11:09:05 +00:00
Evgeny Vereshchagin 3c1abd23c3
[libbpf] point the script to elfutils-0.186 (#6932)
Hopefully it should be more stable than elfutils-0.185
with a bunch of commits on top of it
2021-11-30 11:01:23 +00:00
Evgeny Vereshchagin bec389762b
[libbpf] remove an out-of-date comment (#6931)
All the issues that check was supposed to catch should be
caught by the libbpf testsuite when it's run under UBSan
so it doesn't seem to make much sense to add it to the compiler
flags on OSS-Fuzz.
2021-11-30 10:14:44 +00:00
Evgeny Vereshchagin b43bb968f8
[libbpf] initial integration (#6608)
* [libbpf] initial integration

* [libbpf] link against zlib statically

it somehow helps to get around https://github.com/google/oss-fuzz/issues/6524

* [libbpf] trim headers

* [libbpf] more sanitizers

* [libbpf] show the commit libelf is built from

to make it easier to roll back to the last known working version
should something go wrong

* [libbpf] pin libelf to a particular commit

to avoid running into unpredictable build failures that
can't be controlled by the libbpf project itself. In the future
libelf should probably be built using the latest stable release
at https://sourceware.org/elfutils/ftp/elfutils-latest.tar.bz2

* [libbpf] add more comment

to hoppefully make it easier to make sense of the build script
in the foreseeable future

* [libbpf] add support for "local" mode without docker

to make it easier to build the fuzz target locally:
```
cd projects/libbpf
git clone https://github.com/libbpf/libbpf
./build.sh
unzip -d CORPUS ./out/bpf-object-fuzzer_seed_corpus.zip
./out/bpf-object-fuzzer CORPUS/
```

* [libbpf] more comments

* [libbpf] add the maintainer's email address

* [libbpf] more comments

* [libbpf] install libz explicitly

* [libbpf] build 4 times a day

It should help to prevent OSS-Fuzz from reporting issues that
have already been fixed
2021-10-21 21:30:02 -07:00