Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .clusterfuzzlite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ RUN sed -i -e '/^#\s*deb-src.*\smain\s\+restricted/s/^#//' /etc/apt/sources.list
# libbpf build dependencies \
apt-get install -y --no-install-recommends libz-dev libz-dev:i386
COPY .clusterfuzzlite/build.sh $SRC
RUN git clone --depth 1 https://github.com/libbpf/libbpf
WORKDIR libbpf
COPY . $SRC/libbpf
WORKDIR $SRC/libbpf
2 changes: 1 addition & 1 deletion .github/workflows/cflite_batch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ClusterFuzzLite batch fuzzing
on:
schedule:
- cron: '0/10 * * * *'
- cron: '0 0/2 * * *'
permissions: read-all
jobs:
BatchFuzzing:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/cflite_prune.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ClusterFuzzLite prune
on:
schedule:
- cron: '0/10 0 * * *'
permissions: read-all
jobs:
Pruning:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
- name: Run Fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 180
mode: 'prune'
2 changes: 0 additions & 2 deletions scripts/build-fuzzers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,4 @@ make -C src -j$(nproc) CFLAGS="-I$elfutils/libelf $CFLAGS" BUILD_STATIC_ONLY=y V
$CC $CFLAGS -Isrc -Iinclude -Iinclude/uapi -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c .clusterfuzzlite/bpf-object-fuzzer.c -o bpf-object-fuzzer.o
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE bpf-object-fuzzer.o src/libbpf.a "$elfutils/libelf/libelf.a" -l:libz.a -o "$OUT/bpf-object-fuzzer"

wget -O "$OUT/bpf-object-fuzzer_seed_corpus.zip" https://storage.googleapis.com/libbpf-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/libbpf_bpf-object-fuzzer/public.zip

rm -rf "$elfutils"