Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1987507imm; Tue, 2 Oct 2018 18:23:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63YfaCtB5vj5r0CNBE5j5s/h7N00Do+rZ//zZ5mm74bRiR46PUUYvd5ZA9719u0KV/+Wrqf X-Received: by 2002:a63:dc14:: with SMTP id s20-v6mr16792977pgg.398.1538529839478; Tue, 02 Oct 2018 18:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538529839; cv=none; d=google.com; s=arc-20160816; b=VVlGHhw9oBSuJiY2cP5+Fefxfwc8I6/+fn5xPoaein+g58EiwgMOEPd/H49FGCgh+g KMy7oWtke1L1TF5GixvZmBA069o6P3KBO41Z8ujhokkCCnehw5dUzoFXNOdREj9fvrQC Iu9bSMIj4TjxhGDIBlV3QTBY6uc9ZpTtYfzuFPI3XPxisTViUfLdKQbZUB40UwnYM5Ht hdgkYIwDh9UuhVLd+u2ZRStwVWcCHC4LVt9UCqVlm0BwHnGYUAb4S1q6j9eoTKiSZZ58 kYgupMBkL1RoViFiwiO9+nphAJ5XIH6MWYAOR0ysde4xhdEPSOUarG0FFrPzorifzmyG DowQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=NgsSeg99hDhjjEAQ8YN3+hYYaBVX4ifXOtStreLZnNg=; b=qYVXLmDkDphQOnIfY+e0SHloVaDs54JwU42BQlBXqHGLCcDnBYmZdmVd9x5c9tJv4P jnszx1nGSHxzkJ3FcMZ4uSC0Ny4jpEifmw25LY2e1nbYU58P+o6dBTS9NabTPNdX65kF u4mRbMnXUIsKDga711x4u1KP/RKskNG2ZTnogXqAttyUFX20p17hBUt43VqGZgaEsPuF 53pSZ2vsJdrdjSwOpVTzyDuXr6bjHx7eQ9JDMUyRl42YYhh7vlJoZVktKSApZuUFIK23 vyKHPvK0rOIj8ZCOs+yltnhc5rioJoJJJV1vBNFAvKeTccBG9I4EcnHeA9YqS0UH2m7C IRhg== 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 b12-v6si17091481pgj.87.2018.10.02.18.23.44; Tue, 02 Oct 2018 18:23: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 S1726432AbeJCIJj (ORCPT + 99 others); Wed, 3 Oct 2018 04:09:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:34570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbeJCIJj (ORCPT ); Wed, 3 Oct 2018 04:09:39 -0400 Received: from vmware.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB697206B2; Wed, 3 Oct 2018 01:23:29 +0000 (UTC) Date: Tue, 2 Oct 2018 21:23:27 -0400 From: Steven Rostedt To: Daniel Wang Cc: Petr Mladek , 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 , Mel Gorman , 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, Cong Wang , Peter Feiner Subject: Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes" Message-ID: <20181002212327.7aab0b79@vmware.local.home> In-Reply-To: References: <20180927194601.207765-1-wonderfly@google.com> <20181001152324.72a20bea@gandalf.local.home> <20181002084225.6z2b74qem3mywukx@pathway.suse.cz> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Oct 2018 17:15:17 -0700 Daniel Wang wrote: > On Tue, Oct 2, 2018 at 1:42 AM Petr Mladek wrote: > > > > 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 > > All of these commits already exist in 4.14 stable, since 4.14.68. The deadlock > still exists even when built from 4.14.73 (latest tag) though. And cherrypicking > dbdda842fe96 fixes it. > I don't see the big deal of backporting this. The biggest complaints about backports are from fixes that were added to late -rc releases where the fixes didn't get much testing. This commit was added in 4.16, and hasn't had any issues due to the design. Although a fix has been added: c14376de3a1 ("printk: Wake klogd when passing console_lock owner") Also from 4.16, but nothing else according to searching for "Fixes" tags. -- Steve