On Tue, 25 Nov 2025, at 4:25 PM, Huacai Chen wrote:
When CONFIG_RANDSTRUCT enabled, members of task_struct are randomized. There is a chance that TASK_STACK_CANARY be out of 12bit immediate's range and causes build errors. TASK_STACK_CANARY is naturally aligned, so fix it by replacing ld.d/st.d with ldptr.d/stptr.d which have 14bit immediates.
Hi Huacai,
What about 32bit build in this case?
Thanks Jiaxun