Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp414024rdh; Wed, 7 Feb 2024 08:17:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiWZg9W7zH2ei/wO9Lt+S73JMGAvo6lsUkuVjptyhjbhsWsQdJbmcqQ5aGWpxjNOnZAkLB X-Received: by 2002:a17:906:aed5:b0:a38:9a8c:d228 with SMTP id me21-20020a170906aed500b00a389a8cd228mr573907ejb.44.1707322669967; Wed, 07 Feb 2024 08:17:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707322669; cv=pass; d=google.com; s=arc-20160816; b=t+yBY3oKdI8n1oNmfBI7+JEw1pj2/u7ftt9ck6E/rrKE6NlT1xlU3ULAUcI2LxQxUn DjJ/93t4Zi2LSWFhotG7pXqrxxY1zwGZyrFRCGyNfVKqwwnLwn9RfE+H59qugY7whxkt bA2qV38Dpjt8czR9GLhFBLRbaZIlit+rqSREn2IpKqfKTwn4Cl3vRkYeeDhw/9Ezzg9j lMB0QD86Rdq/DOVHNDcSVoIQPDbcXCseHRfnmrv97jb3lVASfhrTbK/yShB+dZqSI6qP hWW5gDiT/nxUKKiuJ5jALPGVr9YvqO0XY3PCsAEq/7+Nx2lm5uM2DFspYseBnF9f3YZg HiGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/LG59njZWuFkviqiovWGZzoOS0eL7wO+Cvn37jpvLeU=; fh=xSvYvszlE/SBO3jY5AUFalPdwsQ1lNCDWglHLw1kj54=; b=uvN8Ql6ZX40sFLSGCS2Oqxt7qr0T1kPgRYkjnHRXs9kAtCBFUKXuE5cyWmFY6tMFA/ 3/98slkrL18rcZoBrWT8HUkWqNvrAbMgNSi3NE+rJPLCTr2XfbzmjzmA7MZco+PRmf6m JLclOcagjOor4R2yZ17ECEtasQ9854z8Kr45JzzLPibps5r4DZlg+VTKABTCIHZ7tsD9 x08FWbXna++3Dz0sTU593QCMG0y4GowfVCdBUMbG91ZZzRKQKaRQTJCzWCCMknIIpP0B Ttuc7/0um3aq6N/khu9ldi4HD25EgX89O3ZInj0rEorvKBS9VTfSQQ3F9fvMRPJX3714 h1Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=IDk+BHpz; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-56760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com X-Forwarded-Encrypted: i=2; AJvYcCXjp0mrYBjxKrKTmpjRzgp4bb4c0tTxcZLOZAkU1NY8uB1sFa/X/UZIGJlXhTqV4y0jjh8bMigenAQ2oBMp0nENniE3pBJMSnlPdxwISQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d24-20020a170906345800b00a3729764d02si1048423ejb.38.2024.02.07.08.17.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:17:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=IDk+BHpz; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-56760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7B1361F24CA7 for ; Wed, 7 Feb 2024 16:16:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBF39811EE; Wed, 7 Feb 2024 16:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="IDk+BHpz" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E9ED80625 for ; Wed, 7 Feb 2024 16:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707322585; cv=none; b=ch0D4Ygz5NbtkHbq2lbgBIyo5E25qWm8pw4dCjan2YDrlWNByUpSeQtBobPz1PuaSW0cm/6RiH3wFol+zhLb6sYkK3bklRiX8dMSpURLjPtyIKTH5sl+25QyudobfT5KVWUhctf69wNvfCTVpijoxOnwFtvJaNI7fLHa7VTw/sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707322585; c=relaxed/simple; bh=BOKr26TfbLV5p2rMhdEIUAqtyhY8h7WzRYzgqghRnz4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kKhCJof4C2t9Ht6KiT9zGUp82Co0ec96QiR26NVZEiZrY+XyWp/uk7X2QTGHNAoklUNB26a1ZnsZErl0adIS4rw0gm+Zstf+3bYVwEDc/CqSwso+n1+ElT7EB14OqEkUZ/wCxmY/M4W9F9LuFcw1yolKHxZXmfRdlVdvTENot6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=IDk+BHpz; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d0abdde3easo9954331fa.2 for ; Wed, 07 Feb 2024 08:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1707322580; x=1707927380; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/LG59njZWuFkviqiovWGZzoOS0eL7wO+Cvn37jpvLeU=; b=IDk+BHpzHroffKXqrMMamnhqj8GiqecZdhbVyelKDfsY5TWZxY27PuZWuw8rDi6HaE rL905ynF3y8e7HXN1Vl+CJxio0c655VCSY3H08aht+uMj6Og+I3P25SQ3sXnA7EQDJ8p ho+qisVCxA5XJ5W6SKxqidixlakisxLDnlVowwVrmj7tCDyn5RQrbem1GUO7Kk4FN6fG tYAXy2BJXFhwxvlxJsVLdbKIt5veBpyFHDaL06pa3G7+LIWblEBeuH1M6LSZmbOlgB7a /MJsMshhuJPQbQRPJXPcJCuZmqnFNs1EochBceuAfBfs1H46G9z5KkUO22QRg9y2pp5F oZSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707322580; x=1707927380; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/LG59njZWuFkviqiovWGZzoOS0eL7wO+Cvn37jpvLeU=; b=XYSLYPXt70W9bRcA/R8VnYEDL70pVwV5VT1lrJIXHPHhXUBKnQhN4sjvVooj6uYUZ5 8EDKbmMfTsOIYBLB84TDPQoOHCIaB93TEoU2xJ4+vnbWawaW4zUeXQNAmxkicsly7NtK TYBLaTMgkVvpR+L2prjTxgZRqX53OVoryd1aBqlaYD1RjFZurdphTAkK9OGnivM/P80F uj8n7SJiONt3iTYHe/kr+YdNfmqEimfPpsXYzN824GcNxhrifKI8ye/L8K9VlFhSmiG0 167mdNUvLlNQtjyv0NO8pBpEc1R0gSR7wpbQZsVKXrG3OlA3cQr5bJ9Au3iwYLvLUjT8 ZASg== X-Gm-Message-State: AOJu0YyxsfluyGizXxH3T61Y7XHdaR1LHEgqz6yQpRgcwgJH8+lcGWFf 4Ur8Dfcc6ZSlf+aL13V+LtTS/hixtIkiJooXcn6t3rh0LJ8o8CNvwVky/M2gXZ0+OUMEg8BITig 5 X-Received: by 2002:a2e:6e10:0:b0:2d0:9ced:58ec with SMTP id j16-20020a2e6e10000000b002d09ced58ecmr4098882ljc.32.1707322580462; Wed, 07 Feb 2024 08:16:20 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVTFA5cQOEXvqd4/sNIoklXf2LGHZkbAPFWqORKIDTYzCLzXaDCF/OS6dCsvtEWOVoxGPTsGxRbTdrbQSv/oDUd9r5mTa4RYjW6Sok2p5fKwcZBpUAFP5NAePZaTtC1g7GiyArJ2dqOnpbyJ2AQt0WRQZ4p7mI= Received: from alley ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id y11-20020a056402270b00b005606bb2cd20sm810141edd.54.2024.02.07.08.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:16:20 -0800 (PST) Date: Wed, 7 Feb 2024 17:16:18 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v4 14/14] dump_stack: Do not get cpu_sync for panic CPU Message-ID: References: <20240207134103.1357162-1-john.ogness@linutronix.de> <20240207134103.1357162-15-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240207134103.1357162-15-john.ogness@linutronix.de> On Wed 2024-02-07 14:47:03, John Ogness wrote: > dump_stack() is called in panic(). If for some reason another CPU > is holding the printk_cpu_sync and is unable to release it, the > panic CPU will be unable to continue and print the stacktrace. > > Since non-panic CPUs are not allowed to store new printk messages > anyway, there is no need to synchronize the stacktrace output in > a panic situation. > > For the panic CPU, do not get the printk_cpu_sync because it is > not needed and avoids a potential deadlock scenario in panic(). > > Link: https://lore.kernel.org/lkml/ZcIGKU8sxti38Kok@alley > Signed-off-by: John Ogness Makes sense. Reviewed-by: Petr Mladek Best Regards, Petr