Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3322491ybc; Mon, 25 Nov 2019 12:31:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxn9ioTHn++pu4HEw4Tdac9jbTG/JiSBm7DnExiwctUWxfVBn/uP3xyRjJxXkXqsDtF3M7R X-Received: by 2002:a17:906:4b48:: with SMTP id j8mr39466366ejv.101.1574713904854; Mon, 25 Nov 2019 12:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574713904; cv=none; d=google.com; s=arc-20160816; b=lICrXM3NoSosnRjgZ1ITY6XPiXRK5aBvqCdT9pTZnnQJxi73KXlhMGgNuT3+VVYcHP A/Bm58/TAr62DTHiSWNYtqnCmrFdYDqM85SO4odANwnZyfsoSBkLL/g3Jm3jKVe39PUl HYHRFKnL9jdi9k3jZcSg63slcD3fjBGHi8UqvW7tTDN1N2yFExR5uUViBH1vMJ6mHmfR p/RSrbLmA9SEG2adbluUqt4KoLPURW0rguF7cVMlNwDwixyZR5sUcm611b5KOzBEil/d jCE4JEQTK+YykIr5SrF+XHvZm3laHwn6RcbDOXlkxDkcgpUWmr8iypFD9gckpETODxYH lIhA== 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=3rRit9JKa3SBzG7XsUIqjEmv54xxA0oxSFJzQ00U4NM=; b=Z2YVFswubmOXt4kUcsR9ipHoGs7HbmFucFVxyrnblveqsgW+tRRvrSiN9jt2qXLvBD bIT8//NVRRTF9ucwpipJQxUIrPD5/qnWAIdqD80MxaNJ+U3m2Mb/vJ4ETuWtSblekiBZ TmUo0/c9qcqon/3+HGw70OEyzh7muBCFmtd8LdJOaRyRQ5NGKI+4LTIEh8oWkT/irssj SLN6Lu4yUZj1+zypunxtZclXaV1FfdeoLGD7w7MGETAx0c6vPNI2DTqerLKWUuVE2+kd 8a1axiN275+YgRHQe0Lkd9W2VAa/MTbjTwSQCi2VBq0n7agBuucfAwudXkMA9fhSRj4L NmxQ== 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 g56si5956246eda.120.2019.11.25.12.31.20; Mon, 25 Nov 2019 12:31:44 -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 S1726333AbfKYU0l (ORCPT + 99 others); Mon, 25 Nov 2019 15:26:41 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:43235 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbfKYU0l (ORCPT ); Mon, 25 Nov 2019 15:26:41 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MODeL-1iBSJ70sZ7-00Oba1 for ; Mon, 25 Nov 2019 21:26:40 +0100 Received: by mail-qt1-f179.google.com with SMTP id 14so18746677qtf.5 for ; Mon, 25 Nov 2019 12:26:40 -0800 (PST) X-Gm-Message-State: APjAAAXXARep5FyAiHky2zPWyAveOdx8I+NsfzclJUmGmsbzDOq5CsyW ro8Nehm2yfOTic4QmknYPdvB5z3IA6Poc499qPE= X-Received: by 2002:ac8:75c4:: with SMTP id z4mr30171906qtq.142.1574713599198; Mon, 25 Nov 2019 12:26:39 -0800 (PST) MIME-Version: 1.0 References: <20191108210236.1296047-1-arnd@arndb.de> <20191108211323.1806194-12-arnd@arndb.de> <1634aafd2a99cedceb63efe57e4c7e0a7317917b.camel@codethink.co.uk> In-Reply-To: <1634aafd2a99cedceb63efe57e4c7e0a7317917b.camel@codethink.co.uk> From: Arnd Bergmann Date: Mon, 25 Nov 2019 21:26:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Y2038] [PATCH 21/23] y2038: itimer: change implementation to timespec64 To: Ben Hutchings Cc: y2038 Mailman List , Steven Rostedt , Ingo Molnar , Thomas Gleixner , Kees Cook , "Peter Zijlstra (Intel)" , Frederic Weisbecker , "linux-kernel@vger.kernel.org" , Anna-Maria Gleixner Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:EVtmBHZzCuyX0+E/a/5yJvDmvVB1xZ8zRtnMR1fjvMXrqV0yQIa zZO7pT/Huh7u8B7lVsGh07e1nCVdPNJ9kWBmBJhNXN8BF0fPgXZ/rjylRkHilIeyWvZRthM vTVt1nYdq1Z5Ohb2lWrS/vXcOPZq+wP5zW5H09PMMBdjbTDHFylWdFreqTr8G5V7fQzfyI9 Bdd0fkVa2OzGYTh9V+bzA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:DcN+Wtu4XiE=:bWvrv4ql9K1b2OnpQ3IVTF 6RcoNHcelotel/zyKvcHrvpVdZgWV2IA6M1PAEqQ4WAQAMh1VJwbqfE8W6Nzb2obH+SvlMtCx by5HosaPoWB0zTL2vF//EHORVCygTMXMmIiGiKu4D6ty30NIJg9lUZZkINnkyoRlhaxn0CmAI EBs53Yl0qO47oe8tD/W0M40FHYt9WIYQSNge5gYW/KUbLkFat92BXqvX9bk9nvUjIv78vxUba aSkRFyXdi/3IPFvQdq35FU5pQy9SPjCpEdbZmt9UgcXPDFgTTIV21Dv2HVk7z9NCMsh2naeGO eZCLx31H6yEOOejN2wqhN6WTbIkKM8x8xLG05sW15UjP7wfZjehapa+DZ6pNgjFXxcZ5xhnN8 jlN6P+tgDxLCLZbaOR1xlnozYy//MzsDrGn5gxrH/Q86XpAzywpP0uzNRRkJkY3T6Ixt/v4qN tDXj9Xi1aW84DFepCUJxLjd9OJjF8ikVIwxX4nQdZxdKWs5KCw6oU5iN2UlZOnjv+kTi81cb9 JMz70BICOfZeTXViK0bu3uvaQ1cOqLQD9dNhdWQxRo7HjwKpxO5zFQtWX9Bpt4/Xznmyj3fJh lhev6egRMAoZ0Mg/BVLvpDn5sMtKbAut9SEWXcgNgmndwkeXdRgFrzxhta+0pUQUhmIgjiTN+ KV1K5CmIaTd7gVXan3geKmATjyUuKOrJ5TDrmcCWtDBYmSmB3z3vNPhydnFIS55sW/D0irQrT /kjAliLTaNeC4LvkzERB2h2xXoCPQgAb5LGscNnMFIWFp+zGvfykAxkfUfnWDU6JpFQ4ZzGwm LT8k/6zrgCR5N40kSt00Yq9+DsNr6Py+AqQuPUsx1kJAnVgB5FTM1bbh11mU90qILfXuHLbJB 2xiJtEdEY/fWNMceqn4w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 5:52 PM Ben Hutchings wrote: > > On Fri, 2019-11-08 at 22:12 +0100, Arnd Bergmann wrote: > [...] > > @@ -292,8 +296,8 @@ static unsigned int alarm_setitimer(unsigned int seconds) > > * We can't return 0 if we have an alarm pending ... And we'd > > * better return too much than too little anyway > > */ > > - if ((!it_old.it_value.tv_sec && it_old.it_value.tv_usec) || > > - it_old.it_value.tv_usec >= 500000) > > + if ((!it_old.it_value.tv_sec && it_old.it_value.tv_nsec) || > > + it_old.it_value.tv_nsec >= 500000) > [...] > > This is now off by a factor of 1000. It might be helpful to use > NSEC_PER_SEC / 2 here so no-one has to count the 0 digits. Fixed now, thanks a lot for pointing it out! Arnd