Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757427AbZAGOQS (ORCPT ); Wed, 7 Jan 2009 09:16:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752552AbZAGOQH (ORCPT ); Wed, 7 Jan 2009 09:16:07 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:50188 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752823AbZAGOQE (ORCPT ); Wed, 7 Jan 2009 09:16:04 -0500 Date: Wed, 7 Jan 2009 14:10:25 +0000 From: Alan Cox To: David Newall Cc: Nick Andrew , Linas Vepstas , david@lang.hm, Kyle Moffett , Ben Goodger , Robert Hancock , linux-kernel@vger.kernel.org, "Jeffrey J. Kosowsky" , MentalMooMan , Travis Crump , burdell@iruntheinter.net Subject: Re: Bug: Status/Summary of slashdot leap-second crash on new years 2008-2009 Message-ID: <20090107141025.143158b7@lxorguk.ukuu.org.uk> In-Reply-To: <4964B20B.4030406@davidnewall.com> References: <496076A9.7030907@davidnewall.com> <4960897D.5030603@davidnewall.com> <4961432A.80509@davidnewall.com> <49614835.7000505@davidnewall.com> <3ae3aa420901042148o1c96985dube8e03085c997a07@mail.gmail.com> <20090105143335.GC18055@mail.local.tull.net> <4962BB13.7060304@davidnewall.com> <20090106025125.GB28431@mail.local.tull.net> <20090106094058.64c89586@lxorguk.ukuu.org.uk> <496479EA.1020207@davidnewall.com> <20090107095419.70b78dc7@lxorguk.ukuu.org.uk> <49648163.9060007@davidnewall.com> <20090107105201.054c011f@lxorguk.ukuu.org.uk> <4964B20B.4030406@davidnewall.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 21 > > The RTC stores the CMOS time in MM DD YY HH:MM:SS format. > > Yes, which is perfect for mktime(), which knows about leap seconds and > so produces the correct time_t. mktime in the kernel has no knowledge of leap seconds whatsoever. Go read kernel/time.c > different understanding. I thought it was said that there's kernel > support to handle the leap second flag in NTP's broadcasts, and that > that was where the bug was. All the kernel knows how to do is to slew time (in general) and to repeat or remove one second. It has no knowledge of leap seconds and it doesn't know how to convert between UTC/TAI/Unix Epoch etc -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/