From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] [net-next, v2] tcp: use monotonic timestamps for PAWS Date: Tue, 19 Jun 2018 16:38:11 -0700 Message-ID: References: <20180619123724.2535981-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: y2038@lists.linaro.org, Harsh Jain , Atul Gupta , Michael Werner , "Gustavo A. R. Silva" , Yuchung Cheng , Neal Cardwell , Soheil Hassas Yeganeh , Florian Westphal , Christoph Paasch , Lawrence Brakmo , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Arnd Bergmann , Herbert Xu , "David S. Miller" , Eric Dumazet , Alexey Kuznetsov , Hideaki YOSHIFUJI Return-path: In-Reply-To: <20180619123724.2535981-1-arnd@arndb.de> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 06/19/2018 05:36 AM, Arnd Bergmann wrote: > Using get_seconds() for timestamps is deprecated since it can lead > to overflows on 32-bit systems. While the interface generally doesn't > overflow until year 2106, the specific implementation of the TCP PAWS > algorithm breaks in 2038 when the intermediate signed 32-bit timestamps > overflow. > > > Signed-off-by: Arnd Bergmann > --- > v2: use time_before32()/time_after32() everywhere as suggested > Eric Dumazet Thanks a lot Arnd. Signed-off-by: Eric Dumazet