OSDN Git Service

sched: walt: fix out-of-bounds access
authorJohn Dias <joaodias@google.com>
Fri, 22 Jun 2018 19:27:38 +0000 (12:27 -0700)
committerPavankumar Kondeti <pkondeti@codeaurora.org>
Wed, 8 Aug 2018 03:39:01 +0000 (09:09 +0530)
commitbd4ac8e584ed7e2e79acc72afcdd63a4b6937327
tree895128d62882e689195754722f01e3c28b49871d
parent42570c93eca94652aa82f2c880004789606bbbe7
sched: walt: fix out-of-bounds access

A computation in update_top_tasks() is indexing
off the end of a top_tasks array. There's code
to limit the index in the computation, but it's
insufficient.

Bug: 110529282
Change-Id: Idb5ff5e5800c014394bcb04638844bf1e057a40c
Signed-off-by: John Dias <joaodias@google.com>
[pkondeti@codeaurora.org: Backported to 4.4 for HMP scheduler]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
kernel/sched/hmp.c