[dm-devel] [PATCH] dm-crypt: Reject sector_size feature if device length is not aligned to it

Alasdair G Kergon agk at redhat.com
Tue Oct 3 12:05:08 UTC 2017


On Mon, Oct 02, 2017 at 10:43:56AM -0400, Mikulas Patocka wrote:
> Here I send a patch that checks invalid limits when the table is loaded 
> and aborts the table load ioctl with an error.
 
The code does not already do this because it needs to avoid unnecessary
failures if any characteristics of the devices underneath change after
the 'load' but before the 'resume' (as can happen, for example, when a
tree of devices gets updated by performing all the loads before all the
resumes).

Alasdair




More information about the dm-devel mailing list