Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754883AbbLDCHF (ORCPT ); Thu, 3 Dec 2015 21:07:05 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:31261 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753079AbbLDCHD (ORCPT ); Thu, 3 Dec 2015 21:07:03 -0500 Subject: Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm To: Alexandre Belloni References: <1449187944-11730-1-git-send-email-sasha.levin@oracle.com> <20151204015554.GB3515@piout.net> Cc: a.zummo@towertech.it, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org From: Sasha Levin Message-ID: <5660F533.1070705@oracle.com> Date: Thu, 3 Dec 2015 21:06:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151204015554.GB3515@piout.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 20 On 12/03/2015 08:55 PM, Alexandre Belloni wrote: > On 03/12/2015 at 19:12:24 -0500, Sasha Levin wrote : >> > At some point after humans go extinct and robots cotrol the world, dividing >> > he time64_t by 86400 to extract the days will overflow a 32bit integer, >> > leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). >> > > And at that time, the robots won't care about 32bit platforms :) One can only hope... :) I'll resend. Thanks, Sasha -- 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/