kexec -s causes system panic on kernel-rt on UEFI machine

Solution Verified - Updated -

Issue

  • Kernel crashes with efi=noruntime to disable efi.
  • Kernel panics with the following messages:
[  103.794324] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 
[  103.794326] PGD 0 P4D 0  
[  103.794329] Oops: 0000 [#1] PREEMPT_RT SMP PTI 
[  103.794331] CPU: 4 PID: 13901 Comm: kexec Tainted: G          I      --------- -  - 4.18.0-226.rt7.38.el8.x86_64 #1 
[  103.794332] Hardware name: Dell Inc. PowerEdge R640/0RGP26, BIOS 2.2.11 06/13/2019 
[  103.794338] RIP: 0010:memcpy_erms+0x6/0x10 
[--]
[  103.794348] Call Trace: 
[  103.794354]  efi_runtime_map_copy+0x28/0x30 
[  103.794359]  bzImage64_load+0x644/0x8bc 
[  103.794364]  arch_kexec_kernel_image_load+0x6d/0x70 
[  103.794369]  kimage_file_alloc_init+0x1d9/0x2b0 
[  103.794371]  __x64_sys_kexec_file_load+0x18d/0x290 
[  103.794375]  do_syscall_64+0x87/0x1a0 
[  103.794379]  entry_SYSCALL_64_after_hwframe+0x65/0xca 
[  103.794381] RIP: 0033:0x7f4aa2b7178d 
[--]
[  103.794413] CR2: 0000000000000000 
[  104.091821] ---[ end trace 0000000000000002 ]--- 
[  104.099653] RIP: 0010:memcpy_erms+0x6/0x10 

Environment

  • Red Hat Enterprise Linux 8 [Real time kernel]

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content