Thread (27 messages) flat view 27 messages, 5 authors, 2025-09-18

Re: [PATCH v14 01/10] power: reset: reboot-mode: Synchronize list traversal

From: Shivendra Pratap <hidden>
Date: 2025-09-17 17:06:33
Also in: linux-arm-kernel, linux-arm-msm, linux-pm, lkml


On 9/17/2025 12:14 AM, Sebastian Reichel wrote:
Hi,

On Fri, Aug 15, 2025 at 08:05:06PM +0530, Shivendra Pratap wrote:
quoted
List traversals must be synchronized to prevent race conditions
and data corruption. The reboot-mode list is not protected by a
lock currently, which can lead to concurrent access and race.

Introduce a mutex lock to guard all operations on the reboot-mode
list and ensure thread-safe access. The change prevents unsafe
concurrent access on reboot-mode list.

Signed-off-by: Shivendra Pratap <redacted>
---
This should use scoped_guard() and a Fixes: tag. Otherwise LGTM.
ACK. Will update this patch based on scoped_guard() and add a Fixes tag.

thanks,
Shivendra
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help