Re: ktime_get_ts64() splat during resume

From: Thomas Gleixner
Date: Fri Jun 17 2016 - 07:56:15 EST


On Fri, 17 Jun 2016, Borislav Petkov wrote:
> look what I've found this morning during resume:
>
> [ 45.746236] BUG: unable to handle kernel done.
> [ 45.752542] NULL pointer dereference at 0000000000000001
> [ 45.752544] IP: [<0000000000000001>] 0x1

> static inline cycle_t timekeeping_get_delta(struct tk_read_base *tkr)
> {
> cycle_t cycle_now, delta;
>
> /* read clocksource */
> cycle_now = tkr->read(tkr->clock);
> ^^^^^^^^^^
>
> Ring any bells about something corrupting tk_core.timekeeper.tkr_mono or
> it being uninitialized after suspend?

It must be initialized otherwise you won't reach suspend. I have no idea how
that can happen.

Thanks,

tglx