]> git.ipfire.org Git - people/arne_f/kernel.git/commit
sched/fair: Do not announce throttled next buddy in dequeue_task_fair()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 16 Jun 2016 12:57:15 +0000 (15:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:12 +0000 (14:30 +0200)
commitf01ae9cb0de282abfd20cd3c2e3477adbdb766ce
treececeea4824d9f4b28b8d89c5038e6fad5f576dbd
parentae3d7b8931eb3151d8ad4fb8be6fe885000d3838
sched/fair: Do not announce throttled next buddy in dequeue_task_fair()

commit 754bd598be9bbc953bc709a9e8ed7f3188bfb9d7 upstream.

Hierarchy could be already throttled at this point. Throttled next
buddy could trigger a NULL pointer dereference in pick_next_task_fair().

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ben Segall <bsegall@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/146608183552.21905.15924473394414832071.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>
kernel/sched/fair.c