Re: [PATCH] efivarfs: Rate limit statfs() handler

"Ard Biesheuvel" <[email protected]>
Newsgroups org.kernel.vger.linux-efi,org.kernel.vger.stable
Message-ID <[email protected]>

On Wed, 19 Aug 2026, at 19:29, Anisse Astier wrote:
> Hi Ard,
>
> I like the new approach, it's much simpler and easier to understand
>
> On Tue, Aug 18, 2026 at 04:11:50PM +0200, Ard Biesheuvel wrote:
>> Ravi reports that statfs() may be called by unprivileged users on the
>> efivarfs mount point, which may result in a flood of calls to the
>> QueryVariableInfo() runtime service. These calls are disproportionately
>> costly on x86 systems where the variable store is backed by SMM, as each
>> SMM entry requires a rendez-vous of all the CPUs.
>> 
>> So rate limit the calls to QueryVariableInfo() at twice per second, and
>
> It's already a high-rate in performance sensitive environment. I'd have
> gone higher at once per 10 seconds for example. But really, this is
> minor, so please consider this:
>
> Reviewed-by: <[email protected]>
>

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.