Kernel panic due to "BUG: unable to handle kernel NULL pointer dereference" in third party module 'cbsensor'

Solution Verified - Updated -

Issue

  • Server crashed with RIP raw_spin_lock_irqsave in cbsensor_2_5_1230541 third party kernel module.
PID: 1512     TASK: ffff96cf3a9d0000  CPU: 1    COMMAND: "elastic-agent"
 #0 [ffff96cf3a9cf800] machine_kexec at ffffffffa4269514
 #1 [ffff96cf3a9cf860] __crash_kexec at ffffffffa4329e82
 #2 [ffff96cf3a9cf930] crash_kexec at ffffffffa4329f78
 #3 [ffff96cf3a9cf948] oops_end at ffffffffa49bc818
 #4 [ffff96cf3a9cf970] no_context at ffffffffa427974c
 #5 [ffff96cf3a9cf9c0] __bad_area_nosemaphore at ffffffffa4279a2a
 #6 [ffff96cf3a9cfa10] bad_area_nosemaphore at ffffffffa4279b54
 #7 [ffff96cf3a9cfa20] __do_page_fault at ffffffffa49bf8d0
 #8 [ffff96cf3a9cfa90] do_page_fault at ffffffffa49bfb05
 #9 [ffff96cf3a9cfac0] page_fault at ffffffffa49bb7b8
    [exception RIP: _raw_spin_lock_irqsave+34]
    RIP: ffffffffa49ba7a2  RSP: ffff96cf3a9cfb78  RFLAGS: 00010046
    RAX: 0000000000000000  RBX: 0000000000000046  RCX: 0000000000000006
    RDX: 0000000000000001  RSI: ffff96cf3a9cfda8  RDI: 0000000000000000
    RBP: ffff96cf3a9cfb80   R8: 6170747361665f6c   R9: 2f353278302b6874
    R10: 0000000000000676  R11: 613278302f353278  R12: ffff96cf3a9cfda8
    R13: 00000000000005e8  R14: ffff96d2617dedd0  R15: ffffb613c1a38e60
    ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
#10 [ffff96cf3a9cfb88] ec_read_lock at ffffffffc085392d [cbsensor_2_5_1230541]  <<----
#11 [ffff96cf3a9cfbb0] __ec_process_tracking_get_path_data at ffffffffc085b6b9 [cbsensor_2_5_1230541]
#12 [ffff96cf3a9cfbd8] ec_process_exec_handle_set_exec_identity at ffffffffc085c01d [cbsensor_2_5_1230541]
#13 [ffff96cf3a9cfc00] ec_process_handle_alloc at ffffffffc085c113 [cbsensor_2_5_1230541]
#14 [ffff96cf3a9cfc30] ec_hashtbl_handle_callback at ffffffffc0859a6e [cbsensor_2_5_1230541]
#15 [ffff96cf3a9cfc40] ec_hashtbl_get at ffffffffc085e501 [cbsensor_2_5_1230541]
#16 [ffff96cf3a9cfc78] ec_hashtbl_find at ffffffffc085e780 [cbsensor_2_5_1230541]
#17 [ffff96cf3a9cfcb8] ec_process_tracking_get_handle at ffffffffc0859bc2 [cbsensor_2_5_1230541]
#18 [ffff96cf3a9cfcd8] __ec_do_file_event at ffffffffc085151c [cbsensor_2_5_1230541]
#19 [ffff96cf3a9cfd50] __ec_sys_open at ffffffffc08519e6 [cbsensor_2_5_1230541]
#20 [ffff96cf3a9cfd80] ec_sys_openat at ffffffffc085225d [cbsensor_2_5_1230541]
#21 [ffff96cf3a9cfe38] tmhook_invoke at ffffffffc0ae1d95 [tmhook]
#22 [ffff96cf3a9cfe78] tmhook_handler at ffffffffc0ae1f98 [tmhook]
#23 [ffff96cf3a9cff50] system_call_fastpath at ffffffffa49c539a
    RIP: 0000564522fb440e  RSP: 000000c0004f7288  RFLAGS: 00000206
    RAX: 0000000000000101  RBX: ffffffffffffff9c  RCX: ffffffffffffffff
    RDX: 0000000000080000  RSI: 000000c0009502a0  RDI: ffffffffffffff9c
    RBP: 000000c0004f7330   R8: 0000000000000000   R9: 0000000000000000
    R10: 0000000000000000  R11: 0000000000000202  R12: 000000c0009502a0
    R13: 0000000000000000  R14: 000000c0009d4820  R15: ffffffffffffffff
    ORIG_RAX: 0000000000000101  CS: 0033  SS: 002b

Environment

  • RHEL 7
  • Third Party module cbsensor

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