Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4261506imb; Wed, 6 Mar 2019 09:04:49 -0800 (PST) X-Google-Smtp-Source: APXvYqw8TIAqLY65Uzxwovg+9JaphlYUjNHRqRMYq8PephV/SZ9h82kGdxJAssHd8Qy5oii1NApP X-Received: by 2002:a63:ff1d:: with SMTP id k29mr7198927pgi.258.1551891889126; Wed, 06 Mar 2019 09:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551891889; cv=none; d=google.com; s=arc-20160816; b=WX9YLoNnh6kW1rGNqMJG9wmouK6dienN5jYZpDC9lMAMUmkeNnpyWvCWTZ+VnVSk+H YpkdaPk0Z590NoyPqW70cp9QVYoBrX8gOIY0nbqNFy+FGm7llF82d/KSHK+h16uMOGXU IHjgHFGpFeM9d8WB8O1FYib+YheHc39RtDOUNfvqEO6EH8NfCsTxz+g2P0Q+5Kv1fkAD rPdLN6nIdKAna5FXq26iSyQi68ymPYFKhVz1mScfiuniTIK51dXxE6UihjNYda6nXi8i mnQWsDt35HcOvrBbooi0MOgH3/cDyMGeF3eEEfcmknRPZeI1uaV3fz5N7j8K3PsVrogu BYhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=m3aSfJJJ8m1fpSiwYywB971Ba62TWMm4dkGWM4MFHBo=; b=VScqnrzyMpr4DtPlXnnrl9R0t0bMVNHU0AJ4nwkprqIXX1GoZ563fhZwPK0ML38h9k /hLbDyRIHGOWP9eRLwjRx+2RxNDH7x7jUom3FoKlvIiYfYk3rb2IMGl71o3YJxaRBNxg UJbCt7c6KvKElOp/+Ew9XvqaM37XmhiY9yaO3qc1Sru8GBMTxficATvrmjzlt/O0T7UW IoYw+lk5uAE5xaaQQXAb6tHPGoa1+TTjJrgBa2KetUekrIrf0Z4bAHD14mkY3gtEbCHm KClwKgsg5WproPdzwZKL7myLysGAqpEiB4L88HkddBRRJbE5lWbVqvGuSQjMT/CuK2qF YEdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si1785663pgh.258.2019.03.06.09.04.33; Wed, 06 Mar 2019 09:04:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727470AbfCFNhj (ORCPT + 99 others); Wed, 6 Mar 2019 08:37:39 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39655 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfCFNhj (ORCPT ); Wed, 6 Mar 2019 08:37:39 -0500 Received: by mail-qt1-f193.google.com with SMTP id o6so12768270qtk.6 for ; Wed, 06 Mar 2019 05:37:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m3aSfJJJ8m1fpSiwYywB971Ba62TWMm4dkGWM4MFHBo=; b=CBEFgS2PKVALdiZoqIhqKOPnEJUWlILr6PZU2xgTbPupV2pavfBeLM5tCG2KALyw47 KFOdICbef2X8WjF10o9HNDvvOVWRdXm+nOxEAgoPiJRAakPWPigkosLe690OTaQ5hS8N q6hiKkrTbKEiKjex+B8fI1/eKr/dhIoPlUJIGCe5mOQ1Hp0ULb+WoxJiaSfNWZhn04Pb QVQzF8UKbHlSI/nFoZfJexNv1FjNWH8c40ZQfV0Lpb8devvW5PbS2cdGxDzoi8Ut4X4t wroRHl4MdjeFWWCemUPCqUzKWMUNr6NwAMrZ/XgrJHg/OVHvNo/pwoF6DkqcW0EZzFES +97Q== X-Gm-Message-State: APjAAAWokq5IgvNLc2cs0h98qVuSNjNfyU5/tQmzppLngQtawVQAIzMz O8w/375IEXgS6PvoSyD+A4Xaf5+cWfp00uBUlKXPsQ== X-Received: by 2002:a0c:81ee:: with SMTP id 43mr6132725qve.180.1551879458196; Wed, 06 Mar 2019 05:37:38 -0800 (PST) MIME-Version: 1.0 References: <1551835710-53773-1-git-send-email-wangxiongfeng2@huawei.com> <20190306095442.GM21520@localhost> In-Reply-To: From: Arnd Bergmann Date: Wed, 6 Mar 2019 14:37:21 +0100 Message-ID: Subject: Re: [RFC PATCH] ntp: Avoid undefined behaviour in second_overflow() To: Thomas Gleixner Cc: Miroslav Lichvar , John Stultz , Xiongfeng Wang , Stephen Boyd , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 6, 2019 at 1:29 PM Thomas Gleixner wrote: > On Wed, 6 Mar 2019, Miroslav Lichvar wrote: > > On Tue, Mar 05, 2019 at 05:42:25PM -0800, John Stultz wrote: > So once Arnd is done with y2038, we'll ask him to look into y2262 :) There is also y2070 (many RTCs), y2100 (some other RTCs, especially those that assume it's a leap year), and y2106. Arnd