Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2383060rdb; Mon, 5 Feb 2024 05:07:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZZ+NdSwvv0y1Jb6tlc7cRA4zcS4zILGeQjkKxeWAN8TXm7pUOBWxDUPqudMFKWbtZKSzq X-Received: by 2002:a05:6a20:1591:b0:19e:551b:4936 with SMTP id h17-20020a056a20159100b0019e551b4936mr8717153pzj.24.1707138468814; Mon, 05 Feb 2024 05:07:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707138468; cv=pass; d=google.com; s=arc-20160816; b=LeuBlXBnebfRAbxyStn8TxpMP4RZ9tQomf0cg6oDanpWji2ChwM5GxVWMAM6mfsAbJ P6WQrnSiDib67uiEf8gQx1lLY8aipyIfFMFqPBkf9dX+gofhUAK9ZEktC9BRDKiVhuRZ I0Kag5aTZ/jtbqqUqIi412V3yg7KKDx21SOPBEF100bwicS2ge/V8hwkozMynFb7B0Rv OAr8KVG8k7SeEzNJu4NLPTRT+dtyQqcGBazNSsgXKUYnmywy5mqNfHdw3dWmTdAiV2pl xr4EiGtMTEbZkBdQ8D4uqhtXZwAg7WTd5n8NQ6Qrc4UcJ5Hv0Df3Ldef6MxYIM1gdplU aLKA== 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=2QXzXXwRZfKvmUtqjt4P+dHxSnzs9bcTO1bAgWVXXC0=; fh=UfFwQVLhQeJBnWacMHLkZAYbKabWaKbSNHeUUj4s4IQ=; b=MeAIyR9LRWtqejiUWwObOOpVD1XzLVPFAemfniaNTyK0Iphwk7Z5469bsyYxmj4fWE ME17DUek1VmdW3xiTCRqrd+rv666YNs3ee/xgh2tjSnJZ/+eoV6fgLCaZwx6Ubw6Im69 aBOYKuTWFNNB87668ziu/mzSzyKzx68Q1b8Tg3JxAGpfOGEEQKz0Nwtmf8ruOMwj1igR HyDUNuCY/26CxAvrOOOA4/B1zogjtxrvsQBFiQoVlr9In+S09O/5HoKbfAPPLH1ia6g9 jdNC296+wp/JzM4L5/cwKDcasrihluRQuCHUyE5bg/CCkLwjRwhniA4jxrp3UepiyWTI ROsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=JICJc5iu; 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-52683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com X-Forwarded-Encrypted: i=1; AJvYcCVr/5RYF7D/IMHrfjkJIzm4WXlG+aoXlGsvMn5bQm0cJ5iruic+ofFdiKQdqQb+wWb8EYndQcW8jFIBkmejzQfwn4PrFpSm44i3qZAkdg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x9-20020a63aa49000000b005c220a94525si6008277pgo.90.2024.02.05.05.07.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:07:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=JICJc5iu; 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-52683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52683-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BD3628195A for ; Mon, 5 Feb 2024 13:07:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 769171CA86; Mon, 5 Feb 2024 13:07:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="JICJc5iu" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 5A3A01BDD3 for ; Mon, 5 Feb 2024 13:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138459; cv=none; b=jGR117lh1rLgPIF9aJeCc3kjJq1qvpSsjhzI2Z92t6eVjt3qdd6RIxUiOh/wRlNn8PF6+DXESfnceAadZT8hbWia5pp3vco8q3WIY4xWm58ocNx21Wfv75QUz2GgXi+6zaRLbQJk2i4isR4uyoyDZtxivjPSC0KE7RxJOwZPHrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138459; c=relaxed/simple; bh=8IPgAyBOVlUjnkv8wh+Tm4lw+PMeIONQj8dzU1ytE3A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k3ZCw3ABk3U9+4/1u9jCKJwVcnmR4Jq32tTTVYmf3DssuneMwQ2pwKjTwSEo20BvJdUEerNkS9BjKimljMVHsnrTCYbcsQO8qQl4qq377PFSN82T1QjvR+O2rcIOjrGokoMrrH6XSVFZwT9yH3i8ysIb2O0Qxq3D8Twh8p2FQ3w= 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=JICJc5iu; arc=none smtp.client-ip=209.85.208.169 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-f169.google.com with SMTP id 38308e7fff4ca-2d09bdddfc9so20693531fa.2 for ; Mon, 05 Feb 2024 05:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1707138455; x=1707743255; 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=2QXzXXwRZfKvmUtqjt4P+dHxSnzs9bcTO1bAgWVXXC0=; b=JICJc5iux+vDhZDe+F5nTSWNnDwWBL4XfRySup2VdqXmQNnmfkaU4rlSYIcCELTUF/ lhbnCsqZPTZlh4TYCSg89YVDd+xVLwEeTsRikgQO5kE8/wRUtLVaPTa84ks4Rqa0uAX1 iJeIqSh/7Z/aOiIjaNqe21icfLyJdXQLK2ITQ3F+fjUbYg/KF266hhKLaDhm5lDblP3m AlwzlIOKkNNaCC0v6Kob93OAh0/qSZ8NYhOH06KAChFJFAiTMlCJ+Dks7Wc32TVTOCIg Yxlzmrq6mGSdkIB3WVjZTI4PB8pyMWPCnNauWTzvShhmSdDJDLsRVHMZlH59fDlztvCw idgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707138455; x=1707743255; 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=2QXzXXwRZfKvmUtqjt4P+dHxSnzs9bcTO1bAgWVXXC0=; b=OaRrgcETPoj8TJcVRmLFtlJ0Ta+oWvg5MKIirrJoYt4ZxbDnIS6QRc05+AtOwkoE/d dzkFmMjedA5UhxQkZ95wP3koRU5SaFDNh+R6I0FpEEPWGKujRv5EnBqfczqYXdHJzERa aDdKAFkMBiHbRavy/5bdfUS3/mJSOtvh8Bh9M2WMIADBnE+WRip5+7fgjwRubTh4FYtw GOMA4FWi422jbffzAaaVYOc2dVZj7a95qgnI7pPkcRWRhKFm3/pFDSQMi1dy8az3FfP/ Sm0rfpEziQ1rkaQaPPIkDRcqnibiddoK66NpjxC7indRdSTw7KKT9oF4zP8Kckup7UUB 8BYQ== X-Gm-Message-State: AOJu0Yyg7CneO91VbpiCYoKxV8G3Hw0qOR3uMDvQcID9ZFTX/x5gUQsU S0ky9AbhUIi878OyAO+IQGd8u4tN94hDedf+LDEJplMJyJyevrJ5Il/FwHhYkL0= X-Received: by 2002:a2e:9081:0:b0:2cd:1366:4aa9 with SMTP id l1-20020a2e9081000000b002cd13664aa9mr5752768ljg.25.1707138455398; Mon, 05 Feb 2024 05:07:35 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUcbVCMXiuGEVBvNpiKwsOgnfIlxdtU0yH+3bKYd8NAqpexK7JwzXttmuGtRjsOSKMiYo1ZQmIU8WlRIZdEFwvTO4if4cclWvQrf0blwafgWvY0Ra8GQqTAETy0kJjOQJtlEIqc2OEecuBmQBxHplBaO+yyToyewE9PT6mBNnK/p83v2fKbPwvLNvkiOmvc/6U3MObMBOq1tlK4gdxLp329/6j2hKYY/TOapQ8WGezvUthkJaY4cS4NogPrQj5541J4HDTRrP6VNJ4QIlst3z0hf+wta7/kfyQDB/5FXVJoX9q210QyqGDoHD7PpI5zRp8ImT241AyCIMzqjw== Received: from alley ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id ch17-20020a0564021bd100b0055c8a30152bsm3729106edb.83.2024.02.05.05.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:07:35 -0800 (PST) Date: Mon, 5 Feb 2024 14:07:33 +0100 From: Petr Mladek To: "Paul E. McKenney" Cc: Tejun Heo , Jonas Oberhauser , Lai Jiangshan , Steven Rostedt , John Ogness , 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: References: <410d6a87-bf34-457e-b714-1e6149d48532@paulmck-laptop> <25fd8537-5a27-4b62-9bf9-1ee7ca59b5b8@paulmck-laptop> 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: On Fri 2024-02-02 09:40:05, Paul E. McKenney wrote: > On Fri, Feb 02, 2024 at 06:56:28AM -1000, Tejun Heo wrote: > > Hello, > > > > On Fri, Feb 02, 2024 at 08:35:51AM -0800, Paul E. McKenney wrote: > > > Good point, and if this sort of thing happens frequently, perhaps there > > > should be an easy way of doing this. One crude hack that might come > > > pretty close would be to redefine the barrier() macro to be smp_mb(). > > > > > > But as noted earlier, -ENOREPRODUCE on today's -next. I will try the > > > next several -next releases. But if they all get -ENOREPRODUCE, I owe > > > everyone on CC an apology for having sent this report out before trying > > > next-20240202. :-/ > > > > I think I saw that problem too but could reproduce it with or without the > > workqueue changes, so I did the lazy thing "oh well, somebody is gonna fix > > that" and just tested as-is. It's a bit worrying that ppl don't seem to > > already know what the culprit is. Hmm... I can't reproduce it anymore > > either. > > Glad that it is not just me! I think... ;-) > > > So, there is some chance that this may really be a subtle breakage. If you > > ever see it happening again, triggering sysrq-t and capturing the dmesg > > output (network should still work fine, so these shouldn't be too difficult) > > may help. sysrq-t has workqueue state dump at the end which should clearly > > indicate if anything is stalled in workqueue. > > Good point, if it does recur, I could try it on bare metal. Please, me, John, and Sergey know if anyone see this again. I do not feel comfortable when there is problem which might make consoles calm. Well, there is no queued printk change. Also I do not see anything obvious in the changes added to 6.7 which might cause this behavior. > > That said, another data point. In my test setup, I use the earlyprintk boot > > option which enables console output way before than workqueue becomes > > operational, so having on console output at all is highly unlikely to be > > indicative of workqueue problem. My memory is hazy but it seems like I can > > no longer reproduce the problem on the same git commit. Maybe it was a > > problem on the qemu side? > > It might have been a qemu issue, but I am using the same qemu. In theory, it might also be caused by a change in the serial console driver. But I do not see anything obvious there either. Best Regards, Petr