]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: provide block_invalidate_folio to fix memory leak
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 30 May 2022 11:36:45 +0000 (13:36 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 1 Jun 2022 10:10:19 +0000 (13:10 +0300)
commit30d469342bbd3c5d6c83473550515e85562c65cb
treeca60d667c136dc79e97f607786db8077656b83c2
parent70fc2abaed6e9bc3740605858b47425dbb5d849a
fs/ntfs3: provide block_invalidate_folio to fix memory leak

The ntfs3 filesystem lacks the 'invalidate_folio' method and it causes
memory leak. If you write to the filesystem and then unmount it, the
cached written data are not freed and they are permanently leaked.
Fixes: 992bec9b6044 ("fs: Turn block_invalidatepage into block_invalidate_folio")
Reported-by: José Luis Lara Carrascal <manualinux@yahoo.es>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: stable@vger.kernel.org # v5.18
fs/ntfs3/inode.c