Skip to content

Commit 808f0ab

Browse files
committed
Merge tag 'x86_urgent_for_v5.17_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Borislav Petkov: "Prevent softlockups when tearing down large SGX enclaves" * tag 'x86_urgent_for_v5.17_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sgx: Silence softlockup detection when releasing large enclaves
2 parents e9c2578 + 8795359 commit 808f0ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/cpu/sgx/encl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ void sgx_encl_release(struct kref *ref)
410410
}
411411

412412
kfree(entry);
413+
/* Invoke scheduler to prevent soft lockups. */
414+
cond_resched();
413415
}
414416

415417
xa_destroy(&encl->page_array);

0 commit comments

Comments
 (0)