'Voluntary context switch within RCU read-side critical section' message logged by the kernel when onload module is in use

Solution Verified - Updated -

Issue

  • Kernel logged Voluntary context switch within RCU read-side critical section! message followed by WARNING: CPU: 2 PID: 374862 at kernel/rcu/tree_plugin.h:316 rcu_note_context_switch+0x247/0x260 warning.
  • Backtrace of task:
crash> bt
PID: 1082965  TASK: ff23808865a58000  CPU: 31   COMMAND: "Process_name"
 #0 [ff5c3e92ebf33aa8] __schedule at ffffffff9bd37028
 #1 [ff5c3e92ebf33b10] schedule at ffffffff9bd3751d
 #2 [ff5c3e92ebf33b20] schedule_timeout at ffffffff9bd3c20d
 #3 [ff5c3e92ebf33b88] __wait_for_common at ffffffff9bd37f00
 #4 [ff5c3e92ebf33c00] __wait_rcu_gp at ffffffff9b382486
 #5 [ff5c3e92ebf33c38] synchronize_rcu at ffffffff9b38dd1a
 #6 [ff5c3e92ebf33c80] expand_files at ffffffff9b5ee98d
 #7 [ff5c3e92ebf33cd8] alloc_fd at ffffffff9b5eeb30
 #8 [ff5c3e92ebf33d20] oo_fd_replace_file at ffffffffc09def31 [onload]
 #9 [ff5c3e92ebf33d58] efab_tcp_helper_handover at ffffffffc09df391 [onload]
#10 [ff5c3e92ebf33da0] oo_fop_unlocked_ioctl at ffffffffc09dd3f8 [onload]
#11 [ff5c3e92ebf33e40] __x64_sys_ioctl at ffffffff9b5e1e57
#12 [ff5c3e92ebf33e70] do_syscall_64 at ffffffff9bd2b159
#13 [ff5c3e92ebf33f50] entry_SYSCALL_64_after_hwframe at ffffffff9be000dc
    RIP: 00007ffff7de3c5b  RSP: 00007fff569b55a0  RFLAGS: 00000246
    RAX: ffffffffffffffda  RBX: 00007fff38119120  RCX: 00007ffff7de3c5b
    RDX: 00007fff569b560c  RSI: 00000000c0045a3d  RDI: 00000000000000ff
    RBP: 00000000000000ff   R8: 0000000000000000   R9: 0000000000000000
    R10: 00007ffef3700c00  R11: 0000000000000246  R12: 00000000c0045a3d
    R13: 00007ffff7fc45e0  R14: 00007fff569b6a40  R15: 0000000000000002
    ORIG_RAX: 0000000000000010  CS: 0033  SS: 002b

Environment

  • Red Hat Enterprise Linux 9
  • Third-party onload module is in use.

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