android_kernel_samsung_univ.../kernel/sched
Konstantin Khlebnikov ada79b5ecd sched/fair: Initialize throttle_count for new task-groups lazily
commit 094f469172e00d6ab0a3130b0e01c83b3cf3a98d upstream.

Cgroup created inside throttled group must inherit current throttle_count.
Broken throttle_count allows to nominate throttled entries as a next buddy,
later this leads to null pointer dereference in pick_next_task_fair().

This patch initialize cfs_rq->throttle_count at first enqueue: laziness
allows to skip locking all rq at group creation. Lazy approach also allows
to skip full sub-tree scan at throttling hierarchy (not in this patch).

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bsegall@google.com
Link: http://lkml.kernel.org/r/146608182119.21870.8439834428248129633.stgit@buzz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Ben Pineau <benjamin.pineau@mirakl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-25 14:30:12 +02:00
..
auto_group.c
auto_group.h
clock.c treewide: Remove old email address 2015-11-23 09:44:58 +01:00
completion.c
core.c sched/core: Fix a race between try_to_wake_up() and a woken up task 2016-09-24 10:07:42 +02:00
cpuacct.c
cpuacct.h
cpudeadline.c
cpudeadline.h
cpupri.c
cpupri.h
cputime.c sched/cputime: Fix NO_HZ_FULL getrusage() monotonicity regression 2016-09-07 08:32:41 +02:00
deadline.c sched/rt: Add a missing rescheduling point 2017-03-31 09:49:54 +02:00
debug.c
fair.c sched/fair: Initialize throttle_count for new task-groups lazily 2017-05-25 14:30:12 +02:00
features.h
idle_task.c
idle.c
loadavg.c sched/loadavg: Fix loadavg artifacts on fully idle and on fully loaded systems 2016-06-01 12:15:49 -07:00
Makefile
rt.c sched/rt: Add a missing rescheduling point 2017-03-31 09:49:54 +02:00
sched.h sched/fair: Initialize throttle_count for new task-groups lazily 2017-05-25 14:30:12 +02:00
stats.c
stats.h
stop_task.c
wait.c sched/wait: Fix the signal handling fix 2015-12-13 14:30:59 -08:00