[PATCH] smp: align struct __call_single_node to 8 bytes
From: Brian Cain
Date: Sat Sep 05 2026 - 22:39:15 EST
Consumers walking call_single_queue cast each node to call_single_data_t
and, given that type's declared over-alignment, the compiler may load
llist.next and u_flags as one naturally aligned double word. Embedders
such as task_struct::wake_entry only guarantee pointer alignment, which
faults on strict-alignment 32-bit architectures like hexagon.
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxx>
Cc: Frederic Weisbecker <frederic@xxxxxxxxxx>
Cc: linux-hexagon@xxxxxxxxxxxxxxx
Signed-off-by: Brian Cain <brian.cain@xxxxxxxxxxxxxxxx>
---
include/linux/smp_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/smp_types.h b/include/linux/smp_types.h
index 2e8461af8df6..5773e1fb2660 100644
--- a/include/linux/smp_types.h
+++ b/include/linux/smp_types.h
@@ -64,6 +64,6 @@ struct __call_single_node {
#ifdef CONFIG_64BIT
u16 src, dst;
#endif
-};
+} __aligned(8);
#endif /* __LINUX_SMP_TYPES_H */
--
2.34.1