Received: by 10.223.176.46 with SMTP id f43csp2226313wra; Thu, 25 Jan 2018 06:50:38 -0800 (PST) X-Google-Smtp-Source: AH8x22634mFpUbZI3sM1/v/XdfpY1Y9w3/I1Q+Xh5evCynEAAav81c6UYe9QuWs6LJqsF5KqkgAh X-Received: by 10.99.125.72 with SMTP id m8mr13391884pgn.146.1516891838240; Thu, 25 Jan 2018 06:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516891838; cv=none; d=google.com; s=arc-20160816; b=GHAeEGynZQ/daHmsMT2vqEIwGtxmMwP8l2fKu+Bfu/hfXPrm+x9ychFpfng9QmynCo CncfJQbZdQ0N16jyM1/G2PG+qZiDt890faobO+14jsZLFe63Sxjq1FO7LCB7osYeL5jc Gc7Qi9XrVydVCecKe2c5K7W4YeAEB//GUU1+7b3Ou5PjecqmBcEIGV5dDFo6mjLW6ENp T+fy8M3tocL2bWerJDspLNKvVIxO46kI8JpZvFjwoF5KdAtSqbcnwdHyMcQjDVjl/5Kf thmcAac3FlC+37RkFeVU0pBWgQUFwIrJXdtq5JOqLYaxIjTPiTTpS513+80Iaq/aJB/6 YX8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=nZkvysfd3AE10jYmBiup283OAYsDCD4RGWJvo5o2oWY=; b=iZ5Fhdbl5jpu6CND1glz2kyVsKYVNM6eD2ad3TmLeidfdHeAG/WJ1kyuVuKmfwFWMc /8ELQMu5l47Dhu3VniZxAfubEff9cw5igbl2aMPBzxqGLR6jPhbEHEqc9S+MedFnc6zS UQwMsxATzjnpU7vLVLGREZhy7SSHzy1SGXlJ1jMSNdefVKIE9Hf2bKzyAIj8FvGKJlr+ McG9FeqF2AfgzYdzsAmTWyqmQOl9QbKuZFlX1fWOGx7EP4FVeXnX43VL/bkkQzPE9iax 8MhgCmG8JJ6swZkd25Ypfbd/MV9EkEXP8jNluXDanSLyVbywqtnD/rs6RtqW0KOEbk+M bJ1Q== 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 k20-v6si2018664pll.754.2018.01.25.06.50.23; Thu, 25 Jan 2018 06:50:38 -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 S1751487AbeAYOtU (ORCPT + 99 others); Thu, 25 Jan 2018 09:49:20 -0500 Received: from mail1.windriver.com ([147.11.146.13]:40010 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbeAYOtT (ORCPT ); Thu, 25 Jan 2018 09:49:19 -0500 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id w0PEn4LL021436 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 25 Jan 2018 06:49:04 -0800 (PST) Received: from [172.25.59.215] (172.25.59.215) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.361.1; Thu, 25 Jan 2018 06:49:03 -0800 Subject: Re: [PATCH] kdb: Change timespec to use timespec64 To: Daniel Thompson , Baolin Wang CC: Arnd Bergmann , Ingo Molnar , Mark Brown , , Linux Kernel Mailing List References: <20180125113808.3bzgh6zloosw76yv@oak.lan> From: Jason Wessel Message-ID: Date: Thu, 25 Jan 2018 08:49:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180125113808.3bzgh6zloosw76yv@oak.lan> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/25/2018 05:38 AM, Daniel Thompson wrote: > 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! > > I thought for what ever reason this was going through the time keeper subtree. I added it immediately to kgdb-next so it will be evaluated in the linux-next tree in the next day or so, and we can get this merged in the merge window. Thanks, Jason.