Skip to content

Commit f094ee7

Browse files
committed
Merge tag 'efi-urgent-for-v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI fix from Ard Biesheuvel: "This works around a shortcoming in the memory acceptation API, which may apparently hog the CPU for long enough to trigger the softlockup watchdog. Note that this only affects confidential VMs running under the Intel TDX hypervisor, which is why I accepted this for now, but this should obviously be fixed properly in the future" * tag 'efi-urgent-for-v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efi/unaccepted: touch soft lockup during memory accept
2 parents 3d25a94 + 1c5a162 commit f094ee7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/firmware/efi/unaccepted_memory.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <linux/memblock.h>
55
#include <linux/spinlock.h>
66
#include <linux/crash_dump.h>
7+
#include <linux/nmi.h>
78
#include <asm/unaccepted_memory.h>
89

910
/* Protects unaccepted memory bitmap and accepting_list */
@@ -149,6 +150,9 @@ void accept_memory(phys_addr_t start, phys_addr_t end)
149150
}
150151

151152
list_del(&range.list);
153+
154+
touch_softlockup_watchdog();
155+
152156
spin_unlock_irqrestore(&unaccepted_memory_lock, flags);
153157
}
154158

0 commit comments

Comments
 (0)