lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <57FEA996.3030004@gmx.de>
Date:   Wed, 12 Oct 2016 23:22:30 +0200
From:   Helge Deller <deller@....de>
To:     "john.stultz@...aro.org" <john.stultz@...aro.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-parisc@...r.kernel.org" <linux-parisc@...r.kernel.org>
Subject: timekeeping: Cycle offset (32) is larger than allowed by the
 'jiffies' clock's max_cycles value (10): time overflow danger

When enabling CONFIG_DEBUG_TIMEKEEPING, I see on kernel 4.8 git head
those warnings on the parisc architecture:

Linux version 4.8.0-64bit+ (deller@...0.box) (gcc version 4.9.2 20150212 (Red Hat Cross 4.9.2-5) (GCC) ) #516 SMP Wed Oct 12 22:52:58 CEST 2016
...
clocksource: cr16: mask: 0xffffffffffffffff max_cycles: 0xacf9151134, max_idle_ns: 440795214493 ns
WARNING: timekeeping: Cycle offset (32) is larger than allowed by the 'jiffies' clock's max_cycles value (10): time overflow danger
         timekeeping: Your kernel is sick, but tries to cope by capping time updates
WARNING: timekeeping: Cycle offset (42) is larger than allowed by the 'jiffies' clock's max_cycles value (10): time overflow danger
         timekeeping: Your kernel is sick, but tries to cope by capping time updates
...
At this stage the jiffies clocksource was not yet registered (at least not mentioned in the bootlog).
This warning happens over and over. Maybe it should be rate-limited too?

Comparing to 4.7 where CONFIG_DEBUG_TIMEKEEPING is not enabled I see:
root@...00:~# dmesg | grep clock
[    0.000000] clocksource: cr16: mask: 0xffffffffffffffff max_cycles: 0xcf914c9718, max_idle_ns: 440795231327 ns
[    0.873644] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    7.968087] clocksource: Switched to clocksource cr16

Am I somehow missing to initialize the max_cycles field of the jiffies clocksource
on the parisc architecture ?

Helge

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ