]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: don't check refcount after stealing page
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:37 +0000 (14:50 +0200)
commitb7d61182afe188352ebba6c7a423a853dbef1639
tree0c4e6a0e64dc7ba0920c961432172518b6aa6b37
parent04ea87593de4fba53eeaf3c779ac1df6b474e581
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 <willy@infradead.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c