Files
twx-linux/kernel
Matthew Wilcox 9557090582 fs: prevent page refcount overflow in pipe_buf_get
commit 15fab63e1e upstream.

Change pipe_buf_get() to return a bool indicating whether it succeeded
in raising the refcount of the page (if the thing in the pipe is a page).
This removes another mechanism for overflowing the page refcount.  All
callers converted to handle a failure.

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 4.9: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-11 12:22:45 +02:00
..
2019-05-16 19:43:40 +02:00
2017-09-02 07:07:53 +02:00
…
2019-05-31 06:48:20 -07:00
…
…
…
…
…
…
2019-01-13 10:03:51 +01:00
…
…
2018-08-03 07:55:12 +02:00
…
…
…
…
2017-05-20 14:28:40 +02:00
…
…
…
…
…
2018-08-03 07:55:24 +02:00
…
…
2018-05-09 09:50:20 +02:00
…
…
…
2016-09-22 20:00:36 -05:00