android_kernel_samsung_a7y1.../include
Matthew Wilcox 09b97fd4d2 fs: prevent page refcount overflow in pipe_buf_get
commit 15fab63e1e57be9fdb5eec1bbc5916e9825e9acb 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>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[ 4.4.y backport notes:
  Regarding the change in generic_pipe_buf_get(), note that
  page_cache_get() is the same as get_page(). See mainline commit
  09cbfeaf1a5a6 "mm, fs: get rid of PAGE_CACHE_* and
  page_cache_{get,release} macros" for context. ]
Signed-off-by: Ajay Kaher <akaher@vmware.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:09:48 +02:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kvm
linux fs: prevent page refcount overflow in pipe_buf_get 2020-04-07 14:09:48 +02:00
math-emu
media
memory
misc
net net: sched: correct flower port blocking 2020-04-07 14:04:39 +02:00
pcmcia
ras
rdma
rxrpc
scsc
scsi scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session" 2020-04-07 14:03:54 +02:00
sdp
soc
sound ALSA: rawmidi: Avoid bit fields for state flags 2020-04-07 14:03:58 +02:00
target
trace tracing: xen: Ordered comparison of function pointers 2020-04-07 13:45:00 +02:00
uapi
video
xen
Kbuild