Skip to contentSkip to conversation

dm-thin: Random block placement strategy?

RFC Alex Elsayed 2 participants 2 messages Jul 19, 2012 – Jul 20, 2012 Device mapper

lore
Share & tools
lore
#0 lore raw

This may be insufficiently useful to justify implementing, but I thought it was an interesting concept.

One of the current issues with dm-crypt and discard is that enabling it can leak information about the filesystem and usage patterns of the disk[1].

If a dm-thin device with a random block placement strategy is layered on top of dm-crypt however, this could solve some of the issues involved and partially mitigate others.

Such a random block placement strategy would heavily disguise any layout patterns that could be used to identify the filesystem, most likely to the point of being completely unrecognizable.

Issues arising from discarded blocks being nonzero are avoided by default due to dm-thin pre-zeroing allocations (unless skip_block_zeroing is enabled).

However, some issues would still be present:

While the *distribution* of unused sectors would be concealed, their existence and how many there are would still be detectable.

In addition, the issues with trim and a hidden device are still present.

[1] http://asalor.blogspot.com/2011/08/trim-dm-crypt-problems.html

_______________________________________________
dm-crypt mailing list
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt

#1 lore raw
Quoted 6 lines · Alex Elsayed

This may be insufficiently useful to justify implementing, but I thought it was an interesting concept.

One of the current issues with dm-crypt and discard is that enabling it can leak information about the filesystem and usage patterns of the disk[1].

Quoted 7 lines

If a dm-thin device with a random block placement strategy is layered on top of dm-crypt however, this could solve some of the issues involved and partially mitigate others.

Such a random block placement strategy would heavily disguise any layout patterns that could be used to identify the filesystem, most likely to the point of being completely unrecognizable.

A couple of things spring to mind.

- If you're using a spindle device this will destroy performance, unless you use large block size (which I suspect you don't want to do because you're trying to disguise access patterns).

- How expensive will acquiring a cryptographically secure random destination be?