summaryrefslogtreecommitdiff
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authorDavid Stevens <stevensd@chromium.org>2023-04-18 11:40:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-20 19:02:03 +0300
commit7a4ae7acd20805940307be98b304871a43288a01 (patch)
treeb81edbd63897d52340624475f666a6e174cdbe28 /.rustfmt.toml
parenta107d6a132cbb596afa648f588f0078713ad46e9 (diff)
downloadlinux-7a4ae7acd20805940307be98b304871a43288a01.tar.xz
mm/shmem: fix race in shmem_undo_range w/THP
commit 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 upstream. Split folios during the second loop of shmem_undo_range. It's not sufficient to only split folios when dealing with partial pages, since it's possible for a THP to be faulted in after that point. Calling truncate_inode_folio in that situation can result in throwing away data outside of the range being targeted. [akpm@linux-foundation.org: tidy up comment layout] Link: https://lkml.kernel.org/r/20230418084031.3439795-1-stevensd@google.com Fixes: b9a8a4195c7d ("truncate,shmem: Handle truncates that split large folios") Signed-off-by: David Stevens <stevensd@chromium.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Suleiman Souhlal <suleiman@google.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions