Skip to content

clk: fix possible use after free

Nuno Sá linux-clk 3 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected] change-id 20240611-dev-clk-misc-a9e401b25032

Versions newest first

  1. v1 Latest posting 3/32 patches 3 repliesApplied
  2. v1 posting 2/32 patches 0 repliesSuperseded
  3. v1 posting 1/32 patches 0 repliesSuperseded

Patches in v1 posting 3/3 Applied

#Subject and filesSizeRepliesApplied
1/2clk: fix clk not being unlinked from consumers listdrivers/clk/clk.c+2 -00 replies
2/2clk: use clk_core_unlink_consumer() helperdrivers/clk/clk.c+1 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RESEND (again) 0/2] clk: fix possible use after free

The first patch is fixing a possible use after free in case a clk provider is removed before it's consumer (more details on the commit message.

The second patch is a straightforward replacement of the open coded

hlist_del(&clk->clks_node) -> clk_core_unlink_consumer(clk)

---
Nuno Sá (2):
clk: fix clk not being unlinked from consumers list
clk: use clk_core_unlink_consumer() helper

 drivers/clk/clk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

---
base-commit: 5029c56be4bab3bce7db6d9595b0bbd171a5b154
change-id: 20240611-dev-clk-misc-a9e401b25032 --

Thanks!
- Nuno Sá