Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3206284lqp; Tue, 26 Mar 2024 02:43:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8PamenuUwzS2YwhsT+W/z5KzY7WSfARDlEiCmAk2UTdfb77TnSBuIs5lVSvoP03PnGDYlZ/sUkpQViseuFGe+IPQeXzGEWGyk4Loeng== X-Google-Smtp-Source: AGHT+IEc9ceablah4GvkaAD195FQR/Xz3oX3uj8uy54XdoXYhgNPe2aoT/zdLqdYAW+3+yvYWENA X-Received: by 2002:a05:6358:785:b0:17f:5657:8d5f with SMTP id n5-20020a056358078500b0017f56578d5fmr7583127rwj.12.1711446235430; Tue, 26 Mar 2024 02:43:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711446235; cv=pass; d=google.com; s=arc-20160816; b=XnmbtlMNiGL9Wh+7/gEGR3Y9GaQ3QOzBL1pFbBrca9+G6UEby+ZCa7UizvnwPe8GXh uVBr207tHJnWfD7i/p90WZv/zAS/8tQ/OCk2suVxcsWWkBohzmaVUnTfdzpHWaod7m9F /7XLInmsFvptg+mAIduo7hK4lCOm/6nbDWTmahnslsKtncn5YKHmaPTOmNVBQTzjKqAU 26Y3P16vmt1KdEx21XwfUe0RLxBlL+jC7HneY9nsVRwUIA7u0h4tPORcGOC3h5BJqGN2 ez2o1kS6MsCKmiwIG/RKhrIq3qdJD1u2hADV18nDwzf1o9DiHjCnpS0w0nqOrPmw6T1L jVAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:in-reply-to:from:references:cc:to:subject:dkim-signature; bh=pa4+v+OWWgs+Mhq7aqttUTDLzvnew8aROhgGfDA182k=; fh=hGfknVfx7wSBdXnb7wYd9kSD4JvQg2TwkCWu+gU7VKI=; b=HzOMkP6606wqP2WJDZb6KlQDoRBkulXSv0rpZzUsJQeiX20IMhY7Lw6ELFXMxyPIPh 3Pa87DAI0fjQIg91qizZj8dsjhkHKLel4JLxTYS/JUsVYbWsP6auygdimEYCabUuwfWD PB9AZ2FfuYA4x1P/YBOyUfzZHBLN8hjUsScNfHJzee4xErP7kOvYkRto1M2TSaWfYDRa aLAKQGiT1O4hN7i+gbszgyw/hXsNQDjLXwGEZrWCARbWh9ArDZTlCIBOKN+4saxRT4FD 4IMj+YRltOlDSEeE7rZw4Zpj/HjVcFou63nzAn1agaLKoyWLKW+YZiYGXzeR14ezbxy2 ++IA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@w6rz.net header.s=default header.b=yxSfnXz9; arc=pass (i=1 spf=pass spfdomain=w6rz.net dkim=pass dkdomain=w6rz.net); spf=pass (google.com: domain of linux-kernel+bounces-118692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118692-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r18-20020a63d912000000b005cf60fc5fc9si8906440pgg.274.2024.03.26.02.43.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118692-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=fail header.i=@w6rz.net header.s=default header.b=yxSfnXz9; arc=pass (i=1 spf=pass spfdomain=w6rz.net dkim=pass dkdomain=w6rz.net); spf=pass (google.com: domain of linux-kernel+bounces-118692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118692-linux.lists.archive=gmail.com@vger.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 603832E7A2D for ; Tue, 26 Mar 2024 09:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D1D54D9FE; Tue, 26 Mar 2024 09:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=w6rz.net header.i=@w6rz.net header.b="yxSfnXz9" Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) (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 E2DA744393 for ; Tue, 26 Mar 2024 09:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445788; cv=none; b=R23LrLPIQZHf+KyRBityj2N8OmpM417qx9P4Al+EsMTp5Nqpc7Gsn8pe1B7UeavuDwGe/vQ6m3K6MnVaCnHyOS0hj1yWnn3Bz4tTD85gajldZDb5/qA8XN4Evdq9nLK6s0QKGzNqmu15LEdqCf6AsoBSYUNaLUhVTTCHCUJ5Am8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445788; c=relaxed/simple; bh=o5C3GkJI1teIOoQde29gZtmnTs5PIrjRWxe/Bv0X+Ec=; h=Subject:To:Cc:References:From:In-Reply-To:Message-ID:Date: MIME-Version:Content-Type; b=sWR7NURRtswOB+aXt3KlZlIcuZsQ8aAeSo1o/qB3FZ/dIG4qkx0SnOIBEtvc6PnAWoQ64hiL5NDo4djs7RZAFXyep8DDNWUtU+jIVesxlSvqg5PhPapZHiQMPI6t24lQoOzkqAAjatAvaBmLv/2vVQIaHfN4/VeJvk2lK+BaAdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=w6rz.net; spf=pass smtp.mailfrom=w6rz.net; dkim=pass (2048-bit key) header.d=w6rz.net header.i=@w6rz.net header.b=yxSfnXz9; arc=none smtp.client-ip=44.202.169.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=w6rz.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=w6rz.net Received: from eig-obgw-6006a.ext.cloudfilter.net ([10.0.30.182]) by cmsmtp with ESMTPS id ompxrHDzcs4yTp3EGruTz2; Tue, 26 Mar 2024 09:36:25 +0000 Received: from box5620.bluehost.com ([162.241.219.59]) by cmsmtp with ESMTPS id p3EGrVPB4EKylp3EGrck39; Tue, 26 Mar 2024 09:36:24 +0000 X-Authority-Analysis: v=2.4 cv=Bombw5X5 c=1 sm=1 tr=0 ts=66029718 a=30941lsx5skRcbJ0JMGu9A==:117 a=30941lsx5skRcbJ0JMGu9A==:17 a=IkcTkHD0fZMA:10 a=K6JAEmCyrfEA:10 a=-Ou01B_BuAIA:10 a=20KFwNOVAAAA:8 a=VwQbUJbxAAAA:8 a=fgEOHDi3K2wBU5iTwNUA:9 a=QEXdDO2ut3YA:10 a=AjGcO6oz07-iQ99wixmX:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w6rz.net; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:In-Reply-To:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pa4+v+OWWgs+Mhq7aqttUTDLzvnew8aROhgGfDA182k=; b=yxSfnXz9hXztGLvF8k44vLbD9A 4Q7p2aqUFFM0MIRN+fEHofArkIbn6PkgdbbAMV3V0Vrvq+b4uzcRtDCY4sfmXM906SqCWwijqsR5n XoxVi/2ZMN2YjvGnKIPKKJYZjg3PfYrnFBU4Jo3v+LyOqYEafqP2vLZrEPoKdPDh33oD6a/hjIR4/ 1hab5PsZwHktqEkYLFj0LH8vZQQ4/5B7u2bRoYjFfgbj32op/MphGqZG+T2p7+gSPQkQeqCgyfIaj oJzXaA2H7sDVe1KzXj2rRLRO0KcbsMOfhm9zz2WoU016Ib4eqy3owMagAcEgvmCSLNRawmcZ6i9yN VhdZkKAg==; Received: from c-98-207-139-8.hsd1.ca.comcast.net ([98.207.139.8]:53514 helo=[10.0.1.47]) by box5620.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rp3EF-001e57-2F; Tue, 26 Mar 2024 03:36:23 -0600 Subject: Re: [PATCH 6.8 002/715] workqueue.c: Increase workqueue name length To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Audra Mitchell , Tejun Heo References: <20240324223455.1342824-1-sashal@kernel.org> <20240324223455.1342824-3-sashal@kernel.org> From: Ron Economos In-Reply-To: <20240324223455.1342824-3-sashal@kernel.org> Message-ID: <10844429-b80f-ca9d-bf1d-c42efcc635f6@w6rz.net> Date: Tue, 26 Mar 2024 02:36:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux armv7l; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 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; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5620.bluehost.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - w6rz.net X-BWhitelist: no X-Source-IP: 98.207.139.8 X-Source-L: No X-Exim-ID: 1rp3EF-001e57-2F X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-98-207-139-8.hsd1.ca.comcast.net ([10.0.1.47]) [98.207.139.8]:53514 X-Source-Auth: re@w6rz.net X-Email-Count: 46 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: d3NpeHJ6bmU7d3NpeHJ6bmU7Ym94NTYyMC5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAtJXEDQJBW2J507va10O6rxrajr8umZ9+CfhytwmAsUbhd9TH7yscipQriFq8RftQBJI/qgxkg3YZ1OosPxd6CbiOjbgDU1zEvrwR4BJ2kykF6DeEsz ndqSRPXceX927eTmQlFxA6EgG2UvJ7tYuUofxlvCJiep7PmmxZLrolnxrVl0ept5ZuzBWf7/3O85aQ5RoAHO4Me1Y5cyfx8l20w= On 3/24/24 3:23 PM, Sasha Levin wrote: > From: Audra Mitchell > > [ Upstream commit 31c89007285d365aa36f71d8fb0701581c770a27 ] > > Currently we limit the size of the workqueue name to 24 characters due to > commit ecf6881ff349 ("workqueue: make workqueue->name[] fixed len") > Increase the size to 32 characters and print a warning in the event > the requested name is larger than the limit of 32 characters. > > Signed-off-by: Audra Mitchell > Signed-off-by: Tejun Heo > Stable-dep-of: 5797b1c18919 ("workqueue: Implement system-wide nr_active enforcement for unbound workqueues") > Signed-off-by: Sasha Levin > --- > kernel/workqueue.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/kernel/workqueue.c b/kernel/workqueue.c > index 7b482a26d7419..8a06fddb23e66 100644 > --- a/kernel/workqueue.c > +++ b/kernel/workqueue.c > @@ -108,7 +108,7 @@ enum { > RESCUER_NICE_LEVEL = MIN_NICE, > HIGHPRI_NICE_LEVEL = MIN_NICE, > > - WQ_NAME_LEN = 24, > + WQ_NAME_LEN = 32, > }; > > /* > @@ -4666,6 +4666,7 @@ struct workqueue_struct *alloc_workqueue(const char *fmt, > va_list args; > struct workqueue_struct *wq; > struct pool_workqueue *pwq; > + int len; > > /* > * Unbound && max_active == 1 used to imply ordered, which is no longer > @@ -4692,9 +4693,12 @@ struct workqueue_struct *alloc_workqueue(const char *fmt, > } > > va_start(args, max_active); > - vsnprintf(wq->name, sizeof(wq->name), fmt, args); > + len = vsnprintf(wq->name, sizeof(wq->name), fmt, args); > va_end(args); > > + if (len >= WQ_NAME_LEN) > + pr_warn_once("workqueue: name exceeds WQ_NAME_LEN. Truncating to: %s\n", wq->name); > + > max_active = max_active ?: WQ_DFL_ACTIVE; > max_active = wq_clamp_max_active(max_active, flags, wq->name); > Minor issue. The upstream commit 8318d6a6362f5903edb4c904a8dd447e59be4ad1 "workqueue: Shorten events_freezable_power_efficient name" goes with this patch. Otherwise the warning "kernel: workqueue: name exceeds WQ_NAME_LEN. Truncating to: events_freezable_power_efficien" occurs. Same for 6.7.11-rc2 and 6.6.23-rc2.