[RT PATCH 1/2 v2] kernel/cpu_chill: use schedule_hrtimeout()

2018-03-16 Thread Sebastian Andrzej Siewior
If a task calls cpu_chill() and gets woken up by a regular or spurious wakeup and has a signal pending, then it exits the sleep loop in do_nanosleep() and sets up the restart block. If restart->nanosleep.type is not TI_NONE then this results in accessing a stale user pointer from a previously

[RT PATCH 1/2 v2] kernel/cpu_chill: use schedule_hrtimeout()

2018-03-16 Thread Sebastian Andrzej Siewior
If a task calls cpu_chill() and gets woken up by a regular or spurious wakeup and has a signal pending, then it exits the sleep loop in do_nanosleep() and sets up the restart block. If restart->nanosleep.type is not TI_NONE then this results in accessing a stale user pointer from a previously