OSDN Git Service

crypto: validate that LUKS payload doesn't overlap with header
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 5 Sep 2022 12:50:03 +0000 (13:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 27 Oct 2022 11:55:27 +0000 (12:55 +0100)
commitd233fbc327d3f1f03bc30e0486b9ade3aa23f9ec
tree9c53221037e0f325e26bfce8abeeaa11d4feb420
parent93569c373027c5c46e518e01c0c3e2d07fbb6890
crypto: validate that LUKS payload doesn't overlap with header

We already validate that LUKS keyslots don't overlap with the
header, or with each other. This closes the remaining hole in
validation of LUKS file regions.

Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/block-luks.c