Pull EFI fixes from Ard Biesheuvel: "A couple of fixes for EFI regressions introduced this cycle: - Make EDID handling in the EFI stub mixed mode safe - Ensure that efi_mm.user_ns has a sane value - this is needed now that EFI runtime calls are preemptible on arm64" * tag 'efi-fixes-for-v6.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: kthread: Warn if mm_struct lacks user_ns in kthread_use_mm() arm64: efi: Fix NULL pointer dereference by initializing user_ns efi/libstub: gop: Fix EDID support in mixed-mode
Showing the changes to kernel (1 of 3 files). Show all
Unified · Split
| @@ -1599,6 +1599,7 @@ void kthread_use_mm(struct mm_struct *mm) · 1598 unmodified lines | |||
| 1599 | 1599 | ||
| 1600 | WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); | 1600 | WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD)); |
| 1601 | WARN_ON_ONCE(tsk->mm); | 1601 | WARN_ON_ONCE(tsk->mm); |
| 1602 | WARN_ON_ONCE(!mm->user_ns); | ||
| 1602 | 1603 | ||
| 1603 | /* | 1604 | /* |
| 1604 | * It is possible for mm to be the same as tsk->active_mm, but | 1605 | * It is possible for mm to be the same as tsk->active_mm, but |