Skip to content

Commit 32f9887

Browse files
author
Miklos Szeredi
committed
fuse: don't check refcount after stealing page
page_count() is unstable. Unless there has been an RCU grace period between when the page was removed from the page cache and now, a speculative reference may exist from the page cache. Reported-by: Matthew Wilcox <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent a5005c3 commit 32f9887

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/fuse/dev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,6 @@ static int fuse_check_page(struct page *page)
764764
{
765765
if (page_mapcount(page) ||
766766
page->mapping != NULL ||
767-
page_count(page) != 1 ||
768767
(page->flags & PAGE_FLAGS_CHECK_AT_PREP &
769768
~(1 << PG_locked |
770769
1 << PG_referenced |

0 commit comments

Comments
 (0)