summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorAntonio Borneo <antonio.borneo@foss.st.com>2026-11-16 14:24:03 +0100
committerGuenter Roeck <linux@roeck-us.net>2026-11-16 06:39:26 -0800
commitabbf55699ff6a8830b864aa1fab9f24edc9e72a6 (patch)
tree2fa2cf4115cd94ac848a2d9caccfff7425a19516 /rust/kernel/alloc/allocator
parent25c38ab9e6b69cfdc13aeff19470f7d0893b1702 (diff)
watchdog: stm32_iwdg: serialize accesses to EWCR register
On STM32MP1xx platforms, EWCR contains both the pretimeout interrupt configuration and a write-only bit used to acknowledge the interrupt. On SMP systems, the read-modify-write operation in the pretimeout IRQ handler can race with writes that update the pretimeout configuration. Protect these accesses with a spinlock to prevent concurrent updates. Don't use the helpers reg_read()/reg_write() in the critical sections as they rely on relaxed memory access, which are not ordered against locking. Fixes: 3ab1663af6c1 ("watchdog: stm32_iwdg: Add pretimeout support") Cc: stable@vger.kernel.org Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Link: https://patch.msgid.link/20261116132416.1184447-3-antonio.borneo@foss.st.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions