Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp667226ybg; Wed, 10 Jun 2020 10:24:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/DlhHJ0UzBw+IhCIwB1Z4m762STe8KA5w3WmaSC7jlTL17fwF7LJA7UJzRKQZazL8YGS/ X-Received: by 2002:aa7:d28d:: with SMTP id w13mr3456969edq.336.1591809889801; Wed, 10 Jun 2020 10:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591809889; cv=none; d=google.com; s=arc-20160816; b=aAk9Rg5UDkMNlhcbT0EJw1UNtYm32dsPyW+Ku+eQWTbJwNsYvtvhLOeu9RpO1yPdip xd8PLXaqM2Oioaw04Y2eV051JVwZRrsgMRm2Gv4mltQ+AqtnFYnwda5vQayGZD0V7Xiu oEWxGt/4TQSyJu7aJLd3BtC4YKX1tvdQW4HdBQg4EfK7EiaqDG0rhT+wEiNLhJNEJGb/ GByR3XCKVvmVDpB1fIEFyTnAmYTGHqmMVTMQHLkktgVSq6vS8RWWWjn4pGWVddWtShI2 ki55qqWdgAiPDiK8KbofFZ0//RBqmdmHiQ+ZUW5wf/tE5w15TrTsYXH+I3BMEYDQ5y1i yklg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TTc2Z9TJYfIzIFDGvsmvK6hVBSuHubFwRjTEnMfWZaM=; b=mADzsuFGPbOvfLJKDL7NzWrgSV1q7izlf6Ww1hAmvT8f9+omObjj2HNLypi1o8aRXO sPARCo7r3wKzPqvrFk7C8QSZTiBTnOy5dxnMbo17dWmHAKTNSikt0PznJFsozq2J196K /4uKnsf2dvYsRMJITXfYcJqqX2bqVLSWB8eFWZq7Db3gkTA7LduJVew5vV/pZspR0HTG ej4b1Xt3Qwf07Gdmew7BlXukMeFkjZ5qJs+EKMxoZNBo5HwoQ+ZMQbJyoRb+6FBcHthO J9y965qSEh7YbTjvWI+AAJGq6gc/TAraBIpdfapThaL4tx/M4llC9CWxy7QuFRmqOIsX tgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pph10uOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j24si338757ejy.277.2020.06.10.10.24.27; Wed, 10 Jun 2020 10:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pph10uOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726418AbgFJQlo (ORCPT + 99 others); Wed, 10 Jun 2020 12:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbgFJQlo (ORCPT ); Wed, 10 Jun 2020 12:41:44 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC07C03E96B for ; Wed, 10 Jun 2020 09:41:43 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j10so3028478wrw.8 for ; Wed, 10 Jun 2020 09:41:43 -0700 (PDT) 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; bh=TTc2Z9TJYfIzIFDGvsmvK6hVBSuHubFwRjTEnMfWZaM=; b=pph10uOEtVWjam0MSkFgGo4Ze7vfIPcKk6odG7zs9j3ckHtV6dSrZFvYRngFfziebB cxtk0NjObGiRy8wN9SmGHL49Kb7DzYcFhk5pHUB+JP6OKS1yZWGoI/dtIUYQsYDjoYX3 VtRX2Rq2ddo0yrCHXBKA2PAujQ+mlS0axatU7a8MW1luLVOvTLnicnydMnOdC29MyM3s CIN4gEkyUn27E8YFfqVFZEqreJiXU9L6p/Hx2fnkGfksDNB10UgdClKdhgVqhq+XRPi3 ydlK1J/898SkUYvP/hks3chUW+1loAhJs2PDjGWqtEn44D5BRUhd3pp5PIJFQckisksl PKCA== 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; bh=TTc2Z9TJYfIzIFDGvsmvK6hVBSuHubFwRjTEnMfWZaM=; b=ukkGyE3vxJxabITvh+SUCZzVUgAkab7wlcFpx3OME/R1QrSEYw2kwdZWxsk4S2ODue RqSNve+rRSwDKp2y3zB345SYXMrb+P3PGertLiGEofH2jPrAqQaMdN8hRCef/eP39m7m eGA6Okuma3TJQnS/OfAkC9V7mydEra29KilFO/dYuHLIa/DBIMakOXM4Bcj2mQHVU1eJ yADo9yJGmT//eHgEf3CzrP3jT4XnHVozd1+XJUbOeCdlgC0HhDaJM3QE21hly3YZXqCK nQYiUtFv5J8ZM480hEXHVMxlVSEOwGgZGRuAhxZcl4FeBnTcoj5qUgNLOB++Ukf1ll4/ ic5w== X-Gm-Message-State: AOAM532J9nbawAxgmgEI5dBs8hyJBVc5w3IjzHcN+36/GCNmmABWyJD6 +aSfLjtuhYwesbRdMvY6CACzbA== X-Received: by 2002:a5d:500d:: with SMTP id e13mr5001060wrt.150.1591807302549; Wed, 10 Jun 2020 09:41:42 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id o15sm308644wmm.31.2020.06.10.09.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 09:41:41 -0700 (PDT) Date: Wed, 10 Jun 2020 17:41:40 +0100 From: Daniel Thompson To: Sergey Senozhatsky Cc: Sumit Garg , Petr Mladek , Jason Wessel , Douglas Anderson , kgdb-bugreport@lists.sourceforge.net, Linux Kernel Mailing List , Arnd Bergmann , Andrew Morton , Peter Zijlstra , Steven Rostedt , John Ogness Subject: Re: [PATCH] printk/kdb: Redirect printk messages into kdb in any context Message-ID: <20200610164140.tgzcn5oip2gzgmze@holly.lan> References: <1589273314-12060-1-git-send-email-sumit.garg@linaro.org> <20200512142533.ta4uejwmq5gchtlx@holly.lan> <20200514084230.GO17734@linux-b0ei> <20200515085021.GS17734@linux-b0ei> <20200515103308.GD42471@jagdpanzerIV.localdomain> <20200515163638.GI42471@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515163638.GI42471@jagdpanzerIV.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 16, 2020 at 01:36:38AM +0900, Sergey Senozhatsky wrote: > On (20/05/15 17:32), Sumit Garg wrote: > > > Can I please have some context what problem does this solve? > > > > You can find the problem description here [1] which leads to this fix. > > [..] > > > [1] https://lkml.org/lkml/2020/5/12/213 > > Thanks for the link. I'm slightly surprised it took so many years > to notice the addition of printk_nmi/printk_safe :) Rather by coincidence (at least I think its a coincidence) the problem has recently become much more obvious. 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()") just brought this to the surface by treating debug traps as NMIs. This means the CPU that takes a breakpoint, and where almost all of the kdb printk() calls take place, will now unconditionally have printk() interception enabled. Daniel.