Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1095816rda; Mon, 23 Oct 2023 02:16:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQ/sdGgv6kps5/17tD7rADt+Nlb0rE90BjsKG3X+khWw1BEAAc9iFmgdqL/Cj3Dtce407F X-Received: by 2002:a05:6358:261c:b0:134:ea45:53d7 with SMTP id l28-20020a056358261c00b00134ea4553d7mr9949863rwc.26.1698052606431; Mon, 23 Oct 2023 02:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698052606; cv=none; d=google.com; s=arc-20160816; b=wg4ifGBJNq2XOKjYw699LR/l/at66X/YnppUqGuip2V/c7IHJRC3avwrP/Km2/23z/ +oJaJEo2csLx0Gbu3jcWKLSH/ciTzg29eCHF2TT8qR1gWHw37wI1nEh6LdNNar/XRjxE 5WBO371LUuytaJ0FGdiqtW3U+/TBefaPFLGfLghrnFWWEBIyqfA2PyBNrx68WD1f5fj6 QHwjIDiYVcx6RqmBgYQnSOU/l+/xVHylq8RPUjH1lXV8DFvVAOS9jmXW/osNBibazSpB fVoV7e/6vAktqYlwyMPlRXeEt3kX/0Lp1g/6XPpZmGOxeymZhf740GxLqpAj4oWbSwDY /MDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=M8vXG2tJd9kcJDGoaWK7bPyKAi4fVKeW+17ZQYQF8y4=; fh=pKnPKUsir0uEGSsor+4Zc2vgbu+g+ayvUgsdzkuXaoA=; b=y4wQP5nhIFNZ7rNIDqCrhj2a1hxF7d46CsH3glcMYsfOUBT0n2u+XKDhFen29EPBIx JpT1PMr5Odm7iiCDrrWZuRLrIINYqGQodIMsbfRvNrb7CCRQtoWkyBbzbkB5sMW7G3qm pM3VtizvL24V/Gw95DuMig/HzAyn1qNU7yOW4s9BatnBKf//Q9iJ690TQTE4LXWtIK6B 4LHziJeAxWmONSVMhCm03k8+osUQmoEnR6E/dNtn1zWBpJSyNn8I4f0lawTP0I1jduwt 4ir8/C+KEIDuKj5ftzLMoL7M7a8UYFJabSVTOZDeN4T75sTOB+ZGF9oWapC6dtYwzqHD hgvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uhFrS9Q7; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 195-20020a6302cc000000b005893a7c438esi6147090pgc.689.2023.10.23.02.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uhFrS9Q7; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EA7F5807C654; Mon, 23 Oct 2023 02:16:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjJWJQg (ORCPT + 99 others); Mon, 23 Oct 2023 05:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232915AbjJWJQX (ORCPT ); Mon, 23 Oct 2023 05:16:23 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B471728 for ; Mon, 23 Oct 2023 02:15:51 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698052549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M8vXG2tJd9kcJDGoaWK7bPyKAi4fVKeW+17ZQYQF8y4=; b=uhFrS9Q7keqeRq8u+BCLY8PBuJUO7CkDMQddt2pL16SsHIddnhDgQmE8kDi7v1kD49w+mA rs+kskYPuxr60ggD63svyBkhs75xFh+OsYq6GjPEqfgTSyYFgXHJr93558axLy/vWVajhy ym/1oiYqLeHnoi/uUtCGC6y3wtplvCSDu4+6ixnoL0ZdGX+RTaEmPTHxMn72/kyQ/sFt9x G5xPG6hsstuA3gmr+jpJh0t9oRQJvsx0FA/M8u/75uRDq3nO/6S8/ylheIivIv6zViCEZB BZPGBncvj+UGFxW0VxagTNpKsgXJn7A8ANCFS/hc69TJx1NCnC3pT4A6Fanwpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698052549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M8vXG2tJd9kcJDGoaWK7bPyKAi4fVKeW+17ZQYQF8y4=; b=FLqXPcm4Ao1eur8K6DdHABBaPHstRuBH4Wb18I3xO14iULcg3Zhp9Ipln/C0ecjOO4tDui Y38nP1r2QK1B34Dw== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 4/4] printk: Ignore waiter on panic In-Reply-To: References: <20231013204340.1112036-1-john.ogness@linutronix.de> <20231013204340.1112036-5-john.ogness@linutronix.de> Date: Mon, 23 Oct 2023 11:21:43 +0206 Message-ID: <87y1ft1yyo.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INVALID_DATE_TZ_ABSURD, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 02:16:44 -0700 (PDT) On 2023-10-18, Petr Mladek wrote: > Well, I have spent some time thinking about possible scenarios and I would > go even further. I would block also console_lock_spinning_enable() > Also I would do the checks before taking console_owner_lock. > > It would make the behavior symmetric. And more importantly, it would prevent > possible deadlocks caused by console_owner_lock. > > See the proposed patch below. I created it to see the changes in the > code. Also I added info about possible scenarios and effects. Reviewed-by: John Ogness I will use your patch for the next version of this series. John