Skip to main content
QUICK REVIEW

[Paper Review] Secure Deletion on Log-structured File Systems

Joel Reardon, Claudio Marforio|arXiv (Cornell University)|Jun 5, 2011
Advanced Data Storage TechnologiesComputer Science14 references12 citations
TL;DR

This paper proposes three mechanisms—purging, ballooning, and zero overwriting—for secure deletion on log-structured file systems like YAFFS used in Android smartphones. It demonstrates that standard deletion, overwriting, and encryption do not reliably erase data due to flash memory's write-once nature, and shows that their solutions ensure immediate or guaranteed secure deletion without excessive wear or battery drain.

ABSTRACT

We address the problem of secure data deletion on log-structured file systems. We focus on the YAFFS file system, widely used on Android smartphones. We show that these systems provide no temporal guarantees on data deletion and that deleted data still persists for nearly 44 hours with average phone use and indefinitely if the phone is not used after the deletion. Furthermore, we show that file overwriting and encryption, methods commonly used for secure deletion on block-structured file systems, do not ensure data deletion in log-structured file systems. We propose three mechanisms for secure deletion on log-structured file systems. Purging is a user-level mechanism that guarantees secure deletion at the cost of negligible device wear. Ballooning is a user-level mechanism that runs continuously and gives probabilistic improvements to secure deletion. Zero overwriting is a kernel-level mechanism that guarantees immediate secure deletion without device wear. We implement these mechanisms on Nexus One smartphones and show that they succeed in secure deletion and neither prohibitively reduce the longevity of the flash memory nor noticeably reduce the device's battery lifetime. These techniques provide mobile phone users more confidence that data they delete from their phones are indeed deleted.

Motivation & Objective

  • Address the lack of temporal guarantees in secure data deletion on log-structured file systems like YAFFS.
  • Identify that standard methods—file overwriting and encryption—fail to ensure data deletion due to flash memory’s write-once semantics.
  • Design user-level and kernel-level mechanisms to provide reliable, secure deletion without compromising flash longevity or battery life.
  • Demonstrate that deleted data can persist for up to 44 hours on average phone use, highlighting the urgency of secure deletion solutions.
  • Enable users to securely delete individual files without resorting to factory reset, preserving data integrity and privacy.

Proposed method

  • Implement purging as a user-level mechanism that actively overwrites all previously marked-for-deletion data in a single operation.
  • Design ballooning as a continuous user-level process that fills available space to accelerate garbage collection and reduce data persistence time.
  • Introduce zero overwriting as a kernel-level modification that ensures immediate secure deletion by writing zeros to deleted blocks at the time of unlinking.
  • Evaluate the mechanisms on Nexus One smartphones to measure impact on flash wear and battery consumption.
  • Leverage the flash translation layer (FTL) behavior and garbage collection patterns in YAFFS to design mechanisms that exploit or control block reclamation timing.
  • Assess generalizability to other log-structured file systems like JFFS and UBI, particularly through dynamic partition resizing and LEB-level control.

Experimental results

Research questions

  • RQ1Why do traditional secure deletion techniques such as overwriting and encryption fail on log-structured file systems like YAFFS?
  • RQ2How long does deleted data persist on flash-based storage under normal usage conditions in YAFFS?
  • RQ3Can user-level mechanisms like purging and ballooning achieve secure deletion without significant wear or performance degradation?
  • RQ4What kernel-level changes are required to enable immediate secure deletion via zero overwriting, and what are the trade-offs?
  • RQ5To what extent can mechanisms like ballooning and zero overwriting be generalized to other log-structured file systems, including UBI?

Key findings

  • Deleted data in YAFFS can persist for up to 44 hours under average phone usage, and indefinitely if the device is unused after deletion.
  • File overwriting and encryption do not ensure secure deletion in log-structured file systems because new versions are written to new blocks, leaving original data intact.
  • Purging guarantees secure deletion within 30 seconds and causes negligible wear on flash memory.
  • Ballooning reduces the expected time for data to be securely erased by accelerating garbage collection, offering a tunable trade-off between deletion speed and wear.
  • Zero overwriting ensures immediate secure deletion at the kernel level without additional wear, but requires kernel modifications and is not compatible with all flash memory types.
  • The proposed mechanisms do not significantly affect battery life or flash longevity, making them practical for real-world deployment on mobile devices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.