diff options
author | Eric Biggers <ebiggers@google.com> | 2023-06-04 05:21:01 +0300 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-06-04 15:56:11 +0300 |
commit | d1f0c5ea04cd0a93309de0246278f0b22394692d (patch) | |
tree | 56d949991109fb571829758970c7481595393746 /security/integrity/ima | |
parent | 32ab3c5e6226a5c39b6674b5fbb16b492c2faa2e (diff) | |
download | linux-d1f0c5ea04cd0a93309de0246278f0b22394692d.tar.xz |
fsverity: don't use bio_first_page_all() in fsverity_verify_bio()
bio_first_page_all(bio)->mapping->host is not compatible with large
folios, since the first page of the bio is not necessarily the head page
of the folio, and therefore it might not have the mapping pointer set.
Therefore, move the dereference of ->mapping->host into
verify_data_blocks(), which works with a folio.
(Like the commit that this Fixes, this hasn't actually been tested with
large folios yet, since the filesystems that use fs/verity/ don't
support that yet. But based on code review, I think this is needed.)
Fixes: 5d0f0e57ed90 ("fsverity: support verifying data from large folios")
Link: https://lore.kernel.org/r/20230604022101.48342-1-ebiggers@kernel.org
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'security/integrity/ima')
0 files changed, 0 insertions, 0 deletions