System crashed after getting error for 'native_write_cr0+0x38'

Solution Unverified - Updated -

Issue

  • System crashed with invalid address for sys_call_table access.
[38850.652509] BUG: unable to handle kernel paging request at ffffffff88200500
[38850.652595] PGD 1ae2613067 P4D 1ae2613067 PUD 1ae2614063 PMD 8000001ae1c000e1 
[38850.652693] Oops: 0003 [#1] SMP PTI
[38850.652765] CPU: 0 PID: 64925 Comm: modprobe Kdump: loaded Tainted: P        W  OE    --------- -  - 4.18.0-477.15.1.el8_8.x86_64 #1
...
[38850.654197] Call Trace:
[38850.654314]  ? 0xffffffffc1ff4000
[38850.654411]  do_one_initcall+0x46/0x1d0           
[38850.654512]  ? do_init_module+0x22/0x230
[38850.654802]  ? kmem_cache_alloc_trace+0x142/0x280
[38850.655106]  do_init_module+0x5a/0x230
[38850.655207]  load_module+0x151e/0x1850
[38850.655325]  ? __do_sys_finit_module+0xb1/0x110
[38850.655428]  __do_sys_finit_module+0xb1/0x110
[38850.655530]  do_syscall_64+0x5b/0x1b0
[38850.655630]  entry_SYSCALL_64_after_hwframe+0x61/0xc6
[38850.655734] RIP: 0033:0x7fa09f0fc9bd
  • Before the crash, it was showing the below error.
[38850.652281] ------------[ cut here ]------------
[38850.652284] CR0 WP bit went missing!?
[38850.652288] WARNING: CPU: 0 PID: 64925 at arch/x86/kernel/cpu/common.c:415 native_write_cr0+0x38/0x50
...
[38850.652429] Call Trace:
[38850.652445]  nbapp_init+0x230/0x1000 [nbcli]
[38850.652450]  ? 0xffffffffc1ff4000
[38850.652452]  do_one_initcall+0x46/0x1d0
[38850.652456]  ? do_init_module+0x22/0x230
[38850.652460]  ? kmem_cache_alloc_trace+0x142/0x280
[38850.652464]  do_init_module+0x5a/0x230
[38850.652466]  load_module+0x151e/0x1850
[38850.652471]  ? __do_sys_finit_module+0xb1/0x110
[38850.652473]  __do_sys_finit_module+0xb1/0x110
[38850.652476]  do_syscall_64+0x5b/0x1b0
[38850.652480]  entry_SYSCALL_64_after_hwframe+0x61/0xc6
[38850.652484] RIP: 0033:0x7fa09f0fc9bd

Environment

  • Red Hat Enterprise Linux 8.7 (kernel-4.18.0-425.3.1.el8)
  • 3rd party module nbcli or any modules that modifies sys_call_table

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