diff options
author | Mario Limonciello <[email protected]> | 2024-02-16 19:56:42 -0600 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2024-02-19 13:39:44 +0100 |
commit | 76d41fb063338781e936765b7ed74224215ca178 (patch) | |
tree | eeb7262853570d9887285e520ffb25976ae27a6b /drivers/platform/x86/serdev_helpers.h | |
parent | e7096150580849429ff3d43dd69a718bb2036be4 (diff) |
platform/x86/amd/pmf: Fix a potential race with policy binary sideload
The debugfs `update_policy` file is created before
amd_pmf_start_policy_engine() has completed, and thus there could be
a possible (albeit unlikely) race between sideloading a policy and the
BIOS policy getting setup.
Move the debugfs file creation after all BIOS policy is setup.
Fixes: 10817f28e533 ("platform/x86/amd/pmf: Add capability to sideload of policy binary")
Reported-by: Hans de Goede <[email protected]>
Closes: https://lore.kernel.org/platform-driver-x86/[email protected]/T/#m2c445f135e5ef9b53184be7fc9df84e15f89d4d9
Signed-off-by: Mario Limonciello <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/serdev_helpers.h')
0 files changed, 0 insertions, 0 deletions