Boundary condition fixes for bugs unearthed by the perf fuzzer.

Signed-off-by: Ingo Molnar <mingo@kernel.org>