Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1033516imm; Tue, 2 Oct 2018 01:18:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV62xm+2WEA/KnM5c4zGnZCpz3SPzS8w8ak+EWC278nIJ5YhELm9n2EEfofybLD/LbQtlmlD/ X-Received: by 2002:a63:c54a:: with SMTP id g10-v6mr13452753pgd.201.1538468307837; Tue, 02 Oct 2018 01:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538468307; cv=none; d=google.com; s=arc-20160816; b=wfnZoHa+9fwJw+iebQ7GU/c9ZpZIU6d0CPnTJ1ybE0HKme9U3g2frBbr1rXHBxljJb WZ7/GSzInbLcGpOgOPfisKTwMBXXZVIBqQwukHO18k9CpNKQ0FDdwBCC/vbJaGrdlYRD kt6tAwh2q9QkR2KGpwTfINZgrxYQGO2JNzvfZZCNDz7jL3SDUrx6oc824kLhUPKSUlfS UkfmgSdlMf0Q8/bnK2fbceYTmnwYDvbTkFMGCH1Zsdcs9LlDnQ8DgwayI/wKpiRjUs2W 5qIYolFyEDQMfjpqKvCtuzgB++88n5eZ+258Hl6vuWEfffNbVsImjXG/kpawVxNHjPg7 418Q== 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:dkim-signature; bh=r9c0v6k5yYT3ldRRauxDANN9klpUOh7jyIlXr5bZ5j4=; b=RzPFuEZyWZ9fG+Dk4NO9OmMLLf6I4RaaKgSBkv1rhU5CfWJAT30vIOsFjI3+Z42lFH uCKTTD0GiRHAy60xSR7D6Wv3+EG/okynHmnqb7PpCY+1ii2t2Uf0BYc2gKcyqZ15vrZi O63bX70ZFWlFxqR9Zd35sAdHwk8yQ+87MqHaPLRvsWRvooDSa5XAlw9EqEGmxcO4+v6f M/1bDiVECuRPhYEXL0bn9j11NEFh8XihTUve8SABZ7kl+nibcvEKscEdeIO/ZhfPMNPr P2qErlpsVqTZfiZwO7HcCUrUDRV5WD/Iuf2WWOoiAO8T5mwu9HAepTQ/Wyi+uJHP/eDo L+MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pEeuvuzd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13-v6si11185247ply.279.2018.10.02.01.18.12; Tue, 02 Oct 2018 01:18:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pEeuvuzd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbeJBO7C (ORCPT + 99 others); Tue, 2 Oct 2018 10:59:02 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37805 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbeJBO7B (ORCPT ); Tue, 2 Oct 2018 10:59:01 -0400 Received: by mail-pl1-f193.google.com with SMTP id az3-v6so516828plb.4; Tue, 02 Oct 2018 01:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=r9c0v6k5yYT3ldRRauxDANN9klpUOh7jyIlXr5bZ5j4=; b=pEeuvuzdZEBLx5yPXCSxgQ3jrshhAmwzryfiKpQzHU75uo5OoE8SDg7+A6/0XuaH0z SJJsTRgX4rcMXJPECloSiF0cmaIRHAEqzH2EOZvdxW22oxUwjX+jvEVj8rr4x/75GK3a /HmH1iTe9nlUfzjw0yNuSDY/iwVxSRxhguqjBX08mV/DDx+gk3s7bJeXXjA6ZBE3R2O6 fK/fphqAfqAmGo2ZoYqNL1Fx+Gnw0Bpl0veaBnyWjP1KhjlhCDRQsaBD/P2Rs8WOlApl 9rnoPNq1fkhZZFgg1BfAi12Th1KcxbJzH58P4DFt2EyCg+GmgSj8MdkQVcD40byPTiGb 0dFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r9c0v6k5yYT3ldRRauxDANN9klpUOh7jyIlXr5bZ5j4=; b=qjAQHCEhobdrPHSmtehFMwoj8qO0VblXTd565SZ3ZNie6bETkX00NDhflVjbcERyl2 b6GmmkGAWI7ILb2EE/VIC2+8zB3lWFAAUtkjcC/jXYd2rWrYGftN+r3FAIlYM6nA5DQL DO1HkEO721wTBhvhrZ/VHIKndDLAuzWntnp5uMrF40u4CQNwa/ptDwrIkJ5odPNOGIEC OB5q4vAIh6KkiKExdXT2feZQcv1mTLnK0DaorU8kRMBJG4Tm1S1YhLLcsR1vockkqhYH ozh7EiJbqEhh0RPD3ddZsodnRhgL+kdaSPCHcvJeGEGcTRzzvB1Oim1ddPDp+Mk59QDa 5t2w== X-Gm-Message-State: ABuFfogwWB3F9zaSpGhc70iaRd5d7h4Y8HIztsyUv6Tl6nmKMFsRiHFX L1PN40ScslFG1BrZ4kmb7qw= X-Received: by 2002:a62:c40f:: with SMTP id y15-v6mr15272213pff.161.1538468219012; Tue, 02 Oct 2018 01:16:59 -0700 (PDT) Received: from localhost ([39.7.19.27]) by smtp.gmail.com with ESMTPSA id s14-v6sm16944915pgv.29.2018.10.02.01.16.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 01:16:57 -0700 (PDT) Date: Tue, 2 Oct 2018 17:16:53 +0900 From: Sergey Senozhatsky To: Daniel Wang Cc: stable@vger.kernel.org, pmladek@suse.com, 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, rostedt@goodmis.org, tj@kernel.org, torvalds@linux-foundation.org, vbabka@suse.cz, xiyou.wangcong@gmail.com, pfeiner@google.com Subject: Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes" Message-ID: <20181002081653.GJ598@jagdpanzerIV> References: <20180927194601.207765-1-wonderfly@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180927194601.207765-1-wonderfly@google.com> 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 (09/27/18 12:46), Daniel Wang wrote: > Prior to this change, the combination of `softlockup_panic=1` and > `softlockup_all_cpu_stacktrace=1` may result in a deadlock when the reboot path > is trying to grab the console lock that is held by the stack trace printing > path. What seems to be happening is that while there are multiple CPUs, only one > of them is tasked to print the back trace of all CPUs. On a machine with many > CPUs and a slow serial console (on Google Compute Engine for example), the stack > trace printing routine hits a timeout and the reboot path kicks in. The latter > then tries to print something else, but can't get the lock because it's still > held by earlier printing path. Sorry, I'm missing something here. Steven's patch deals with lockups and I understand why you want to backport the patch set; but console output deadlock on panic() is another thing. You said "then tries to print something else, but can't get the lock because it's still held by earlier printing path" Can't get which of the locks? -ss