WO2012167392A2

Method and devices for secure deletion of data in a log structured file system

Abstract

For ensuring secure deletion of data in a log structured file system (12), shortened is the deletion latency between deletion of the data by a user and secure deletion of the data from memory by an application (11) writing (S4) and deleting (S3) junk files to expedite reallocation of memory. For that purpose, the application (11) determines (S1, S2) periodically a number of free chunks of memory, deletes (S3) a junk file for cases where the number of free chunks is below a defined lower memory threshold, and writes (S4) a junk file for cases where the number of free chunks (131) is above a defined upper memory threshold.

WO2012167392A2, drawing sheet 1
Sheet 1 of 5

Term

No projected expiry on record.

  1. Priority
  2. Filed
  3. Published
  4. Today

6 claims: 3 independent, 3 dependent

  1. 1
    A method for secure deletion of data in a log structured file system (12) wherein deletion latency between deletion of the data by a user and secure deletion of the data from memory (13) is shortened by an application (11) writing and deleting junk files to expedite reallocation of memory. The method of claim
  2. 2
    2, wherein the application (11) determines periodically a number of free chunks of memory (131), deletes a junk file for cases where the number of free chunks (131) is below a defined lower memory threshold, and writes a junk file for cases where the number of free chunks (131) is above a defined upper memory threshold. The method of claim 2, wherein the junk files are set to a defined number of one or more memory erase blocks ( 130) including junk data, a memory erase block (130) comprising a plurality of memory chunks (131), and the defined lower memory threshold and the defined upper memory threshold are set to obtain a minimum amount of available memory in a range of 10 to 250 memory erase blocks (130). The method of one of claims 1 to
  3. 3
    3, wherein the application deletes from memory (13) older junk files prior to newer junk files. The method of one of claims 1 to
  4. 4
    4, wherein the log structured file system (12) is implemented on a communication terminal, and the application (1 T) is assigned permission to run on the communication terminal while the communication terminal is in a locked state. The method of one of claims 1 to ' 5, wherein upon user deletion of sensitive data the application (11) fills the available memory with junk data. A computerized device (1) comprising a data memory (13) and a log structured file system (12), wherein the device (1) further comprises an application module (11) configured to shorten deletion latency between deletion of the data by a user and secure deletion of the data from the memory ( 13) by writing and deleting junk files to expedite reallocation of memory. The device (1) of claim 7, wherein the application module (11) is further configured to determine periodically a number of free chunks of memory ( 131 ), to delete a junk file for cases where the number of free chunks (131) is below a defined lower memory threshold, and to write a junk file for cases where the number of free chunks ( 131 ) is above a defined upper memory threshold. The device (1 ) of claim 8, wherein the junk files each include a defined number of one or more memory erase blocks (130) including junk data, a memory erase block (130) comprising a plurality of memory chunks (131), and the defined lower memory threshold and the defined upper memory threshold are set to obtain a minimum amount of available memory in a range of 10 to 250 memory erase blocks (130). 10. The device (1) of one of claims 7 to 9, wherein the application module (11) is further configured to delete from the memory older junk files prior to newer junk files. 11. The device ( 1 ) of one of claims 7 to 10, wherein the device ( 1 ) is a communication terminal, and the application module ( 11 ) is set up with permissions to run on the communication terminal while the communication terminal is in a locked state. 12. A computer program product comprising a computer readable medium having stored thereon computer program code which directs a computerized device (1), having a data memory (13) and a log structured file system (12), to execute a method according to one of claims T to 7. 1 . A method of deleting data in a log structured file system (12) associated with flash memory (13) of an electronic device (1), wherein, upon deletion of a chunk of memory (131) by the file system (12), a kernel function of the communication terminal overwrites the entire deleted chunk (131) with zeros. 14. An electronic device (1) comprising flash memory (1 ) and an associated log structured file system (12), wherein the device (1) further comprises a kernel function configured, upon deletion of a chunk of memory (131 ) by the file system ( 1 ), to overwrite the entire deleted chunk (131) with zeros. 15. A computer program product comprising a computer readable medium having stored thereon computer program code which directs an electronic device (1), having a flash memory (13) and an associated log structured file system (12), to execute a method according to claim 13. 6. A method for secure deletion on a file system, comprising the following steps:- deleting the data from the device through normal means;- writing new data until the capacity of the device is full, thereby ensuring that all available space has since been repurposed for new data;and - deleting the new file to reclaim the space it consumes. 7. A method for the encryption and secure deletion of data, using a storage medium capable of partitioning, where data storage comprises the following steps: - partitioning the device into an encryption key area and a storage area;- associating each file in the storage area with an encryption key in the key area;- encrypting any data written to a file with its corresponding key;and data deletion compromises the following steps: - deleting the file from the storage area;- deleting the key for the file from the key area;- applying claim 1 6 to the capacity of storage space. A method for achieving improvements to the expected latency on log -structured file systems without requiring special privileges, comprising the following steps: - crating one or more unneeded file(s) whenever the file system has free space above a threshold;- deleting an unneeded file whenever the file system has free space below a threshold;and - periodically checking the file system's free space and managing the unneeded files. A method for secure deletion involving a remapping layer, such that any file system mounted on top of the remapping layer can implement an equivalent system as claim 1 6, where instead of filling the entire storage capacity of the device, the remapping layer withholds blocks from the file system, consisting of the following steps: - the remapping layer is informed that a secure deletion operation is occurring;- the user writes unneeded data to a single file;- during this process, whenever a block is erased, the remapping layer uses block metadata to prevent its reallocation;- the unneeded file is then deleted and the remapping layer is told that;- the secure deletion operation has completed;and the block remapping layer uses metadata to again allow allocation of erased blocks. 20. A realization of claim 1 9 as applied to the UBI block remapping layer and any flash file system, including YAFF5 and YAFFS2. 21 . A realization of claim 1 9 using the bad block flag as metadata to prevent the file system from allocating a block.
  5. 5
    5 22. A hybrid system of claims 20 and 21 . 23. A method for secure deletion involving a remapping layer, such that any file system mounted on top of it can implement an equivalent system as Claim 1 8, where instead of filling unneeded files, the remapping layer withholds blocks from the file system; this consist of the following steps:
  6. 6
    10 - the desired free space (cf. the thresholds on free space) is told to the remapping layer; - when a block is erased, the remapping layer may indicate via metadata that the file system should not use that block (cf. writing an unneeded file); and - the remapping layer uses metadata to also indicate when the file system can i s again use a block (cf. deleting an unneeded file). 24. A realization of claim 23 using the UBI remapping layer and any flash file system, including UBIFS, YAFFS and YAFFS2. 25. A realization of claim 23 using the bad block flag as metadata to prevent the file system from allocating a block. 26. A hybrid system of claims 24 and 25 A method for secure deletion making use of a remapping layer that provides atomic update, with a change to any file system that operates on the remapping layer, where . secure deletion occurs in a similar way as claim 1 7, consisting of the following steps:- one or more erase block(s) at fixed logical positions is/are dedicated solely to storage of keys;- each ile is associated with a key;- any data written to a file is encrypted with its corresponding key before writing it to storage;- when data is deleted, its corresponding key is also deleted;and - periodically the block(s) containing keys are atomically updated using the remapping layer's atomic update function to securely remove all old keys, thus securely deleting (in a computational sense) the corresponding data. 28. A realization of claim 27 with UBI remapping layer and any file system that can function with UBI, including UBIFS, YAFFS and YAFFS2.