android_kernel_samsung_msm8976/kernel/trace
Peter Zijlstra 312791575c trace: Fix preempt_enable_no_resched() abuse
commit d6097c9e4454adf1f8f2c9547c2fa6060d55d952 upstream.

Unless the very next line is schedule(), or implies it, one must not use
preempt_enable_no_resched(). It can cause a preemption to go missing and
thereby cause arbitrary delays, breaking the PREEMPT=y invariant.

Link: http://lkml.kernel.org/r/20190423200318.GY14281@hirez.programming.kicks-ass.net

Cc: Waiman Long <longman@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: the arch/x86 maintainers <x86@kernel.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: huang ying <huang.ying.caritas@gmail.com>
Cc: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: stable@vger.kernel.org
Fixes: 2c2d7329d8 ("tracing/ftrace: use preempt_enable_no_resched_notrace in ring_buffer_time_stamp()")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-27 22:10:40 +02:00
..
Kconfig
Makefile
blktrace.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ftrace.c
gpu-traces.c
ipc_logging.c
ipc_logging_debug.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ipc_logging_private.h
msm_rtb.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
power-traces.c tracing: power: Add trace events for core control 2015-01-22 17:31:16 -08:00
ring_buffer.c trace: Fix preempt_enable_no_resched() abuse 2019-07-27 22:10:40 +02:00
ring_buffer_benchmark.c ring-buffer-benchmark: Fix the wrong sched_priority of producer 2015-06-22 16:55:53 -07:00
rpm-traces.c
trace.c tracing: kdb: Fix ftdump to not sleep 2019-07-27 22:10:01 +02:00
trace.h kernel: use macros from compiler.h instead of __attribute__((...)) 2019-07-27 22:10:27 +02:00
trace_branch.c tracing: Have branch tracer use recursive field of task struct 2015-08-03 09:29:45 -07:00
trace_clock.c
trace_cpu_freq_switch.c
trace_entries.h
trace_event_perf.c trace: prevent NULL pointer dereference 2016-02-04 20:58:31 -08:00
trace_events.c tracing: Fix showing function event in available_events 2016-03-03 15:06:24 -08:00
trace_events_filter.c tracing/filter: Do not allow infix to exceed end of string 2015-08-03 09:29:45 -07:00
trace_events_filter_test.h
trace_export.c
trace_functions.c
trace_functions_graph.c
trace_irqsoff.c tracing: Have preempt(irqs)off trace preempt disabled functions 2016-06-07 10:42:47 +02:00
trace_kdb.c tracing: kdb: Fix ftdump to not sleep 2019-07-27 22:10:01 +02:00
trace_kprobe.c
trace_mmiotrace.c
trace_nop.c
trace_output.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
trace_output.h
trace_printk.c tracing: Handle NULL formats in hold_module_trace_bprintk_format() 2019-07-27 21:41:55 +02:00
trace_probe.c
trace_probe.h
trace_sched_switch.c
trace_sched_wakeup.c sched/deadline: Add SCHED_DEADLINE inheritance logic 2015-05-19 19:16:01 -07:00
trace_selftest.c sched/deadline: Add latency tracing for SCHED_DEADLINE tasks 2015-05-19 19:16:00 -07:00
trace_selftest_dynamic.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c tracing/syscalls: Ignore numbers outside NR_syscalls' range 2014-11-14 08:47:53 -08:00
trace_uprobe.c