Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1052241imm; Tue, 2 Oct 2018 01:42:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63gW9molPXXCYyzZUdVUzVMD1pvp0+FcuClWDP5DFmTtfv3BO29/xi3fUEzFA1t3Zalz2HN X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr13703005pgh.293.1538469779113; Tue, 02 Oct 2018 01:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538469779; cv=none; d=google.com; s=arc-20160816; b=jVaWoObCBlHmg32XPWYMZCG+2s3A6XounIrl39LoAtQKBZ7O6hnayr74CseKhtuT3t 2ppz3QShoAYtT9Kw7lrFAvkCINmurzBm/jNmMhkp1H4UZpe9WGC2bOImJDw9C2d0kAnx CIRwDuWEtI7LMpJw0vsEN7p/Qrc0WWTJLl2MIzWGXm6fe0MQu5LsSVco/Po11RAUmncd +0PvWsnOspeVHk7n6/BWJ0JMaOSfRhVkDNqiti8RyqLTfvslknSD2VId5mHE3eHPL/4T p1aewkGqu3lg480J6NTiAJFLqiNxak+9265emAIPJ3zKR53VaY7wBLizbUNcwgc5VUfP muzQ== 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=IdMVU3wkFnBZxSTK2q45FGNKaYkanESmxaH6uO5aOc4=; b=bTpTB9XAAdAWHjqWE/3tEPU6uMANxr0yxeran1FQTZvKzkHAbvl4m48KWzTh//JgD5 9/qdwk9HN9aSjV+ZTCYD7nRlJWhGwAOtxFjQ/01JXHAvchiG42WhjT0iFfOqIBeRBHqG XOf/Bg/kuU1XE0up4603ZXhm8Iv1RrZN8Y+8XTseiaZAf1sbcopxl+BXljWSKKMBx3m3 OIsPxUCK7z8FAj9fTrHnOLN0NbZPFmkTEAHPh0MKuCarzeD027qCKz2kfGD6X/CWp91e 9IfwKull2z3o66cS12hVb445QZI+mdpxgd7HbPo6r7n9NuZIURT2DgKW9tKsqmKTDc6p dzUA== 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 y38-v6si14735643pga.605.2018.10.02.01.42.43; Tue, 02 Oct 2018 01:42:59 -0700 (PDT) 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 S1726890AbeJBPYi (ORCPT + 99 others); Tue, 2 Oct 2018 11:24:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:50274 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726508AbeJBPYi (ORCPT ); Tue, 2 Oct 2018 11:24:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 01B41AD7D; Tue, 2 Oct 2018 08:42:27 +0000 (UTC) Date: Tue, 2 Oct 2018 10:42:25 +0200 From: Petr Mladek To: Daniel Wang Cc: rostedt@goodmis.org, stable@vger.kernel.org, Alexander.Levin@microsoft.com, akpm@linux-foundation.org, byungchul.park@lge.com, dave.hansen@intel.com, hannes@cmpxchg.org, jack@suse.cz, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mathieu.desnoyers@efficios.com, mgorman@suse.de, mhocko@kernel.org, pavel@ucw.cz, penguin-kernel@i-love.sakura.ne.jp, peterz@infradead.org, tj@kernel.org, torvalds@linux-foundation.org, vbabka@suse.cz, xiyou.wangcong@gmail.com, Peter Feiner Subject: Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes" Message-ID: <20181002084225.6z2b74qem3mywukx@pathway.suse.cz> References: <20180927194601.207765-1-wonderfly@google.com> <20181001152324.72a20bea@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2018-10-01 13:37:30, Daniel Wang wrote: > On Mon, Oct 1, 2018 at 12:23 PM Steven Rostedt wrote: > > > > > Serial console logs leading up to the deadlock. As can be seen the stack trace > > > was incomplete because the printing path hit a timeout. > > > > I'm fine with having this backported. > > Thanks. I can send the cherrypicks your way. Do you recommend that I > include the three follow-up fixes though? > > c14376de3a1b printk: Wake klogd when passing console_lock owner > fd5f7cde1b85 printk: Never set console_may_schedule in console_trylock() > c162d5b4338d printk: Hide console waiter logic into helpers > dbdda842fe96 printk: Add console owner and waiter logic to load > balance console writes This list looks complete and I am fine with backporting it to 4.14. Well, I still wonder why it helped and why you do not see it with 4.4. I have a feeling that the console owner switch helped only by chance. In fact, you might be affected by a race in printk_safe_flush_on_panic() that was fixed by the commit: 554755be08fba31c7 printk: drop in_nmi check from printk_safe_flush_on_panic() The above one commit might be enough. Well, there was one more NMI-related race that was fixed by: ba552399954dde1b printk: Split the code for storing a message into the log buffer a338f84dc196f44b printk: Create helper function to queue deferred console handling 03fc7f9c99c1e7ae printk/nmi: Prevent deadlock when accessing the main log buffer in NMI Best Regards, Petr