From: Patrick McLean <chutzpah@gentoo.org>
To: Andrew Savchenko <bircoph@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Signed push & clock drift rejection
Date: Tue, 19 Jul 2016 13:28:20 -0700 [thread overview]
Message-ID: <20160719132820.4856dfd3@patrickm> (raw)
In-Reply-To: <20160719132229.598ccee8@patrickm>
On Tue, 19 Jul 2016 13:22:29 -0700
Patrick McLean <chutzpah@gentoo.org> wrote:
> On Tue, 19 Jul 2016 21:23:16 +0300
> Andrew Savchenko <bircoph@gentoo.org> wrote:
> > On Mon, 18 Jul 2016 22:21:22 -0400 waltdnes@waltdnes.org wrote:
> > > On Mon, Jul 18, 2016 at 11:27:09PM +0300, Andrew Savchenko
> > > wrote
> > > >
> > > > As I wrote earlier in this thread, ntp server is not a guarantee
> > > > that such problems will not happen. If hardware clocked was
> > > > significantly offset during boot, it may take several _hours_
> > > > for ntp to fix this via clock skew. Apparantly commit may be
> > > > made during these several hours.
> > >
> > > I'm amazed that "robust linux servers" are deathly afraid of
> > > simply setting the time, and being done with it. And while we're
> > > at it, if a developer is doing development on a server machine,
> > > he may have other problems to worry about. At home I occasionally
> > > manually run a script that includes the 2 lines...
> >
> > I never said anything about "robust linux servers". If you think
> > than only servers need a gradual clock slew instead of stepping,
> > you are mistaken.
> >
> > > /usr/bin/sudo /usr/bin/openrdate -n -s ca.pool.ntp.org
> > > /usr/bin/sudo /sbin/hwclock --systohc
> >
> > And if time delta is significant, the system may become broken
> > this way. Congratulations.
>
> Really? I have many times skewed time by weeks using ntpdate with no
> issues.
>
> > The gradual NTP time slew was not invented because people were lazy
> > to run two simple commands. Actually it is just the opposite:
> > setting system time via a single huge step is much easier to
> > implement than a proper adjustment via a series of small time slews.
> > For servers it is indeed important in many ways, including
> > time stamp based cryptography as kerberos or database integrity.
>
> Sure randomly skewing time can cause weird issues, which is why it is
> a manual operation (and/or boot time operation).
>
> >
> > But desktops also do need a proper time adjustment:
> > - Filesystems will not operate correctly with time stamps in
> > future, in the best keys they will be marked/reported as needed a
> > repair procedure.
>
> I have only ever seen ext4 complain about the superblock timestamp,
> and fsck generally just corrects without issue, and it generally is
> only an issue after a reboot.
>
> > - Cron jobs may go broken too as chithanh mentioned already.
>
> Get a better crond? Decent cron daemons can detect time skews and act
> accordingly.
>
> > - Video encoding is not happy with time shifts at all. While small
> > predictable slews can be tolerated, large jumps will just broke the
> > process.
>
> Anything that cares about having a monotonic clock, and doesn't
> actually care about the real time (like video encoding) should just
> use the monotonic clock, not the system time.
>
> > - System may become *vulnerable* because of time stamp based attack.
> > Though it is not easy to use such behaviour, it is still possible.
>
> Once again, monotonic clock exists for a reason. If you want to
> talk about vulnerabilities, you do realize that doesn't work properly
> unless the client and server have reasonably similar system times.
>
Err, SSL doesn't work properly.
> > - and many more...
> >
> > Best regards,
> > Andrew Savchenko
>
>
next prev parent reply other threads:[~2016-07-19 20:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 18:03 [gentoo-dev] Signed push & clock drift rejection Robin H. Johnson
2016-07-16 9:33 ` Andrew Savchenko
2016-07-18 1:12 ` Rafael Goncalves Martins
2016-07-18 20:03 ` Marc Schiffbauer
2016-07-18 20:27 ` Andrew Savchenko
2016-07-19 2:21 ` waltdnes
2016-07-19 2:37 ` Kent Fredric
2016-07-19 8:07 ` Chí-Thanh Christopher Nguyễn
2016-07-19 11:29 ` waltdnes
2016-07-19 15:42 ` Chí-Thanh Christopher Nguyễn
2016-07-19 18:23 ` Andrew Savchenko
2016-07-19 19:28 ` R0b0t1
2016-07-19 20:22 ` Patrick McLean
2016-07-19 20:28 ` Patrick McLean [this message]
2016-07-19 20:34 ` Alec Warner
2016-07-18 21:25 ` james
2016-07-18 23:06 ` Mart Raudsepp
2016-07-18 23:34 ` Bill Kenworthy
2016-07-19 8:09 ` Andrew Savchenko
2016-07-19 15:46 ` Michał Górny
2016-07-18 20:35 ` Ulrich Mueller
2016-07-18 21:20 ` Rich Freeman
2016-07-19 17:20 ` Andrew Savchenko
2016-07-19 11:31 ` Consus
2016-07-19 20:22 ` Alec Warner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160719132820.4856dfd3@patrickm \
--to=chutzpah@gentoo.org \
--cc=bircoph@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox