bbssd: add deleted-data-remanence experiment logging#190
Open
NiceGuy1313 wants to merge 1 commit into
Open
Conversation
Add debug-only instrumentation to the BBSSD FTL to study whether deleted data survives in the emulated device. FTL behavior is unchanged: every addition is gated on the FEMU_EXP_LOG / FEMU_SECRET env vars and only emits logs (to stderr, so it survives the tee pipe unbuffered). ftl.c: - EXP_LOG macro + PPA_FMT/PPA_ARG human-readable PPA formatting - femu_dbg_dump_lpn(): hex/ascii dump of a logical page from the DRAM backend (data lives at LBA offset in mbe->logical_space, not at a PPA) - femu_dbg_scan_secret(): scan the whole backend for FEMU_SECRET - content-based watch list so only the secret-bearing LPN/block is logged - log points: [WRITE] [INVALIDATE:overwrite] [INVALIDATE:trim] [GC_MOVE] [ERASE], plus [SCAN:after_trim] and FEMU_DUMP_LPN-triggered [DUMP] femu-scripts/run-blackbox.sh: - forward FEMU_EXP_LOG/FEMU_SECRET/FEMU_DUMP_LPN through sudo (sudo otherwise strips them so getenv() returns NULL inside qemu)
c7aa2ec to
29e927a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add debug-only instrumentation to the BBSSD FTL to study whether deleted data survives in the emulated device. FTL behavior is unchanged: every addition is gated on the FEMU_EXP_LOG / FEMU_SECRET env vars and only emits logs (to stderr, so it survives the tee pipe unbuffered).
ftl.c:
femu-scripts/run-blackbox.sh:
Description
Brief description of changes made.
Type of Change
Testing
FEMU Modes Tested
Platform Testing
Checklist
Related Issues
Fixes #(issue number)
Additional Notes
Any additional information, configuration changes, or notes for reviewers.