From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3D871356760 for ; Sun, 12 Jul 2026 16:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783873542; cv=none; b=sVVS3Qlf7oqu/h4vvqUNpyey4WHH+H87VkV+jykBEbli/3fy/UuR/yu3hRHSKUs727lWJ7+zUWcerqxQEv0FHAtFQuCdsjWoWosQCfUyWMDLUaXvGt/NLe6/BHtJAiCiSb1l+ohENY4L+/XVzGK3/WK2MK4VXnGX6jIlaGptNsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783873542; c=relaxed/simple; bh=lSI7LU0qtaVfyX0y2c0W/GGd2QIrg9b8ANiKqOVOIvA=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=Sv98vKWfSQHr2W/uQiebXPgb749H4JsW4EEZM5QDXMM4gSmv95IeJn/ao8M1hpJ/f9gh+w9wVJT+SNP3z4b/N5eJ7in1bckPYxBd+8H3N0XZaq6pX6Su1MNRHzoanplZ6A4SPzF5rQf++WzekIkq/4uYZIKSN3YuEFGAWznH3eM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iV29tDqT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iV29tDqT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EB7E1F000E9; Sun, 12 Jul 2026 16:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783873541; bh=2t1cjZCz1xB/ZbxPLJ1lprvc3Y2s5lq6CGehgs9Yino=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=iV29tDqTc3Zkl2t5VEk1BpvoQbhlkpqPDFgVfB43xjwROV3Z55Byss08oMC/QQDfs TVngCk4EWOjZuglBgnsZPiEXcB2/AqMY9lO0qDdvNEIWJbBcRvR7Exp4iZyqPMieu+ L4wbdKos+lmHNT8l9X/u42CQz+Io0tBY8oyk9dDEKAUjWlNrMWYoXN1dcT9k8Df3oP cu2Jh6j6mlEqVAptC9wrR4SJsonlQthtBO+//v3zmXUNqhp7UyFzocUG7ByFsPrEY9 /m5N7T+F4kVxgQzcLa2kqRhI5i8DxcmodKTnvqoA6vP2WcBaoHxZ/pD41KNp7OkSNE +5Pb6NR5DuDnw== Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfauth.phl.internal (Postfix) with ESMTP id 6ABB2F4024F; Sun, 12 Jul 2026 12:25:39 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-01.internal (MEProxy); Sun, 12 Jul 2026 12:25:39 -0400 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTGvSqIA+4jdHxdlTDVZoO/boMoyii2hTbJCys+X9VKy3BUu1CiXuQLpAy7nwRQkLr 0H373sSbeNwHGFgU51g089vp3uHwUavog1GSRNUpiWteQhezMzmsHbmqgMlWVI4bTmXPa/ Eal+P1CyYPNc7bdQslRUUCNpwkhzRmVTqX4orKXwPkdMD0vxgiYct2tWLSumzh2hGiuUnS vXRRJ/ADxXEBV/dJYXLRsQ4Abs0rpkDKqmWFtch7jKdAO6Va4FzhSIbMnFncyGwTrGPK0P oLxff8UaznLPFmjuqLXR1B8hawxWOFJvVPnYyA6Q4gX+CZjmLTNJZnWiQBdlLs8ty55yt2 N1V5KMqg+lhsk/De+enOaHJu4B5IZv5GL1J2ZOa0Xgxj5bWzJFiBZrRE2DQD1Gy7Daflr3 Nx6YpFgH84xVvB9AF8HqF/kJR30yProhXi+SwCXTK88sl2Z5vMX0Tj4D/c9d/RZE7gIyWH IX9tc/LFYfE7u8bIfAhHg7QpsDpl+esnbd9eaYn4yfRsdFmMBDqJV9Epkjx++6XYfqUlP0 860Hwa/zT+4iuwKethZICQ7VWC/8ZloSKlfz2v9d1Q5O37sA27yZH9vY/dcnt6qB+H3Wy8 dl3eq6KaoVRaErJaxy0UHuyVPiQh2M+cGWZYqyYpY5l6NF/axclJg/7M9tOQ X-ME-Proxy: Feedback-ID: ice86485a:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 39FC31820086; Sun, 12 Jul 2026 12:25:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Sun, 12 Jul 2026 19:25:19 +0300 From: "Ard Biesheuvel" To: "Breno Leitao" , "Yeoreum Yun" Cc: "Ilias Apalodimas" , "Borislav Petkov" , "Andy Lutomirski" , "Kees Cook" , "Tony Luck" , "Guilherme G. Piccoli" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H . Peter Anvin" , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Message-Id: In-Reply-To: References: <20260616-efi_timeout-v3-0-76dd1d26657b@debian.org> <20260616-efi_timeout-v3-5-76dd1d26657b@debian.org> Subject: Re: [PATCH v3 5/7] efi/runtime-wrappers: bound the wait for EFI runtime service calls Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 10 Jul 2026, at 16:47, Breno Leitao wrote: > On Fri, Jul 10, 2026 at 12:26:42PM +0100, Yeoreum Yun wrote: >> > On Fri, Jul 10, 2026 at 11:41:09AM +0100, Yeoreum Yun wrote: >> > > > Hello Yeoreum, >> > > > >> > > > On Thu, Jul 09, 2026 at 07:56:18AM +0100, Yeoreum Yun wrote: >> > > > > >> > > > > One of my concern is for the UpdateCapsule runtime service. >> > > > > It might have a case where takes more then 2 mins and there's one >> > > > > RFC to support a runtime capsule update for arm platform [1]. >> > > > >> > > > I'm not familiar with UpdateCapsule. Are you suggesting that a 2-minute >> > > > wait for an EFI call should be acceptable (?!) >> > > > >> > > > Wouldn't that trigger stalls and hung-task/wq warnings throughout the >> > > > kernel? >> > > >> > > Might for default config timeout for hung-task. However at least >> > > its timeout configurable. >> > > >> > > TBH, normally it wouldn't task more than 2 mins. >> > > But for a in case of *slow firmware*, would be good to make >> > > runtime-service timeout configurable at least? >> > >> > OK, that is fair request. >> > >> > I would suggest we do an additional patch with this change, if Ard is >> > positive on the idea. >> > >> > Yeoreum, would you like to do it, or should I do it? >> >> It's up to you. I don't care who will do this :) >> But if you have no bandwidth, I'll take once your patch is merged >> and Ard agrees for this. > > Sounds good. Let's wait for Ard's feedback on the additional patches > [1], and we can decide how to proceed from there. > > Link: https://lore.kernel.org/all/alDDv3XGXVdd1mri@gmail.com/ [1] Please send patches against efi/next, I will apply them promptly. UpdateCapsule is a special case that we can deal with separately