Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: fsl-edma: don't explicitly disable clocks in .remove() The clocks in fsl_edma_engine::muxclk are allocated and enabled with devm_clk_get_enabled(), which automatically cleans these resources up, but these clocks are also manually disabled in fsl_edma_remove(). This causes warnings on driver removal for each clock: edma_module already disabled WARNING: CPU: 0 PID: 418 at drivers/clk/clk.c:1200 clk_core_disable+0x198/0x1c8 [...] Call trace: clk_core_disable+0x198/0x1c8 (P) clk_disable+0x34/0x58 fsl_edma_remove+0x74/0xe8 [fsl_edma] [...] ---[ end trace 0000000000000000 ]--- edma_module already unprepared WARNING: CPU: 0 PID: 418 at drivers/clk/clk.c:1059 clk_core_unprepare+0x1f8/0x220 [...] Call trace: clk_core_unprepare+0x1f8/0x220 (P) clk_unprepare+0x34/0x58 fsl_edma_remove+0x7c/0xe8 [fsl_edma] [...] ---[ end trace 0000000000000000 ]--- Fix these warnings by removing the unnecessary fsl_disable_clocks() call in fsl_edma_remove().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a9903de3aa16731846bf924342eca44bdabe9be6 to < 533d495f15e4c88ad5246c7f90ae026702e28d75affecteda9903de3aa16731846bf924342eca44bdabe9be6 to < 68feac21bd4de7ae4faba05704c404861d991fcfaffecteda9903de3aa16731846bf924342eca44bdabe9be6 to < bda244871179543dd3be7d093236cb33b2fb1765affecteda9903de3aa16731846bf924342eca44bdabe9be6 to < b84dba68c4823da452cec99a5d213571a65d06deaffecteda9903de3aa16731846bf924342eca44bdabe9be6 to < 666c53e94c1d0bf0bdf14c49505ece9ddbe725bcaffected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.6.128 to ≤ 6.6.*unaffected6.12.75 to ≤ 6.12.*unaffected6.18.14 to ≤ 6.18.*unaffected6.19.4 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/533d495f15e4c88ad5246c7f90ae026702e28d75 ↗
- https://git.kernel.org/stable/c/68feac21bd4de7ae4faba05704c404861d991fcf ↗
- https://git.kernel.org/stable/c/bda244871179543dd3be7d093236cb33b2fb1765 ↗
- https://git.kernel.org/stable/c/b84dba68c4823da452cec99a5d213571a65d06de ↗
- https://git.kernel.org/stable/c/666c53e94c1d0bf0bdf14c49505ece9ddbe725bc ↗