Plugging devices that declare more LEDs than they are known to input-leds driver causes kernel warnings and soft lockups

Solution Verified - Updated -

Issue

  • After plugging a device that declares more LEDs than is currently known to the input-leds driver, the following warning may appear:

    kernel: WARNING: CPU: 2 PID: 32742 at drivers/input/input-leds.c:115  input_leds_connect+0x276/0x280
    
  • After unplugging or unbinding (through the sysfs interface) such a device, a soft lockup may occur:

    kernel: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [command:1234]
    …
    kernel: RIP: 0010:[<ffffffffaaaa32dd>]  [<ffffffffaaaa32dd>] lock_timer_base.isra.34+0x4d/0x50
    

Environment

  • Red Hat Enterprise Linux 7.5
  • Seen with the following USB devices:
    • Ultimarc IPAC
    • External HDD Western Digital
    • Imation-IronKey

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