Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1114205ybg; Thu, 11 Jun 2020 01:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8PIJfpLSh0JbzcCHPNkPyEZ8p1ZR9VldAUnZmuZtLBI1Q9SlRI+6eIkG1ferxgET4oejo X-Received: by 2002:a17:906:d973:: with SMTP id rp19mr6701148ejb.475.1591862551526; Thu, 11 Jun 2020 01:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591862551; cv=none; d=google.com; s=arc-20160816; b=twe5y1wuX96ARfDyUJBActlltRraxxapaXsLmUguSAzw3cDffWZDEdQ2gOHy0pE+tZ H8s9hMT79O1bByzjX1MB1Z/yLfvc3F7vVX179S06X5G0e0R0ofT96clUXLA1lfi8GSJm n/EVLN+kDoKXbiBVHbLiVl8QfpCL8QKDA6IZhwXdylLfs/f/yyU4ewcGXninEeug0H1E JR5GluvJZrE3Z7ul8iHnFom2CYn3tGmvnnI37LEA3JvY8elrXLMp6oNnSj2IdD9ToONq 3xemGYgwGhq01Gg6tUcmwltXydWG0502pS9fkHSGEhbDZ0qAVU86nMfSAq+XLpuwn57z T1VA== 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; bh=J9KeEO9nXTH4wlQRy4lLzmAxeIVSxlpsHbubuSb/JnA=; b=lO/nm766JWd+6VyEqOLGmbSfkpwtNBhgj7AReawToov0E/n2IaZ5j7ESqaE88WzgUM KI5Z3OAM5uK3u+gnejwoE4j9o2SmgenHW5gib5PQj1rEnV4BbAKW5lq1pfQc3HQfPeqp WrhPR9TWUr5BLuOxhs2K+6P+V85gXl4PTPWadAh5fsvxWh5MrpkBlqPauq7qjsDffTfk rubHRt/nWNLbznbqPwF8+gi8TQDKvhqYocYmydE11MRwNCXAkjg9Qb5ChzPfxoHoCOvm tc3cd/7IUJjn/YcM1VFz8VEqIu91TzcqGWWAuhnkx/KJuO/B1vhXZlWByvNFPeTfRBYG X+8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si1550885ejj.247.2020.06.11.01.02.08; Thu, 11 Jun 2020 01:02:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726757AbgFKH6X (ORCPT + 99 others); Thu, 11 Jun 2020 03:58:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:52810 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgFKH6X (ORCPT ); Thu, 11 Jun 2020 03:58:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D33BBACF9; Thu, 11 Jun 2020 07:58:23 +0000 (UTC) Date: Thu, 11 Jun 2020 09:58:18 +0200 From: Petr Mladek To: Daniel Thompson Cc: Sergey Senozhatsky , Sumit Garg , 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: <20200611075818.GC6581@linux-b0ei> 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> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2020-06-10 17:41:40, Daniel Thompson wrote: > 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. Mea culpa. I have marked this patch as proceed by mistake. It has got enough acks and is ready for 5.8. I have just commited the patch into printk/linux.git, branch for-5.8-kdb-nmi. I am going to push it to Linus when it passes linux-next integration, hopefully tomorrow. Thanks a lot for poking me. Best Regards, Petr