Received: by 10.223.176.46 with SMTP id f43csp2062685wra; Thu, 25 Jan 2018 04:23:49 -0800 (PST) X-Google-Smtp-Source: AH8x227UMXF9KfkXmuQPDJNI7DDoHH6lHyhfmDo2FrWogGXwIG//indn9zCynJLvMa6LGAER8kui X-Received: by 10.98.150.20 with SMTP id c20mr15950131pfe.200.1516883029452; Thu, 25 Jan 2018 04:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516883029; cv=none; d=google.com; s=arc-20160816; b=s2xzlv2SgE1bsXS4ts5ji8uYc8Y+rKHevPo2Q25buUYHynJ3FyZXY5WpMtc4oc3ogQ AXASV00SR6/pU6eUkTES80qlDIrwy0BK1t98cdAWrrm9+ferBzLKrcaA1PjCv4+ZVwYZ 2jkmuTA5kWFYRW95Oqmx4rvo79osgX3ibVF/d9lBCKCBqtBQUOqsnG23r+StE3QpQREq GyHiy3pzSukiNUXKlT29Y8SWKXADfZLP/2QPPRPxi0D0hNyCLrg7FwWaZIWDK7PI8N4g 3VMDq4vV2KrRduB0f/Qfu+q4hYZvzJwSuM+R28513+wR2jSxTQstejxDKZmbiU6tA30Y AYTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=rJXgmJBlEOM4IB1HJPFaDTgG42a09LgwelAcFHtzfBY=; b=L4wJdtqybMoGx0BtPsmtQHb2o8UmddOZCMt14DtLsQs6k7kOglWSPs2OmRqCUy8jnY +krahY6khHqIuiTBTEaZhXwu60VFNW3JG+1tQ6e8ewY3td+DOznqmrl7jifSSBNWcRXm gmSRDSXPbVKtfmi40jRXVvN6yNcOEF0UoZAoImZTEEvtMw9lhK9WdmrHWBrmaX8791x8 x9Gd/BJmfPGQlF1EgYltDjtwyiEKwztgIXCsYu+2CPwZtyfIKyrp1gcs8YpKnZExhjaH M+OI5oiEy1RaqWySei3/J7s0FVgwohdzJfexa0xd+/iBBMmmUAwRVleeRuqyJm6eeX2A Il8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0m21kOf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si1889015plh.41.2018.01.25.04.23.31; Thu, 25 Jan 2018 04:23: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; dkim=pass header.i=@linaro.org header.s=google header.b=A0m21kOf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751735AbeAYLiO (ORCPT + 99 others); Thu, 25 Jan 2018 06:38:14 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36213 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbeAYLiM (ORCPT ); Thu, 25 Jan 2018 06:38:12 -0500 Received: by mail-wm0-f66.google.com with SMTP id f3so14349082wmc.1 for ; Thu, 25 Jan 2018 03:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rJXgmJBlEOM4IB1HJPFaDTgG42a09LgwelAcFHtzfBY=; b=A0m21kOfZSnqmEqJkzA+fgH5yW7ztEIPKNcWy3ll/2w/wllgvAdKVEKItNUhEo2sXc 84sHusJtgeytJzkFDo/JeRWlfk37hGqgnbtCE8JDV5Dg+vpYYDPAabbTAEUHvxM7TEpw wQxlhJUCfToS0wFtPq6KU7xDvJ1O1Oi9w0NA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rJXgmJBlEOM4IB1HJPFaDTgG42a09LgwelAcFHtzfBY=; b=M86G+QWwBAVEz0DYcGz3l6bKgxHyWkX3sUQIV7bWMgwGZIG++o4xYaDKMkRXc+qseN 7hhLIM1RPvnC6o3G2Pjk0FHPAJxaXJdcwsbDlwG9UgbjMW06hRRSr6OU4rsfF00uTsRo AOU1oPx4xG2towV5OpnfObrNdUxNI9+Sef/wzRpluIYmdPBskVZsvuU76pprt7ANbGqx A3SMC1HWc+4oZtXhm2HIMrFVVEdzNy4X/VTqrGfveTFXQgC3vDtUOtwesJsMUJwQubp3 CnUh3zkx3ytncqahVA2ZxuI7PKKPXAImTRR6M1viZbH4xPeTO2mXlJ1hChKvHQ6gR2yn gYCA== X-Gm-Message-State: AKwxytdHdfxqQ4KuG9mexzNM7OxceEXON6CyMGmXHY2bQJenoV6QEY5f 8SC9ibpE11Cg5lnlFFKyWGmQ1mNzHlk= X-Received: by 10.28.88.70 with SMTP id m67mr7950364wmb.134.1516880291178; Thu, 25 Jan 2018 03:38:11 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id 34sm5091649wrd.27.2018.01.25.03.38.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jan 2018 03:38:10 -0800 (PST) Date: Thu, 25 Jan 2018 11:38:08 +0000 From: Daniel Thompson To: Baolin Wang Cc: Arnd Bergmann , Jason Wessel , Ingo Molnar , Mark Brown , kgdb-bugreport@lists.sourceforge.net, Linux Kernel Mailing List Subject: Re: [PATCH] kdb: Change timespec to use timespec64 Message-ID: <20180125113808.3bzgh6zloosw76yv@oak.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 05:18:54PM +0800, Baolin Wang wrote: > On 25 January 2018 at 16:55, Arnd Bergmann wrote: > > On Thu, Jan 25, 2018 at 9:05 AM, Baolin Wang wrote: > >> @@ -2554,7 +2554,7 @@ static int kdb_summary(int argc, const char **argv) > >> kdb_printf("domainname %s\n", init_uts_ns.name.domainname); > >> kdb_printf("ccversion %s\n", __stringify(CCVERSION)); > >> > >> - now = __current_kernel_time(); > >> + now = current_kernel_time64(); > >> kdb_gmtime(&now, &tm); > >> kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d " > >> "tz_minuteswest %d\n", > > > > Thanks for picking this one up again, we should find a permanent solution here. > > Unfortunately you patch is incorrect, as we cannot safely call > > current_kernel_time64() > > from NMI context. > > Ah, thanks for pointing out the issue, since I do not know what > context the function will be called in kdb. > > > > > The __ prefix on __current_kernel_time() indicates that this is a special call > > that intentionally doesn't read the hardware time to avoid taking locks that > > might already be held in the context from which we entered the debugger. > > > > See https://patchwork.kernel.org/patch/10002097/ for my earlier patch. > > This patch had not been merged into mainline? Not yet (and I'm afraid it's not in kgdb-next either) but the ack from Jason is from this kernel cycle so we'll see what can be done! Daniel.