NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-evbmips/60812 (UBSan: Undefined Behavior in [sys-src] member access within misaligned address [..] for type '[..]' which requires 128 byte alignment)



Update:
 - I've built and booted another debug kernel from HEAD/20260930062955Z
 - booted on the EdgeRouter4 (essentially same hardware as Erlite3,
   but the "big brother": 4x 1 GHz mips64, 1 G RAM)
 - we're down to two UBSan complaints about integer shifts:

--------------- cut here -------------------
[   1.0000000] cpu0: 256 TLB entries, 512TB (49-bit) VAsUBSan: Undefined Behavior in /usr/build/HEAD_20260930062955Z/usr/src/sys/arch/mips/mips/mips_machdep.c:1640:37, left shift of 9223372036787666944 by 1 places cannot be represented in type 'long int'
[   1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260930062955Z/usr/src/sys/lib/libkern/../../../common/lib/libc/string/memset2.c:104:15, left shift of 4294967295 by 32 places cannot be represented in type 'long int'
--------------- cut here -------------------

Kind regards,
           Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison



Home | Main Index | Thread Index | Old Index