Page allocation failure by rdma-core driver and kernel panic due to invalid memory access

Solution Verified - Updated -

Issue

  • The following page allocation failure occurs, and then, in a minute after the page allocation failure, a kernel panic occurs with a message like BUG: unable to handle kernel paging request at XXXXX for example.
[7277049.611176] (fprintd): page allocation failure: order:7, mode:0x60c0c0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[7277049.611182] CPU: 5 PID: 2113771 Comm: (fprintd) Kdump: loaded Not tainted 4.18.0-348.12.2.el8_5.x86_64 #1
[7277049.611183] Hardware name: HPE ProLiant DL360 Gen10/ProLiant DL360 Gen10, BIOS U32 11/24/2021
[7277049.611184] Call Trace:
[7277049.611191]  dump_stack+0x5c/0x80
[7277049.611196]  warn_alloc.cold.114+0x7b/0x10d
[7277049.611201]  ? _cond_resched+0x15/0x30
[7277049.611202]  ? __alloc_pages_direct_compact+0x157/0x160
[7277049.611204]  __alloc_pages_slowpath+0xc87/0xcd0
[7277049.611208]  ? security_kernfs_init_security+0x2a/0x40
[7277049.611210]  __alloc_pages_nodemask+0x2db/0x310
[7277049.611213]  kmalloc_order+0x28/0x90
[7277049.611214]  kmalloc_order_trace+0x1d/0xa0
[7277049.611218]  __kmalloc+0x1ee/0x240
[7277049.611222]  ? sysfs_add_file_mode_ns+0x82/0x170
[7277049.611237]  ? ib_port_register_module_stat+0xb0/0xb0 [ib_core]
[7277049.611245]  alloc_group_attrs+0x40/0x120 [ib_core]
[7277049.611254]  ib_setup_port_attrs+0x561/0x690 [ib_core]
[7277049.611263]  add_one_compat_dev.part.22+0x1a7/0x220 [ib_core]
[7277049.611272]  rdma_dev_init_net+0xf5/0x1a0 [ib_core]
[7277049.611275]  ops_init+0x3a/0x100
[7277049.611277]  setup_net+0xee/0x250
[7277049.611279]  copy_net_ns+0xc3/0x180
[7277049.611283]  create_new_namespaces+0x170/0x210
[7277049.611285]  unshare_nsproxy_namespaces+0x55/0xa0
[7277049.611287]  ksys_unshare+0x18f/0x350
[7277049.611288]  __x64_sys_unshare+0xe/0x20
[7277049.611291]  do_syscall_64+0x5b/0x1a0
[7277049.611293]  entry_SYSCALL_64_after_hwframe+0x65/0xca

Environment

  • Red Hat Enterprise Linux 8
    • before kernel-4.18.0-372.9.1.el8
  • rdma-core package

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