From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757380AbdJMI0Z (ORCPT ); Fri, 13 Oct 2017 04:26:25 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:48233 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbdJMI0U (ORCPT ); Fri, 13 Oct 2017 04:26:20 -0400 X-Google-Smtp-Source: ABhQp+TnVwovVzOdUY7jqN5s8Nj2RfMC2PRSm0jB9V9H46XLVxrilt/pe47FY+T5OanyV2jM7GPwrg== Subject: Re: [PATCH] kdb: use __ktime_get_real_seconds instead of __current_kernel_time To: Andrew Morton , Arnd Bergmann Cc: Jason Wessel , Thomas Gleixner , y2038@lists.linaro.org, John Stultz , Stephen Boyd , Andy Shevchenko , Deepa Dinamani , Ingo Molnar , linux-kernel@vger.kernel.org, kgdb-bugreport@lists.sourceforge.net References: <20171012140659.2749268-1-arnd@arndb.de> <20171012154032.24a3007c479154d77c2767b4@linux-foundation.org> From: Daniel Thompson Message-ID: Date: Fri, 13 Oct 2017 09:26:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171012154032.24a3007c479154d77c2767b4@linux-foundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/17 23:40, Andrew Morton wrote: > On Thu, 12 Oct 2017 16:06:11 +0200 Arnd Bergmann wrote: > >> kdb is the only user of the __current_kernel_time() interface, which is >> not y2038 safe and should be removed at some point. >> >> The kdb code also goes to great lengths to print the time in a >> human-readable format from 'struct timespec', again using a non-y2038-safe >> re-implementation of the generic time_to_tm() code. > > Is it really necessary for the kdb `summary' command to print the > time/date? Which puppies would die if we just removed it all? kdb may enter spontaneously (BUG(), etc) so it can be useful if one returns from an overnight test run to know how long things survived. It would almost certainly be possible for a skilled user to reconstruct the time of death. Having said that, one of the things you can do with kdb (although I admit *I* have never done it) is leave a macro command in the hands of an unskilled user. Short summary: no puppies would die, but perhaps some might go hungry for a little while when their owner is late home? Daniel.