On Amazon EC2 Nitro platform running RHEL 7/8, the Fast boot using "kexec -e " and "systemctl kexec" causes the kernel to crash.

Solution Verified - Updated -

Issue

  • On Amazon EC2 Nitro platform running RHEL 7/8, the Fast boot using kexec -e and systemctl kexec causes the kernel to crash.
  • The same kernel panic is appearing with kexec -p and echo c > /proc/sysrq-trigger as well.
[    3.327901] sched: Unexpected reschedule of offline CPU#1!
[    3.334363] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x34/0x40
[    3.346699] Modules linked in:
[    3.352238] CPU: 0 PID: 1 Comm: init Not tainted 4.18.0-80.1.2.el8_0.x86_64 #1
[    3.363631] Hardware name: Amazon EC2 t3.large/, BIOS 1.0 10/16/2017
[    3.370639] RIP: 0010:native_smp_send_reschedule+0x34/0x40
[    3.377330] Code: 05 21 90 3b 01 73 15 48 8b 05 78 af 10 01 be fd 00 00 00 48 8b 40 30 e9 9a 94 bb 00 89 fe 48 c7 c7 a8 68 e8 9e e8 b6 28 06 00 <0f> 0b c3 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 53 48 83 ec 20
[    3.398020] RSP: 0018:ffff98e9f9403e48 EFLAGS: 00010086
[    3.404505] RAX: 0000000000000000 RBX: ffff98e9f9523080 RCX: ffffffff9f059d28
[    3.411891] RDX: 0000000000000001 RSI: 0000000000000096 RDI: 0000000000000046
[    3.419227] RBP: ffff98e8c6debd80 R08: 00000000000001c4 R09: ffff98e7c00bba20
[    3.426548] R10: ffffffff9e261930 R11: ffffffff9f81db0d R12: ffff98e8c6dec93c
[    3.433821] R13: ffff98e9f9403e98 R14: 0000000000000046 R15: 0000000000023080
[    3.441132] FS:  0000000000000000(0000) GS:ffff98e9f9400000(0000) knlGS:0000000000000000
[    3.452947] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.459798] CR2: 00007f4744f65e04 CR3: 000000020d40a001 CR4: 00000000007606f0
[    3.467213] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    3.474633] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    3.482040] PKRU: 55555554
[    3.487370] Call Trace:
[    3.492728]  <IRQ>
[    3.497747]  check_preempt_curr+0x7a/0x90
[    3.503641]  ttwu_do_wakeup+0x19/0x130
[    3.509483]  try_to_wake_up+0x1e3/0x4b0
[    3.515407]  swake_up_locked.part.2+0x13/0x40
[    3.521560]  swake_up+0x27/0x40
[    3.527235]  rcu_process_callbacks+0x3bc/0x450
[    3.533416]  __do_softirq+0xe4/0x2f8
[    3.539264]  irq_exit+0xf7/0x100
[    3.544813]  smp_apic_timer_interrupt+0x74/0x130
[    3.551110]  apic_timer_interrupt+0xf/0x20
[    3.557119]  </IRQ>
[    3.562164] RIP: 0010:panic+0x201/0x247
[    3.568011] Code: eb a6 83 3d 3f b9 96 01 00 74 05 e8 28 51 02 00 48 c7 c6 20 62 81 9f 48 c7 c7 48 12 e9 9e e8 43 31 06 00 fb 66 0f 1f 44 00 00 <31> db e8 87 3e 0d 00 4c 39 eb 7c 1d 41 83 f4 01 48 8b 05 e7 b8 96
[    3.588882] RSP: 0018:ffffa64200c57e10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
[    3.600512] RAX: 0000000000000056 RBX: ffff98e8c6dabd00 RCX: ffffffff9f059d28
[    3.607747] RDX: 0000000000000000 RSI: 0000000000000096 RDI: 0000000000000046
[    3.614870] RBP: ffffa64200c57e80 R08: 00000000000001c2 R09: ffff98e7c00bb8e0
[    3.622025] R10: ffffffff9e261930 R11: ffffffff9f81db6d R12: 0000000000000000
[    3.629309] R13: 0000000000000000 R14: 0000000000000001 R15: ffff98e9cd3be8f0
[    3.636457]  ? vgacon_putc+0x10/0x10
[    3.642111]  do_exit.cold.22+0x26/0xc1
[    3.647819]  ? __do_page_fault+0x26d/0x4e0
[    3.653744]  do_group_exit+0x3a/0xa0
[    3.659436]  __x64_sys_exit_group+0x14/0x20
[    3.665353]  do_syscall_64+0x5b/0x1b0
[    3.671109]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[    3.677631] RIP: 0033:0x7f4744f65e2e
[    3.683574] Code: Bad RIP value.
[    3.689383] RSP: 002b:00007ffc31fe74d8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
[    3.700687] RAX: ffffffffffffffda RBX: 00007f4744f6e528 RCX: 00007f4744f65e2e
[    3.707849] RDX: 000000000000007f RSI: 000000000000003c RDI: 000000000000007f
[    3.715110] RBP: 00007f47451704f0 R08: 00000000000000e7 R09: 00007ffc31fe73e8
[    3.722450] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002
[    3.729653] R13: 0000000000000002 R14: 00007f4745170538 R15: 00007f4745170520
[    3.736929] ---[ end trace 8c393e698ea328c8 ]--

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • AWS Nitro Platform(C,M,R,T,Z series)
    e.g- C5, C5d, C5n, i3.metal, I3en, M5, M5a, M5ad, M5d, p3dn.24xlarge, R5, R5a, R5ad, R5d, T3, T3a, and Z1d.

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