Revision 8dad53a11f8d94dceb540a5f8f153484f42be84b authored by Christoph Hellwig on 23 July 2021, 22:50:17 UTC, committed by Linus Torvalds on 24 July 2021, 00:43:28 UTC
memcpy_to_page and memzero_page can write to arbitrary pages, which could be in the page cache or in high memory, so call flush_kernel_dcache_pages to flush the dcache. This is a problem when using these helpers on dcache challeneged architectures. Right now there are just a few users, chances are no one used the PC floppy driver, the aha1542 driver for an ISA SCSI HBA, and a few advanced and optional btrfs and ext4 features on those platforms yet since the conversion. Link: https://lkml.kernel.org/r/20210713055231.137602-2-hch@lst.de Fixes: bb90d4bc7b6a ("mm/highmem: Lift memcpy_[to|from]_page to core") Fixes: 28961998f858 ("iov_iter: lift memzero_page() to highmem.h") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Cc: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 236e9f1
File | Mode | Size |
---|---|---|
asymmetric-parser.h | -rw-r--r-- | 981 bytes |
asymmetric-subtype.h | -rw-r--r-- | 1.7 KB |
asymmetric-type.h | -rw-r--r-- | 2.8 KB |
big_key-type.h | -rw-r--r-- | 816 bytes |
ceph-type.h | -rw-r--r-- | 162 bytes |
dns_resolver-type.h | -rw-r--r-- | 482 bytes |
encrypted-type.h | -rw-r--r-- | 1.1 KB |
keyring-type.h | -rw-r--r-- | 337 bytes |
request_key_auth-type.h | -rw-r--r-- | 747 bytes |
rxrpc-type.h | -rw-r--r-- | 2.3 KB |
system_keyring.h | -rw-r--r-- | 2.5 KB |
trusted-type.h | -rw-r--r-- | 2.2 KB |
trusted_tee.h | -rw-r--r-- | 286 bytes |
trusted_tpm.h | -rw-r--r-- | 2.7 KB |
user-type.h | -rw-r--r-- | 1.9 KB |
Computing file changes ...