eth: sungem: remove .ndo_poll_controller to avoid deadlocks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fe09bb619096a0aa139210748ddc668c2dbe2308 · < 6400d205fbbcbcf9b8510157e1f379c1d7e2e937| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
eth: sungem: remove .ndo_poll_controller to avoid deadlocks
Erhard reports netpoll warnings from sungem:
netpoll_send_skb_on_dev(): eth0 enabled interrupts in poll (gem_start_xmit+0x0/0x398) WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c
gem_poll_controller() disables interrupts, which may sleep. We can't sleep in netpoll, it has interrupts disabled completely. Strangely, gem_poll_controller() doesn't even poll the completions, and instead acts as if an interrupt has fired so it just schedules NAPI and exits. None of this has been necessary for years, since netpoll invokes NAPI directly.
From the CVE record · Linux
The Linux kernel’s sungem Ethernet driver can sleep while interrupts are disabled during netpoll, causing warnings and potential deadlocks. The input does not establish an attacker path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with the sungem Ethernet driver should check their systems; affected versions are not specified.