Hi Christian,

On Tue, 2026-01-13 at 21:26 +0100, Christian Groessler wrote:
> 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.

Looks like there is to control whether to enable the unaligned handler, see [1].

If you run into programs which trigger SIGBUS, please report them to the list
as they will affect SPARC as well and we're tracking bugs affecting SPARC in 
[2].

Adrian

> [1] 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bf14e3b979a01cd7298d631736f965fe83c6e2bc
> [2] https://github.com/sparclinux/issues/issues

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to