Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp656748imm; Thu, 4 Oct 2018 00:50:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60pGRLjTluWPnpqP8legQtsaiIlg/UGE7Z51H+VFcr29HUwAB4HOnbdoID0U41Al69HGvus X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr5346344plp.86.1538639412556; Thu, 04 Oct 2018 00:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538639412; cv=none; d=google.com; s=arc-20160816; b=W/jkHZfxgRdWamTw1t/Os4CU+iCNR/DcuV9EPDiioJvbNE7czmfRCHIbJrHpZJsvEE XQv8fCA9Utwky2/bQB0vgulsAq+gI28dEXMfqakdflp7/JgOYT6Wd/iPcG6NZ22Dy8pQ GreiUfu4eEjnN+QhKfIcdaRoe6xTrS98AYaMyOaVmosUDmhVV+4TqFP11RaG9N8D8vFz /gHCJv+IwmAFjwnELfvj9wYtGVv6kJoiW4ckVMmmI/Mn3wpNhmHe6FMxDEvcEuUHGWSL OiZqpB3IPsDgK1n2ZGg4iIMKffYJQabdtM6eiUtr5PMIBaboj/mRCDQDQXE+KV6C7P83 i96g== 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=bb2U5GJfKBr6OfvCHYfUlh0nxtGDI6cUvMF6G9YFxlw=; b=DGz1bLqVtcziDtB0l20m5iaNr+dB1wdW7Bthx+wnwS7BND0Xpqgo+Cb88dpib6J2X8 HHxCCIaaJioOP2Ohf38s7SBHoypIC9gXM7gxlZFz991W3iq6X0CDE4pS4CeDr92TnnHh XB+6dedJGrQLVIS/C0RQQa1XS4IEqeJWgWjvJs2WC9XbhL4oCJvQmgglYqD4CKeGZH5l kXVBqN2KTvsEHXEkSZOqI++sFCTMqCqbJrD4bAFQkkpdYAFN8Zjny3o/MbWToh31Sigz /zH7PUKz06dZOKt8BBWGFUSDp+Bh4zQTILiv0asdNFWjIHmTtchJp0UNvFOknioNo15A R2xg== 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 s31-v6si4191875pgl.228.2018.10.04.00.49.56; Thu, 04 Oct 2018 00:50:12 -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 S1727774AbeJDOle (ORCPT + 99 others); Thu, 4 Oct 2018 10:41:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:39398 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727319AbeJDOle (ORCPT ); Thu, 4 Oct 2018 10:41:34 -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 E8511AE0B; Thu, 4 Oct 2018 07:49:35 +0000 (UTC) Date: Thu, 4 Oct 2018 09:49:33 +0200 From: Petr Mladek To: Steven Rostedt Cc: Daniel Wang , 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: <20181004074933.5pzqnjzl4pwuutoj@pathway.suse.cz> References: <20180927194601.207765-1-wonderfly@google.com> <20181001152324.72a20bea@gandalf.local.home> <20181002084225.6z2b74qem3mywukx@pathway.suse.cz> <20181002212327.7aab0b79@vmware.local.home> <20181003091400.rgdjpjeaoinnrysx@pathway.suse.cz> <20181003133704.43a58cf5@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181003133704.43a58cf5@gandalf.local.home> 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 Wed 2018-10-03 13:37:04, Steven Rostedt wrote: > On Wed, 3 Oct 2018 10:16:08 -0700 > Daniel Wang wrote: > > > On Wed, Oct 3, 2018 at 2:14 AM Petr Mladek wrote: > > > > > > On Tue 2018-10-02 21:23:27, Steven Rostedt wrote: > > > > 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") > > > > > > As I said, I am fine with backporting the console_lock owner stuff > > > into the stable release. > > > > > > I just wonder (like Sergey) what the real problem is. The console_lock > > > owner handshake is not fully reliable. It is might be good enough > > I'm not sure what you mean by 'not fully reliable' I mean that it is not guaranteed that the very first printk() takes over the console. It will happen only when the other printk() calls console_trylock_spinning() while the current console owner does the code between: console_lock_spinning_enable(); console_lock_spinning_disable_and_check(); > > > Just to be sure. Daniel, could you please send a log with > > > the console_lock owner stuff backported? There we would see > > > who called the panic() and why it rebooted early. > > > > Sure. Here is one. It's a bit long but complete. I attached another log > > snippet below it which is what I got when `softlockup_panic` was turned > > off. The log was from the IRQ task that was flushing the printk buffer. I > > will be taking a closer look at it too but in case you'll find it helpful. > > Just so I understand correctly. Does the panic hit with and without the > suggested backport patch? The only difference is that you get the full > output with the patch and limited output without it? Sigh, the other mail suggest that there was a real deadlock. It means that the console owner logic might help but it would not prevent the deadlock completely. Best Regards, Petr