diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2026-08-01 17:28:04 +0300 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2026-08-20 14:49:39 +0300 |
| commit | b2326338dc683e8c1067c0cbf7a47986c4190902 (patch) | |
| tree | 611dba74b0d536f7085b12b04d2798a8971104c4 /tools/perf/scripts/python/bin/export-to-sqlite-report | |
| parent | eb01ffabeb52251f821c18438af8a65391f7ac79 (diff) | |
| download | linux-b2326338dc683e8c1067c0cbf7a47986c4190902.tar.gz linux-b2326338dc683e8c1067c0cbf7a47986c4190902.zip | |
efivarfs: Rate limit statfs() handler
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
return the most recently obtained value for calls that are elided.
Cc: <stable@vger.kernel.org>
Reported-by: Ravi Bangoria <ravi.bangoria@amd.com>
Fixes: d86ff3333cb1 ("efivarfs: expose used and total size")
Reviewed-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions
