Re: linux-next boot error: general protection fault in __x64_sys_settimeofday
From: Arnd Bergmann
Date: Thu Nov 14 2019 - 08:22:26 EST
On Thu, Nov 14, 2019 at 1:43 PM Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
>
> On Thu, Nov 14, 2019 at 1:42 PM Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
> >
> > On Thu, Nov 14, 2019 at 1:35 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> > >
> > > On Thu, 14 Nov 2019, syzbot wrote:
> > >
> > > From the full console output:
> >
> > Urgently need +Jann's patch to better explain these things!
>
> +Arnd, this does not look right:
>
> commit adde74306a4b05c04dc51f31a08240faf6e97aa9
> Author: Arnd Bergmann <arnd@xxxxxxxx>
> Date: Wed Aug 15 20:04:11 2018 +0200
>
> y2038: time: avoid timespec usage in settimeofday()
> ...
>
> - if (!timeval_valid(&user_tv))
> + if (tv->tv_usec > USEC_PER_SEC)
> return -EINVAL;
Thanks for the report!
I was checking the wrong variable, fixed now,
should push it out to my y2038 branch in a bit.
Arnd