commit | 59da76a1713f7fd82d9c18ec72be99085b557027 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Tue May 19 14:50:37 2020 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 01 13:14:44 2020 +0200 |
tree | 9068b0a52e5d4cd1adc802cb954f036fbbff2d3a | |
parent | 4b15f7b21cac8595216a69044876441fad3179b9 [diff] |
fuse: don't check refcount after stealing page [ Upstream commit 32f98877c57bee6bc27f443a96f49678a2cd6a50 ] 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 <willy@infradead.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>