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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <46AFA78A.9010904@redhat.com>
Date:	Tue, 31 Jul 2007 17:20:10 -0400
From:	Chuck Ebbert <cebbert@...hat.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: pm_trace displays the wrong time from the RTC

When resuming, systems print this when booted on 07/31/07:

Date: 06/31/107

/drivers/base/power/trace.c::read_magic_time():
114	get_rtc_time(&time);
115	printk("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n",
116		time.tm_hour, time.tm_min, time.tm_sec,
117		time.tm_mon, time.tm_mday, time.tm_year);

include/asm-generic/rtc.h:
102         /*
103          * Account for differences between how the RTC uses the values
104          * and how they are defined in a struct rtc_time;
105          */
106         if (time->tm_year <= 69)
107                 time->tm_year += 100;
108 
109         time->tm_mon--;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ