sched/eevdf: Fix heap corruption more
authorPeter Zijlstra <peterz@infradead.org>
Tue, 17 Oct 2023 14:59:47 +0000 (16:59 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 18 Oct 2023 08:22:13 +0000 (10:22 +0200)
commitd2929762cc3f85528b0ca12f6f63c2a714f24778
treec4b2063229a785b424886511b4af1aced98e04cf
parent58720809f52779dc0f08e53e54b014209d13eebb
sched/eevdf: Fix heap corruption more

Because someone is a flaming idiot... and forgot we have current as
se->on_rq but not actually in the tree itself, and walking rb_parent()
on an entry not in the tree is 'funky' and KASAN complains.

Fixes: 8dafa9d0eb1a ("sched/eevdf: Fix min_deadline heap integrity")
Reported-by: 0599jiangyc@gmail.com
Reported-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218020
Link: https://lkml.kernel.org/r/CAJwJo6ZGXO07%3DQvW4fgQfbsDzQPs9xj5sAQ1zp%3DmAyPMNbHYww%40mail.gmail.com
kernel/sched/fair.c