From 437645149bb106fb84bb9bcfc61c00cf7e89d979 Mon Sep 17 00:00:00 2001 From: 9640-Akhil Date: Fri, 12 Dec 2025 09:44:11 +0000 Subject: [PATCH 1/2] Increase the memory allocated to 'BOT_TMPDIR' to 1GB The 90MB tmpfs mount allocated for 'BOT_TMPDIR' is insufficient for downloading large corpus backup files, leading to the "OSError: [Errno 28] No space left on device" error in Cuttlefish and Linux hosts. This change increases the tmpfs mount size to 1GB to accommodate larger corpus backup files. --- docker/base/setup_clusterfuzz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/base/setup_clusterfuzz.sh b/docker/base/setup_clusterfuzz.sh index 4b51d33f00..f31adf4678 100644 --- a/docker/base/setup_clusterfuzz.sh +++ b/docker/base/setup_clusterfuzz.sh @@ -54,7 +54,7 @@ if [[ -z "$DISABLE_MOUNTS" ]]; then # Setup Tmpfs dirs for frequently accessed files to save disk I/O. mount -t tmpfs -o size=250M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/inputs/fuzzer-testcases/ mount -t tmpfs -o size=10M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/logs/ - mount -t tmpfs -o size=90M,mode=777 tmpfs $BOT_TMPDIR + mount -t tmpfs -o size=1G,mode=777 tmpfs $BOT_TMPDIR # Setup mount to limit disk space for fuzzer testcases disk directory. FUZZER_TESTCASES_DISK_FILE=$INSTALL_DIRECTORY/fuzzer-testcases.mnt From 8b57fde34d4822c1073593f4863c9994ccd495fb Mon Sep 17 00:00:00 2001 From: 9640-Akhil Date: Fri, 19 Dec 2025 05:21:03 +0000 Subject: [PATCH 2/2] Resolved review inputs --- docker/base/setup_clusterfuzz.sh | 4 ++-- src/clusterfuzz/_internal/fuzzing/corpus_manager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/base/setup_clusterfuzz.sh b/docker/base/setup_clusterfuzz.sh index f31adf4678..8e18e48ea9 100644 --- a/docker/base/setup_clusterfuzz.sh +++ b/docker/base/setup_clusterfuzz.sh @@ -52,9 +52,9 @@ fi # set up mounts in this case. if [[ -z "$DISABLE_MOUNTS" ]]; then # Setup Tmpfs dirs for frequently accessed files to save disk I/O. - mount -t tmpfs -o size=250M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/inputs/fuzzer-testcases/ + mount -t tmpfs -o size=1280M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/inputs/fuzzer-testcases/ mount -t tmpfs -o size=10M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/logs/ - mount -t tmpfs -o size=1G,mode=777 tmpfs $BOT_TMPDIR + mount -t tmpfs -o size=90M,mode=777 tmpfs $BOT_TMPDIR # Setup mount to limit disk space for fuzzer testcases disk directory. FUZZER_TESTCASES_DISK_FILE=$INSTALL_DIRECTORY/fuzzer-testcases.mnt diff --git a/src/clusterfuzz/_internal/fuzzing/corpus_manager.py b/src/clusterfuzz/_internal/fuzzing/corpus_manager.py index c335b8f319..c489bedfc9 100644 --- a/src/clusterfuzz/_internal/fuzzing/corpus_manager.py +++ b/src/clusterfuzz/_internal/fuzzing/corpus_manager.py @@ -479,7 +479,7 @@ def _sync_corpus_to_disk(self, corpus, directory): """Syncs a corpus from GCS to disk.""" shell.create_directory(directory, create_intermediates=True) if corpus.backup_url: - tmpdir = environment.get_value('BOT_TMPDIR') + tmpdir = environment.get_value('FUZZ_INPUTS') with tempfile.NamedTemporaryFile( dir=tmpdir, suffix='.zip') as temp_zipfile: try: