Skip to content

Run rsext4's power_loss target in the fuzz rotation - #4518

Merged
calef merged 4 commits into
mainfrom
lane/fuzz-power-loss
Dec 4, 2026
Merged

calef merged 4 commits into
mainfrom
lane/fuzz-power-loss

Conversation

@calef

@calef calef commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds rsext4_power_loss, rsext4's eighth fuzz target, to the rotation.

  • tools/ext4_oracle_fuzz: a [[bin]] and a wrapper, as for the other rsext4_* targets. No dependency or lockfile change: the target is in the rsext4-fuzz crate this tree already pins.
  • script/fuzz: the 26th target. Its seeds are the ten files in fuzz/seeds/power_loss of the pinned checkout, passed as a read-only directory, so it needs no e2fsprogs. -max_len=1024, because the target reads no more.
  • ci.yml: each of the two shards now runs thirteen targets.

Name: provisional, rsext4_power_loss.

Alongside

nife#4519 moves the rsext4 pin in the same workspace; whichever of the two lands second merges main.

Time per input

Measured with the script/fuzz build (release, address sanitizer) on an 80-thread Linux host under other load (load average 13 to 22).

inputs count median slowest
committed seeds 10 0.7 s 1.9 s
corpus of a 300 s run 168 1.2 s 4.3 s
random, 1,024 bytes, every block size and mode 36 2.5 s 3.6 s
one byte repeated, 1,024 bytes, synchronous mode 32 5.6 s 13.6 s (all zero; 7.4 s on a second run)
all zero, 1,024 bytes, sealed mode, 1,024-byte blocks 1 11.7 s
all zero, 512 bytes, synchronous mode, every block size 3 2.7 s 3.0 s

The 300 s run executed 262 inputs and found no crash. An input can exceed the ten seconds script/fuzz gave every target, so input_timeout now gives rsext4_power_loss 60 and every other target 10.

A shard of thirteen targets took 16.3 to 17.0 minutes on three merge groups on 2026-12-04 (UTC). libFuzzer checks -max_total_time between inputs and reports a hang within 31 seconds of its timeout, so one slow input adds at most 1.6 minutes: 18.6 of the 20-minute budget.

Verification

  • script/fuzz --time 300 rsext4_power_loss: no crash.
  • helpers/fuzz-input-timeout-selftest.sh (run by script/lint): the whole table against a stub cargo. It fails when the default, the 60, or the use of the function is changed.
  • script/lint: all 151 sections passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01M1dgc3AuaUB7MCTzuuGKHU

calef and others added 4 commits December 4, 2026 03:44
Co-Authored-By: Claude Code <noreply@anthropic.com>
The pinned rsext4 checkout carries an eighth fuzz target, power_loss,
which nothing in this tree ran. Add its wrapper and its table entry,
seed it from the checkout's committed fuzz/seeds/power_loss, and limit
its inputs to the 1,024 bytes the target reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1dgc3AuaUB7MCTzuuGKHU
One input of the target is a whole sequence of operations and can take
more than the ten seconds every target had, so a slow input would be
reported as a hang. Each target now gets its timeout from one function:
60 for rsext4_power_loss, 10 for the rest. A selftest runs the whole
table against a stub cargo and checks both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1dgc3AuaUB7MCTzuuGKHU
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1dgc3AuaUB7MCTzuuGKHU
@calef
calef marked this pull request as ready for review December 4, 2026 04:24
@calef
calef enabled auto-merge December 4, 2026 04:35
@calef
calef added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 50851ce Dec 4, 2026
108 of 113 checks passed
@calef
calef deleted the lane/fuzz-power-loss branch December 4, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant