From mboxrd@z Thu Jan 1 00:00:00 1970 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 2FB0C30E828 for ; Tue, 5 May 2026 08:40:22 +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=1777970423; cv=none; b=IPOnee5bGFvtpe7qPQI3hMHuwy0EGqWQp9OCtPFqDnrXnuhVvm2EhuXrq21g0idv5xTFFoADb9FOUfhuj6jFXIS3V3qD45/pPpInK7Ydjs8imO3nlikhrWJmaGx0oTjoPrc05+WQz7pnSWKU2fPt9wdhX5c8OAIDS2BfggYAZIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777970423; c=relaxed/simple; bh=0CPP07akC6/k5nrlMGh3g5zAgHAolOylhewhEvbOSd0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jd2ALaGrctkC7ROLuxxLequid1y7F+XUkM3hw3jspr13qDh5D12APUvIAxOeJVcBzFyaw+rX5j9tkDlvHBpg1aEEh7foOSk/5Z2IJlHdZOBi1KKtOTfrgU1qQz4f7hR/J8OI1/QtBn6vGNZzrss4RPAizoqaYvcMJnDaOqv52d4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66EABC2BCB4; Tue, 5 May 2026 08:40:20 +0000 (UTC) Message-ID: <31002e6e-3983-4e30-aef6-bd2cd51aec40@tuxon.dev> Date: Tue, 5 May 2026 11:40:18 +0300 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [cip-dev] [PATCH for 5.10.y] phy: renesas: rcar-gen3-usb2: Fix the use of msleep during spinlock To: pavel@nabladev.com, Nobuhiro Iwamatsu Cc: stable@vger.kernel.org, gregkh@linuxfoundation.org, cip-dev@lists.cip-project.org, Claudiu Beznea , Sasha Levin References: <20260501225859.504868-1-nobuhiro.iwamatsu.x90@mail.toshiba> Content-Language: en-US From: Claudiu Beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, all, On 5/4/26 12:18, Pavel Machek via lists.cip-project.org wrote: > Hi! > >> From: Nobuhiro Iwamatsu >> >> This fixes an issue caused by the use of msleep during spinlock. >> In the original commit, msleep was changed to mdelay, but this fix was not >> carried over during the backport to 5.10.y tree. > > Doing this as a quick fix is probably okay, but this should not be > final version. > > You are right that msleep inside spinlock will blow up immediately: > >> ``` >> [ 62.677594] BUG: scheduling while atomic: kworker/1:2/126/0x00000002 >> [ 62.683957] Modules linked in: > > But mdelay for 20 msec inside irqsave spinlock is borderline > unacceptable, too. > > I believe we'll need Renesas to analyze/fix this properly after the > CVE emergency is done. > > This fix is good for now, but better fix is needed. > > Claudiu, are you right person for this, or should we cc someone else? I'm going to investigate and come with a better approach for this. Thank you and apologies for any inconveniences, Claudiu