From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 A5911233939 for ; Wed, 19 Aug 2026 14:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787149086; cv=none; b=sx2qwZvr5Su67AkR3y1cl5cEKyy947gfgurvuuDJZYeCT9d0dE02EkOJVGPxUGZotVdULqTBECx3TaBCYqOCM/XBEYuSgd4GE0NheAPpwA5BKB71ijzK17GWVwW3xJZ7ItHSd/7d+obSf80YoRiGtSUteRFuuxxX2T47n8dIOzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787149086; c=relaxed/simple; bh=mIaiv5G5V/PNol1vtHve/VuhTgLrZmOxWcSbdOfvRYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Oq8bDR/XVusxFH8vWnb2UVbNSeOZ6tKFQNo44K4Qn40MGsckFy0FW6mIcD2YQm84w4YIH71Q1PJtSfDy8vjGfvjnNPVvJ8arULSNSjmnzhWIpS5NpkJ5ahgDiaeV+KGkaoRPKfT5vGNBGM9Ph3CHLIRmqtGs1m2rZ5Dxqh9z2R0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=yFdVY6ZH; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CcKCXbn4; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yFdVY6ZH"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CcKCXbn4" Date: Wed, 19 Aug 2026 16:18:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1787149082; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mIaiv5G5V/PNol1vtHve/VuhTgLrZmOxWcSbdOfvRYc=; b=yFdVY6ZHpjJfToLDXeLqyMn1mO9RbvDFo+PQsDiXQ6W/3QQbeRIimNOxhy6xO00lVkHrCX dW7KusaPL/FfMNmivaiqE2NLZHmG0XYBaXTq95K1GkAkbJzfPmaC/bYDisnHVQkJb7O8AE 8F2q9iXV7MpJ08cuGureyoXwNmcnvtO+wjaS/ZNWqAQe0DgkCf5X61VEBymiXEDIGd6Oig bPTRFrwb7n2t+8j0C2hC4Iym1QCUJCQ1a6MoCxSHXytecNiOkCELejg3l7LZCa+yZI/WSO N0UkNhxwz13vg9reUCQiG6pG2uDNaAq2tC+txFwpMhYUupXFXptgYvurBYHwpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1787149082; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mIaiv5G5V/PNol1vtHve/VuhTgLrZmOxWcSbdOfvRYc=; b=CcKCXbn41+JVoUa3L/QpGrAQaTa0RhjGsFV7eBT8LO5Yg0I8YeGrGQPQqN4XiUgf0ntk+Z bGEtJ84/1hz3w6BA== From: Sebastian Andrzej Siewior To: Tejun Heo Cc: Lai Jiangshan , Thomas Gleixner , Peter Zijlstra , syzbot+1bd20115328f8254ed62@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH wq/for-7.3] workqueue: Annotate cb_lock nesting when draining a dead BH pool Message-ID: <20260819141800.c_TRbgyD@linutronix.de> References: <178707884181.3094421.2098832455828801685@slm.duckdns.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <178707884181.3094421.2098832455828801685@slm.duckdns.org> On 2026-08-18 08:47:21 [-1000], Tejun Heo wrote: =E2=80=A6 > The nesting can't deadlock. A pool's bh_worker() runs nested only while t= he > pool's CPU is dead, entered from a live pool's bh_worker() on the draining > CPU, so the ordering is always live to dead. CPU hotplug operations are > serialized and the drain is synchronous, so the nesting depth never excee= ds > two. Annotate the inner acquisition with SINGLE_DEPTH_NESTING. This assumes that the pool for the draining is different than the pool handling the current work item so it works. Reviewed-by: Sebastian Andrzej Siewior