diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-08-04 05:43:57 -0700 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-12 09:22:39 +0200 |
| commit | 8a8685b32c0718cc7b2cb4d6202e5a5b8e0a8e2d (patch) | |
| tree | 09083ffb393c9618ed8bf06408a487ebaff71a49 /tools/unittests/git@git.tavy.me:linux.git | |
| parent | 7c7fe554f40adac2a7f8d9b6d5886ca332edd496 (diff) | |
iomap: don't free integrity payload that doesn't exist
fs_bio_integrity_alloc might not allocate a bio integrity payload if PI
verification is disabled on the block device. Check for that case before
calling fs_bio_integrity_free in iomap_bio_read_folio_range_sync to
avoid a NULL pointer dereferences.
Make the branch cover the PI verification as well - while
fs_bio_integrity_verify works without an integrity payload, it requires
one to actually do useful work.
Fixes: 0b10a370529c ("iomap: support T10 protection information")
Cc: stable@vger.kernel.org # v7.1
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Link: https://patch.msgid.link/20260804124404.737145-2-hch@lst.de
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/unittests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
