CVE-2026-99005: drm/i915/gt: Unmask interrupts only when ACTIVE is true
In the Linux kernel, the following vulnerability has been resolved:
drm/i915/gt: Unmask interrupts only when ACTIVE is true
There is a small race window between intelrpsboost() reading a stale ACTIVE state and queuing rps->work, where ACTIVE may be changed via asynchronous calls triggered by wakeref drop. This means that rpswork() could be triggered after the GT has been parked, so unmasking RPS PM interrupts would happen without holding PM wakelock. This sequence of events may be observed during liverc6ctxwa() selftest:
1) liverc6ctxwa() -> intelenginepmput() -> wakerefput()
ASYNC1) wakerefput() callback -> enginepark() -> intelgtpmputasync() -> intelgtpmputasyncuntracked() -> intelwakerefputasync()
ASYNC2) wakerefputasync() callback -> gtpark() -> intelrpspark() -> intelrpsclearactive() [clear ACTIVE] WITH INTERRUPTS: -> rpsdisableinterrupts() -> cancelworksync(rps->work) -> rpsresetinterrupts() [rps->pmiir = 0] WITHOUT INTERRUPTS (TIMER mode): -> rpsstoptimer() -> cancelworksync(rps->work)
2) liverc6ctxwa() -> intelgtwaitforidle() -> intelgtretirerequeststimeout() -> dmafencewaittimeout() -> ops->wait() [i915fencewait()] -> i915requestwaittimeout() -> intelrpsboost() -> intelrpsisactive() [check ACTIVE] [OPEN RACE WINDOW] -> queuework(rps->work) -> retirerequests() -> i915requestretire() -> intelrpsdecwaiters() [from 1 to 0]
If ASYNC1 and ASYNC2 would execute during [OPEN RACE WINDOW], then:
3) rpswork() executes from the workqueue and may satisfy "(!pmiir && !clientboost)" test (in TIMER mode rps->pmiir is zeroed by an earlier rpswork() call or never gets a new value after previous intelrpsunpark() event), so it jumps to "out" label, bypassing intelrpsisactive() guard and executes gen6gtpmunmaskirq();
4) GT is parked and runtime PM wakelock is dropped, so only a raw reference in gtpark() -> inteldisplaypowerputasync() remains for 100ms, then the MMIO write in gen6gtpmunmaskirq() detects missing wakelock via assertrpmwakelockheld() and emits "RPM wakelock ref not held during HW access" tainting kernel.
Commit 3e7abf814193 ("drm/i915: Extract GT render power state management") dropped the "if (rps->interruptsenabled)" guard that gen6pmrpswork() had around this unmask in i915irq.c. INTELRPSACTIVE brackets the same window, since it is set in intelrpsunpark() before rpsenableinterrupts() and rpsstarttimer() and cleared in intelrpspark() before rpsstoptimer() and rpsdisableinterrupts().
Skip unmasking when RPS is no longer active (reaching unmask operation is independent of INTERRUPT mode). This does not prevent RPS operation from resuming on the next unpark. In interrupt mode, intelrpsunpark() calls rpsenableinterrupts(), which enables and unmasks the PM interrupts. In timer mode, it calls rpsstarttimer(), restarting periodic engine-busyness evaluation. The timer generates software RPS events and queues rpswork() directly, independently of PM interrupt delivery. Neither mode requires the late worker to unmask interrupts while the GT is parked
(cherry picked from commit ca4a6deadad15b91ee083afe445fa6bdbfb68206)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch ca4a6deadad15b91ee083afe445fa6bdbfb68206