This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKPORT: efi/arm: Revert "Defer persistent reservations until after …
…paging_init()" This reverts commit eff896288872d687d9662000ec9ae11b6d61766f, which deferred the processing of persistent memory reservations to a point where the memory may have already been allocated and overwritten, defeating the purpose. Kernel panic is happened with CentOS 8.0 on the eMAG2 emulator. The original patchset was pushed to fix the crash on arm64 system with many CPUs. It was already in CentOS 8.0 (https://patchwork.kernel.org/cover/10670151/). However there's issue with 1 of the patches, and the maintainer reverted from kernel v5.2. The patch is required to fix the kernel panic for CentOS 8.0 on the eMAG2 emulator: [ 0.000000] Call trace: [ 0.000000] efi_apply_persistent_mem_reservations+0xa0/0xc0 [ 0.000000] setup_arch+0x1bc/0x55c [ 0.000000] start_kernel+0x78/0x4d8 [ 0.000000] Code: 8b35d260 6b15003f 110006b5 54fffcad (f9400c01) [ 0.000000] random: get_random_bytes called from print_oops_end_marker+0x30/0x60 with crng_init=0 [ 0.000000] ---[ end trace 0000000000000000 ]--- [ 0.000000] Kernel panic - not syncing: Fatal exception This patch is backported from: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.2&id=582a32e708823e5957fd73ccd78dc4a9e49d21ea Signed-off-by: Ard Biesheuvel <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Khuong Dinh <[email protected]>
- Loading branch information