On 2026-01-13 3:26 p.m., Christian Groessler wrote:
> Hi,
> 
> I've noticed that the kernel covers up unaligned memory accesses, see this 
> dmesg message (and the program doesn't crash):
> 
> [26186.220638] unal(9569): unaligned access to 0x000110e9 at ip 0x00010543 
> (iir 0x0f40109c)
> 
> Is there a way to disable the handling of unaligned accesses in kernel 6.x?
> I'd like to get a bus error (SIGBUS or other signal) so I can find the places 
> in the code where unaligned accesses are done.

This will disable the unaligned fixups for user code:
echo 0 > /proc/sys/kernel/unaligned-trap

Don't know about kernel code.

Dave
-- 
John David Anglin  [email protected]

Reply via email to