aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-07-23 22:50:17 +0000
committerLinus Torvalds <[email protected]>2021-07-24 00:43:28 +0000
commit8dad53a11f8d94dceb540a5f8f153484f42be84b (patch)
treeed9848784ee4edb85c760823501df4dc5be134a8 /lib/debugobjects.c
parentkfence: skip all GFP_ZONEMASK allocations (diff)
downloadkernel-8dad53a11f8d94dceb540a5f8f153484f42be84b.tar.gz
kernel-8dad53a11f8d94dceb540a5f8f153484f42be84b.zip
mm: call flush_dcache_page() in memcpy_to_page() and memzero_page()
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/[email protected] 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 <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Cc: Chaitanya Kulkarni <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions