Re: [PATCH][v2] timekeeping: Fix memory overwrite of sleep_time_bin array

Thomas Gleixner
2016-07-29T13:01:32Z

On Fri, 29 Jul 2016, Chen Yu wrote:
> On Tue, Jul 19, 2016 at 12:40:14PM +0200, Thomas Gleixner wrote:
> 1st is to bypass the sleep time if pm_trace is involved(a little complicated
> because it needs to deal with historical pm_trace), or
>
> 2nd version is to introduce a sysfs interface to allow the
> users to specify the threshold of sleep time, any delta
> of tsc bigger than the threshold would be regarded as invalid.

That one is really overkill. We provide a proper sanity measure for this and
be done with it.

Thanks,

tglx