Server experiencing warning logs "CPU: X PID: xx at kernel/trace/trace_kprobe.c"

Solution Verified - Updated -

Issue

  • Below WARNING logs are present in /var/log/messages file :

    • RHEL 6:
    Apr 27 07:00:01 srv1 kernel: ------------[ cut here ]------------
    Apr 27 07:00:01 srv1 kernel: WARNING: at kernel/trace/trace_kprobe.c:1715 kprobe_dispatcher+0x1ff/0x210() (Not tainted)
    Apr 27 07:00:01 srv1 kernel: Hardware name: PRIMERGY RX300 S6             
    Apr 27 07:00:01 srv1 kernel: profile buffer not large enough
    Apr 27 07:00:01 srv1 kernel: Modules linked in: inet_diag mptctl mptbase cpufreq_ondemand acpi_cpufreq freq_table mper
    f bonding ipv6 power_meter acpi_ipmi ipmi_si ipmi_msghandler microcode iTCO_wdt iTCO_vendor_support sg i2c_i801 lpc_ic
    h mfd_core igb dca i2c_algo_bit i2c_core ptp pps_core i7core_edac edac_core shpchp ext4 jbd2 mbcache sr_mod cdrom sd_m
    od crc_t10dif pata_acpi ata_generic ata_piix megaraid_sas dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_
    wait_scan]
    Apr 27 07:00:01 srv1 kernel: Pid: 28875, comm: khelper Not tainted 2.6.32-754.43.1.el6.x86_64 #1
    Apr 27 07:00:01 srv1 kernel: Call Trace:
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810818d1>] ? warn_slowpath_common+0x91/0xe0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810819d6>] ? warn_slowpath_fmt+0x46/0x60
    Apr 27 07:00:01 srv1 kernel: [<ffffffff81565aff>] ? kprobe_dispatcher+0x1ff/0x210
    Apr 27 07:00:01 srv1 kernel: [<ffffffff815628a1>] ? opt_pre_handler+0x61/0x90
    Apr 27 07:00:01 srv1 kernel: [<ffffffff8156184c>] ? optimized_callback+0xac/0xc0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff811ac551>] ? do_execve+0x1/0x2c0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff8100968a>] ? sys_execve+0x4a/0x80
    Apr 27 07:00:01 srv1 kernel: [<ffffffff81567898>] ? kernel_execve+0x68/0xd0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810a3f91>] ? ____call_usermodehelper+0x131/0x140
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810a42d0>] ? __call_usermodehelper+0x0/0xd0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff81567820>] ? child_rip+0x20/0x30
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810a42d0>] ? __call_usermodehelper+0x0/0xd0
    Apr 27 07:00:01 srv1 kernel: [<ffffffff810a3e60>] ? ____call_usermodehelper+0x0/0x140
    Apr 27 07:00:01 srv1 kernel: [<ffffffff81567800>] ? child_rip+0x0/0x30
    Apr 27 07:00:01 srv1 kernel: ---[ end trace 7b41a93efafa95d0 ]---
    
    • RHEL 7:
    Oct 22 17:42:33 hostname kernel: ------------[ cut here ]------------
    Oct 22 17:42:33 hostname kernel: WARNING: CPU: 0 PID: 2702 at kernel/trace/trace_kprobe.c:1194 kprobe_dispatcher+0x5ca/0x5e0
    Oct 22 17:42:33 hostname kernel: profile buffer not large enough    <<<<<<<<
    Oct 22 17:42:33 hostname kernel: Modules linked in:
    Oct 22 17:42:33 hostname kernel: ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter vmw_vsock_vmci_transport vsock sunrpc drbg ansi_cprng dm_crypt xfs libcrc32c sb_edac iosf_mbi crc32_pclmul ghash_clmulni_intel ppdev aesni_intel vmw_balloon lrw gf128mul glue_helper ablk_helper cryptd joydev pcspkr sg vmw_vmci i2c_piix4 parport_pc parport pcc_cpufreq binfmt_misc ip_tables ext4 mbcache jbd2 sr_mod cdrom ata_generic pata_acpi vmwgfx drm_kms_helper    sd_mod crc_t10dif crct10dif_generic syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm crct10dif_pclmul crct10dif_common crc32c_intel nfit ata_piix libnvdimm libata serio_raw vmxnet3 vmw_pvscsi drm_panel_orientation_quirks dm_mirror dm_region_hash dm_log dm_mod
    Oct 22 17:42:33 hostname kernel: CPU: 0 PID: 2702 Comm: dracut Not tainted 3.10.0-1062.1.2.el7.x86_64 #1
    Oct 22 17:42:33 hostname kernel: Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 12/12/2018
    Oct 22 17:42:33 hostname kernel: Call Trace:
    Oct 22 17:42:33 hostname kernel: [<ffffffff849792c2>] dump_stack+0x19/0x1b
    Oct 22 17:42:33 hostname kernel: [<ffffffff8429a878>] __warn+0xd8/0x100
    Oct 22 17:42:33 hostname kernel: [<ffffffff8429a8ff>] warn_slowpath_fmt+0x5f/0x80
    Oct 22 17:42:33 hostname kernel: [<ffffffff8498c03a>] ? fetch_deref_string_size+0x5a/0x90
    Oct 22 17:42:33 hostname kernel: [<ffffffff8498bd4a>] kprobe_dispatcher+0x5ca/0x5e0
    Oct 22 17:42:33 hostname kernel: [<ffffffff84987d64>] aggr_pre_handler+0x54/0xb0
    Oct 22 17:42:33 hostname kernel: [<ffffffff84450bb1>] ? do_execve_common.isra.24+0x1/0x880
    Oct 22 17:42:33 hostname kernel: [<ffffffff84986eda>] kprobe_ftrace_handler+0xba/0x120
    Oct 22 17:42:33 hostname kernel: [<ffffffff84450bb5>] ? do_execve_common.isra.24+0x5/0x880
    Oct 22 17:42:33 hostname kernel: [<ffffffff84450bb0>] ? prepare_bprm_creds+0x80/0x80
    Oct 22 17:42:33 hostname kernel: [<ffffffff844516c9>] ? SyS_execve+0x29/0x30
    Oct 22 17:42:33 hostname kernel: [<ffffffff843600b4>] ftrace_ops_list_func+0xf4/0x120
    Oct 22 17:42:33 hostname kernel: [<ffffffff849909a4>] ftrace_regs_call+0x5/0x81
    Oct 22 17:42:33 hostname kernel: [<ffffffff84450bb1>] ? do_execve_common.isra.24+0x1/0x880
    Oct 22 17:42:33 hostname kernel: [<ffffffff84450bb5>] ? do_execve_common.isra.24+0x5/0x880
    Oct 22 17:42:33 hostname kernel: [<ffffffff84985459>] ? kretprobe_trampoline_holder+0x9/0x9
    Oct 22 17:42:33 hostname kernel: [<ffffffff8498d478>] stub_execve+0x48/0x80
    Oct 22 17:42:33 hostname kernel: ---[ end trace 8cd94f8d40303625 ]---
    

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 6
    • 7
    • 8
    • 9
  • ftrace function tracing enabled

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