summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-12-16 22:34:35 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-17 16:35:33 +0100
commit530ec35c211ed1cf8cac1da4a742500932343d4f (patch)
tree8e1ccd73e57a53b9a2c77c53205d405649858d4f /include/net/aligned_data.h
parent79dd3f1d9dd310c2af89b09c71f34d93973b200f (diff)
block: validate pi_offset integrity limit
[ Upstream commit ccb8a3c08adf8121e2afb8e704f007ce99324d79 ] The PI tuple must be contained within the metadata value, so validate that pi_offset + pi_tuple_size <= metadata_size. This guards against block drivers that report invalid pi_offset values. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions