Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp980735rdb; Fri, 2 Feb 2024 09:36:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGi/LSOUq/lshF0JZv1UGEE/3TfKFN+4uWEzuNxP95soT0u8HipuC3LLWkGflLJXfJvNLqK X-Received: by 2002:a17:90b:1e53:b0:28e:849c:cb81 with SMTP id pi19-20020a17090b1e5300b0028e849ccb81mr8957263pjb.46.1706895389365; Fri, 02 Feb 2024 09:36:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706895389; cv=pass; d=google.com; s=arc-20160816; b=oFoFT7Er2HvoKxedX5waK7A3DY344/VYAaTYyLFHeqEQBw0htiLXfz8OMXJko/qREs O5+p7LvFybozq8q2dStly3/4KaPiTx1tSRCSDYTEvc6RzB8uowHcHTA94eFZlJZfZE5p lfvjeKzRXn2+gZfqutaMEx6tvmLz3CveeZ26mmFSOUYqmw98l++4D6dGQ/yVf4MKmX9V HCIBfd85clKeg4TGBLe72p5qQCkiKy1gmDCm+M82mz8Y2kotjJYObhunURqEm8VY9u+p FrjYk4G+oWPVDfKgA9G2AuvGzz7QlEphNSRiOBz6xVsMEOsaIobtS0ryMXdkT7RziqXH Naig== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=7LNn7yE+MyK9wkGjxcGVOIzRnNvMyO2/GLlvXFspP+8=; fh=XdWJFB5mH+cK8ktsXvCBxnD7FZzeEmDZdUwGsUawj6k=; b=PnM5m6YZr5sBRL3knGaCeuCLvJ7HfRONtvy7KfhSqGCkf5wI82fgTQhTzOYfnfC0TL KKejHhpH9YNQK4OhvkGGyekwBJgYjZcSnBZlDCzwzL/qkA9YLOtVQl8VMuE3AjbDMNvC +WJlOeGPcIwPevG2KowzWyaCyLEumk83iWiirz1nikFmITZ8znLeR2btJzw/mjtzitoc eiqda57eIDgN++U1eXmWfhmmlLbjPoGuFDvbsVV3m0mHqb/1Gkaq6xWysYFHNJ8tLu96 WbJ2KeYIHmZb1vV01S05th1HIIgzzdmkSz4y6QlEeztVTqLgO2ZW8m2x1qEsujFT2d7q GuDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rpMKqthZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50246-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCX03R+fGr/SENhHTth2SsGCDvVvOvf7cQ7RW71lWplBoDTMZ/dPGldHlm4EjanS6FfTfT6Ofq8BRZMYBHWbNFMEAZFHHbQvsHjIxVYQEA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f3-20020a17090ace0300b002909c748412si237067pju.128.2024.02.02.09.36.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:36:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50246-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rpMKqthZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50246-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 09681284B86 for ; Fri, 2 Feb 2024 17:36:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 917F214C597; Fri, 2 Feb 2024 17:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rpMKqthZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7B2814C590; Fri, 2 Feb 2024 17:36:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895360; cv=none; b=MdjfSDbVRqXY0AuL8TckjgIY+IjGyabvOTgjNWb05PSEsAOH/EexZN4vhanY/+UQ5nKGKFhBVcwzJHXhzb2rcSvbVgpRJY63JfCQv9AfW/kQ+UTOD8A+siaZ4qu+y5G+oRdRY9S3ZdhgpzHGmN20IRdZTUE+qEQYECa3gKrz6iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895360; c=relaxed/simple; bh=UYyH8TykNOaf9eOepP88xxy1k+wbxKRjO1XaaKsDlu4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t/lJ+Vg1lntNWVwBNRRyIXSmSvtF17GcCVaSg5cFkfSsoKXskessK4MxQxyH55QIcfDibrtMFWj7qxexe2C8SQLC4fUTHYGPbRezMVyjXwE55Nsyc0UpDPN4Y1Hx222CB5O+UuOpkr2nY0MAZ+ChgsfhCtiY0hg/2MEmEdfAuZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rpMKqthZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E5E9C43390; Fri, 2 Feb 2024 17:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706895360; bh=UYyH8TykNOaf9eOepP88xxy1k+wbxKRjO1XaaKsDlu4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=rpMKqthZp0ja71+tULbyWb3/Fp6LyDNeEBn2lwOeVfzAzfeFhmqKp004qfJSoklEK UeXLHMIDa4xYdIvJODlvLMXpBcVSsQsqgNHPRq9mrlynVJGf2aluagBA/HR1c4hna0 3Uqf9NPav27xB5syWiDfsNHwvcyb4a0+4mDmSTIBiZ8nbIzTbc8WAOgE9rb3WMANRE WHPFrVgOgMbHA84qx+Z819PWwwQuFcnbHP81wXhodK4qfdldzabcxgsVNga6b7rHxN nRD3Hm/Aw7TDIkblsnbx8Ax6pM1Q0rkNbmbHz6uszKpiovoxbVsac0gcujdXF5xpLP U1V9ChB/ClDHA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D1B0ACE2250; Fri, 2 Feb 2024 09:35:59 -0800 (PST) Date: Fri, 2 Feb 2024 09:35:59 -0800 From: "Paul E. McKenney" To: John Ogness Cc: Tejun Heo , Lai Jiangshan , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Stephen Rothwell , linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [BUG] workqueues and printk not playing nice since next-20240130 Message-ID: <4a0b8cfc-f15e-4201-9e1c-d8479611488d@paulmck-laptop> Reply-To: paulmck@kernel.org References: <410d6a87-bf34-457e-b714-1e6149d48532@paulmck-laptop> <87le83ara7.fsf@jogness.linutronix.de> <7b5a386e-2dcf-49f1-a8e9-c46d2a9f8800@paulmck-laptop> <87zfwibxzy.fsf@jogness.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: <87zfwibxzy.fsf@jogness.linutronix.de> On Fri, Feb 02, 2024 at 06:08:25PM +0106, John Ogness wrote: > On 2024-02-02, "Paul E. McKenney" wrote: > >> The printk ringbuffer contents would certainly be interesting. > >> > >> If you build the GDB scripts (CONFIG_GDB_SCRIPTS) then you will have: > >> > >> (gdb) lx-dmesg > > > > This says no such command even though I do have CONFIG_GDB_SCRIPTS=y > > in my .config. > > You actually need to build them as well. The target is "scripts_gdb" > > And you probably need to add: > > add-auto-load-safe-path /path/to/your/kernel/build/directory > > to your .gdbinit > > (This is documented in Documentation/dev-tools/gdb-kernel-debugging.rst) Thank you! Next time I am in a similar situation, I will pay more attention to the documentation. > >> As an alternative, you could copy the contents of > >> Documentation/admin-guide/kdump/gdbmacros.txt into your .gdbinit and > >> then will have: > >> > >> (gdb) dmesg > > > > This one hangs. > > :-/ I will look into this. > > > On the other hand, next-20240202 doesn't show the problem. No idea > > what might have changed. :-/ > > Did you check the backtrace on all the "threads"? I would expect one of > them has tty in it and is probably deadlocked. There are known problems > that if a WARN or lockdep triggers while holding the port lock, that CPU > will deadlock itself. That has the effect that no output is generated, > but all the other CPUs will run fine. And even printk() calls will > happily store into the ringbuffer because they use trylock for printing > and the deadlocked CPU will be holding the lock. Again, thank you, and another thing for me to try should this start happening again. Thanx, Paul