Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1098425ybg; Thu, 11 Jun 2020 00:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLT56SbSLuIxXVbKcqA7GtLMEfyM0F2mEtZp3bUFJp1yuCS4wld/N7U0JZ+PkENmtfp1Mo X-Received: by 2002:a17:906:5e08:: with SMTP id n8mr7176986eju.132.1591860605354; Thu, 11 Jun 2020 00:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591860605; cv=none; d=google.com; s=arc-20160816; b=IIGmeYKTFgEvZyFlU/qB2OfVSU1nd5OSs65QbI21PErgCYvbBERjl6wtMIWF8p4dzR +10CVkB1NSkrqez7WxwliF5Jiwi2ah9sT1EYRup9Jnrj11OazIxPRhKe1FpQs+3t3Y76 QIYbam1KbIaozD9zWHsC85pE+ubMLJ0abHgM+G8n3f3MWntQDxKpBmUYd4MoE15p/CIZ XStfLMVmeOQY/qSAHnk35aD7S95KvN4J1QsUhCiB2XEGYHJ4FvQhbuqdXEpQ77fEFjbx 9zaj/tcip5MW3u75Os3nE1x1tPKESwpcLiHOvz8bz5Sws9PaGS036D1bcEPAcGZvkh0u oyZA== 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:date:from :dkim-signature; bh=F9YRyl1QH8nNLxQb6YLXx+y0EshlCzJxB+jfKLjlAqM=; b=wKrY3bP27UgkJ1+V+jK8u73g/8LASuiMX0D/vU4O5SxtJ2VXreyju4bYiV3ge9RT8v sEYSbWCQcMMqcMIAUqC9+UzN3LnDcwPjZ621NXMgWb66hYbvQTxQhV2IQ4UnX5ONVMlh npeAf5jhN3H/eJcNPX5kxNfZQdrsPy+iULUQGjNLNExqLSX7F3eRljcK8z1Vib6mKHCx maoPzGGXfMzhYwGz6cO3arZIXfATNHbtXpphdemS9HU5lO4PSxBW6EuvOwMNxuPo8DrS ychOB2I35hgUcHz4m540U4+KuyCvRiraLijAJQFIErb0eEu8yNZzX7TSmneB25fzZul0 5M+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TxQNPxCd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd25si1252204edb.134.2020.06.11.00.29.43; Thu, 11 Jun 2020 00:30:05 -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=@gmail.com header.s=20161025 header.b=TxQNPxCd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbgFKH1g (ORCPT + 99 others); Thu, 11 Jun 2020 03:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbgFKH1g (ORCPT ); Thu, 11 Jun 2020 03:27:36 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E4FC08C5C1 for ; Thu, 11 Jun 2020 00:27:35 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id d66so2299920pfd.6 for ; Thu, 11 Jun 2020 00:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=F9YRyl1QH8nNLxQb6YLXx+y0EshlCzJxB+jfKLjlAqM=; b=TxQNPxCdxCFIlxp1IRQ0D8Vg8XFC00Bg44uvyzsUqyx/qoeEbJWb3Mnt5q6gUimqT7 T25vKLwTHkwlPT/ja4Cfdhlny+1HZBqfBwTnX1lgltBfscYNxT8xBAX2YQAgzwhDEa60 GdfWj4jhMDxUKdQMlK62NwFZ0n6OlvWmEkeHonIv3Qq3NZOe2gkw38y8cEhu69qalJjl FGq2+yPg3xe7Wh47U9W/R8HuIlY6E2ELpAezBXHuvX4HVM1Adz+bBpEIBBHizDPmDExV Wi/JAI/TmK9L5DuunYFH56e6fG3wJEPkeC68iUkcKc7s3+m5RCT0RrILg4QdEEysMndO 8qpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F9YRyl1QH8nNLxQb6YLXx+y0EshlCzJxB+jfKLjlAqM=; b=ZANCzuyWTJX/OtRU/EGJ0WezeiEitajYJFY38IwsgOqvKH3GMGRhwWfG/dJs7MfCSW 4bJKiPLAkD5JKIXWotZCISxkaiJjK25WbPVt1RR1jV6O06WpPhhNLm/2o/zfQLGqxce8 ZIwOTGWnz2hTGpEA2tKL9LEDSW1SiPh1VW+lvQaKojFdXFJDY10oy4g42c+Q9yzPWRwH iANmqHY8ar5SYcJE0qPlUbBalhUQUVSM2GaJJ1HWO/pVFpPiez10jaFvkLZG8dKaHWQV yqK9E9o53TNlvIVWE4kQSf5SxDpxV16HicnLrI1pUUBpk9EURe6wWO0jJfQJitfNkAB4 VzSw== X-Gm-Message-State: AOAM532bz/hSkB14wwOHOJmX7qdapZEoywosOKVhGzpJP177LLMAM7q6 xx2BhhRH3wo5eJ5AUDgOrRo= X-Received: by 2002:a62:5ec2:: with SMTP id s185mr2426106pfb.0.1591860455453; Thu, 11 Jun 2020 00:27:35 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id 15sm2152353pfw.189.2020.06.11.00.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 00:27:34 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Thu, 11 Jun 2020 16:27:32 +0900 To: Daniel Thompson Cc: Sergey Senozhatsky , 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: <20200611072732.GA429@jagdpanzerIV.localdomain> 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> <20200610164140.tgzcn5oip2gzgmze@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610164140.tgzcn5oip2gzgmze@holly.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/06/10 17:41), Daniel Thompson wrote: > > 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. Interesting. Feels like ist_enter() should have been using printk_nmi_enter/exit() in the first place. -ss