]> Gentwo Git Trees - linux/.git/commit
efi/runtime-wrappers: Keep track of the efi_runtime_lock owner
authorArd Biesheuvel <ardb@kernel.org>
Wed, 15 Oct 2025 20:56:37 +0000 (22:56 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 18:59:22 +0000 (18:59 +0000)
commita2860501203cf7a2116adf3bb4e4c456c5750872
treebada8f503d4a20c26abf9f10c6dde321b2e12ba6
parent40374d308e4e456048d83991e937f13fc8bda8bf
efi/runtime-wrappers: Keep track of the efi_runtime_lock owner

The EFI runtime wrappers use a file local semaphore to serialize access
to the EFI runtime services. This means that any calls to the arch
wrappers around the runtime services will also be serialized, removing
the need for redundant locking.

For robustness, add a facility that allows those arch wrappers to assert
that the semaphore was taken by the current task.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/efi/runtime-wrappers.c
include/linux/efi.h