diff options
author | Ondrej Mosnáček <[email protected]> | 2017-06-05 17:52:39 +0200 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2017-06-12 17:05:55 -0400 |
commit | 2ad50606f847a902303a5364b7cad64bdd6246f6 (patch) | |
tree | 29576817c3611442cd60d2ffb7d3740a516586c2 /lib/pm-notifier-error-inject.c | |
parent | 32c1431eea4881a6b17bd7c639315010aeefa452 (diff) |
dm integrity: reject mappings too large for device
dm-integrity would successfully create mappings with the number of
sectors greater than the provided data sector count. Attempts to read
sectors of this mapping that were beyond the provided data sector count
would then yield run-time messages of the form "device-mapper:
integrity: Too big sector number: ...".
Fix this by emitting an error when the requested mapping size is bigger
than the provided data sector count.
Signed-off-by: Ondrej Mosnacek <[email protected]>
Acked-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions