Skip to content

thermal/debugfs: Fix a memory leak on removal and locking

Rafael J. Wysocki linux-pm lkml 1 version In review

Get series with b4
b4 am 12427744.O9o76ZdvQC@kreacher

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal/debugfs: Free all thermal zone debug memory on zone removaldrivers/thermal/thermal_debugfs.c+13 -01 reply
2/3thermal/debugfs: Fix thermal zone lockingdrivers/thermal/thermal_debugfs.c+28 -320 replies
2/3thermal/debugfs: Fix two locking issues with thermal zone debugdrivers/thermal/thermal_debugfs.c+22 -121 reply
3/3thermal/debugfs: Prevent use-after-free from occurring after cdev removaldrivers/thermal/thermal_debugfs.c+8 -25 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchLukasz Luba
1/3R-b
2/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] thermal/debugfs: Fix a memory leak on removal and locking

Hi Everyone,

This series fixes a memory leak on thermal zone removal caused by the thermal debug code and two locking issues that may cause the kernel to crash due to race conditions.

Please review urgently.

The series applies on top of the linux-next branch in linux-pm.git.

It is also present in the thermal-core-next branch in that tree.

Thanks!