The kernel crashes in perf_prepare_sample() due to a possible random memory corruption

Solution Unverified - Updated -

Issue

  • The kernel crashed in perf_prepare_sample() due to an access attempt to the invalid kernel address.
[1024377.371366] BUG: unable to handle kernel paging request at 0000000000023098
[1024377.371408] PGD 234612067 P4D 234612067 PUD 233265067 PMD 0 
[1024377.371412] Oops: 0000 [#1] SMP NOPTI
[1024377.371415] CPU: 3 PID: 34805 Comm: BESClient Kdump: loaded Not tainted 4.18.0-80.el8.x86_64 #1
[1024377.371416] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
[1024377.371457] RIP: 0010:perf_prepare_sample+0xb6/0x550
[1024377.371459] Code: 66 01 43 06 f7 c5 00 04 00 00 74 41 49 8b 74 24 08 b8 08 00 00 00 48 85 f6 74 2e 48 83 3e 07 48 89 f0 8b 56 18 76 0c 48 8b 00 <03> 50 18 48 83 38 07 77 f4 8d 4a 03 83 c9 07 8d 79 fd 89 7e 1c 29
[1024377.371460] RSP: 0018:ffffbceb44797d78 EFLAGS: 00010212
[1024377.371462] RAX: 0000000000023080 RBX: ffffbceb44797db8 RCX: 0000000000000020
[1024377.371463] RDX: 0000000000000000 RSI: ffff9f8a75cc3968 RDI: 000a2a92046ed03a
[1024377.371464] RBP: 0000000000000406 R08: 0000000000000014 R09: ffff9f8a75cdec00
[1024377.371465] R10: ffff9f8a75cde900 R11: 00000000deae45f3 R12: ffff9f8a75cdec00
[1024377.371466] R13: ffff9f8a72a43800 R14: ffff9f8a75cde900 R15: 000000000000047d
[1024377.371467] FS:  00007fb781ef4700(0000) GS:ffff9f8a75cc0000(0000) knlGS:0000000000000000
[1024377.371468] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[1024377.371469] CR2: 0000000000023098 CR3: 00000002348bc004 CR4: 00000000007606e0
[1024377.371498] PKRU: 55555554
[1024377.371499] Call Trace:
[1024377.371529]  perf_event_output+0x2a/0x80
[1024377.371541]  ? bpf_perf_event_output_raw_tp+0x110/0x160
[1024377.371544]  bpf_perf_event_output_raw_tp+0x136/0x160
[1024377.371560]  ? bpf_trace_run2+0x2d/0x50
[1024377.371578]  ? _do_fork+0x1c1/0x390
[1024377.371596]  ? _cond_resched+0x15/0x30
[1024377.371610]  ? do_syscall_64+0x5b/0x1b0
[1024377.371615]  ? entry_SYSCALL_64_after_hwframe+0x65/0xca
[1024377.371616] Modules linked in: nft_chain_route_ipv4 xt_CHECKSUM nft_chain_nat_ipv4 ipt_MASQUERADE nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 nft_counter nft_compat tun bridge stp llc devlink nf_tables nfnetlink vmw_vsock_vmci_transport vsock sunrpc nls_utf8 isofs crct10dif_pclmul crc32_pclmul vmw_balloon ghash_clmulni_intel joydev pcspkr sg vmw_vmci i2c_piix4 ip_tables xfs libcrc32c sr_mod cdrom sd_mod ata_generic vmwgfx drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm crc32c_intel drm serio_raw ahci ata_piix libahci libata vmxnet3 vmw_pvscsi dm_mirror dm_region_hash dm_log dm_mod
[1024377.371802] Features: eBPF/event eBPF/rawtrace
[1024377.371810] CR2: 0000000000023098

Environment

  • Red Hat Enterprise Linux 8.0 GA

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