RHEL 9.4 kernel panic on sg_remove_sfp_usercontext[sg] when closing sg device that is removed.

Solution Verified - Updated -

Issue

  • After upgrading from RHEL 9.3 to RHEL 9.4 (5.14.0-427.13.1.el9_4.x86_64), system is experiencing a kernel panic that was not seen on 9.3. The panic occurs when an application closes an sg device that was removed while the application had the device open. The backtrace shows mutex lock while performing [sg] module operation.
 #6 [ff43f389299cfd40] asm_exc_page_fault at ffffffffb0400bc2
    [exception RIP: mutex_lock+25]
     :::
 #7 [ff43f389299cfe00] blk_trace_remove at ffffffffaf8677f7
 #8 [ff43f389299cfe20] sg_device_destroy at ffffffffc0593406 [sg]
 #9 [ff43f389299cfe40] sg_remove_sfp_usercontext at ffffffffc05958d4 [sg]
#10 [ff43f389299cfe90] process_one_work at ffffffffaf72cee2

Environment

  • Red Hat Enterprise Linux 9.4
    • kernel 5.14.0-427.13.1.el9_4.x86_64
    • kernel 5.14.0-427.18.1.el9_4.x86_64

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