From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752759AbcFURRv (ORCPT ); Tue, 21 Jun 2016 13:17:51 -0400 Received: from mail.eperm.de ([89.247.134.16]:37718 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbcFURRs (ORCPT ); Tue, 21 Jun 2016 13:17:48 -0400 From: Stephan Mueller To: John Stultz Cc: Arnd Bergmann , Herbert Xu , Alexander Kuleshov , y2038 Mailman List , lkml , linux-crypto@vger.kernel.org, "David S. Miller" , Kees Cook Subject: Re: [Y2038] [PATCH] crypto: use timespec64 for jent_get_nstime Date: Tue, 21 Jun 2016 19:16:15 +0200 Message-ID: <2228716.yrSLSS60Ke@tauon.atsec.com> User-Agent: KMail/4.14.10 (Linux/4.4.9-300.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: References: <20160617155952.1021006-1-arnd@arndb.de> <12040808.ISNuLM4SqW@tauon.atsec.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 21. Juni 2016, 10:12:24 schrieb John Stultz: Hi John, > > So this is definitely more clear then what was described earlier, and > worries me because on many x86 machines (though fewer I guess these > days then in the past) the clocksource will often not be the TSC (and > have lower resolution). Please note, the use of the ktime_get_raw_ns() is *only* used as a fallback on architectures where random_get_entropy / get_cycles is not implemented. So, on X86 and on many other arches, this function call will never be triggered. ... > > But please just make sure the reason why you're using that specific > interface is clearly documented in the code so we don't have to later > reverse engineer the intent. Will do. @Arnd: I would prepare a patch then using ktime_get_raw_ns and providing a good documentation in the code. Ciao Stephan