mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]>
This commit is contained in:
1 parent
a5005c3cda
commit
32f98877c5
1 file changed
-1
@@ -764,7 +764,6 @@ static int fuse_check_page(struct page *page)
|
||||
{
|
||||
if (page_mapcount(page) ||
|
||||
page->mapping != NULL ||
|
||||
page_count(page) != 1 ||
|
||||
(page->flags & PAGE_FLAGS_CHECK_AT_PREP &
|
||||
~(1 << PG_locked |
|
||||
1 << PG_referenced |
|
||||
|
||||
Reference in new issue
Block a user