android_kernel_samsung_a7y1.../kernel/trace
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
..
blktrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bpf_trace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.c ftrace: Avoid potential division by zero in function profiler 2020-04-07 13:24:49 +02:00
gpu-traces.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power-traces.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ring_buffer_benchmark.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ring_buffer.c trace: Fix preempt_enable_no_resched() abuse 2020-04-06 16:38:41 +02:00
rpm-traces.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_benchmark.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_benchmark.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_branch.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_clock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_entries.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_event_perf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_events_filter_test.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_events_filter.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_events_trigger.c trigger_next should increase position index 2020-04-07 13:57:16 +02:00
trace_events.c tracing: Fix partial reading of trace event's id file 2020-04-06 18:14:00 +02:00
trace_export.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_functions_graph.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_functions.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_irqsoff.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_kdb.c tracing: Silence GCC 9 array bounds warning 2020-04-06 19:14:20 +02:00
trace_kprobe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_mmiotrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_nop.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_output.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_output.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_printk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_probe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_probe.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_sched_switch.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_sched_wakeup.c kernel/trace: Fix do not unregister tracepoints when register sched_migrate_task fail 2020-04-07 13:29:35 +02:00
trace_selftest_dynamic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_selftest.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_seq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_stack.c tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined 2020-04-07 13:29:37 +02:00
trace_stat.c tracing: Fix very unlikely race of registering two stat tracers 2020-04-07 13:55:56 +02:00
trace_stat.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_syscalls.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_uprobe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace.c fs: prevent page refcount overflow in pipe_buf_get 2020-04-07 14:09:48 +02:00
trace.h tracing: Silence GCC 9 array bounds warning 2020-04-06 19:14:20 +02:00