NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-mips/60780 (UBSan complains about left-shifting outside of int type range)
On Fri, Sep 25, 2026 at 06:30:38AM +0000, skrll%NetBSD.org@localhost wrote:
> Synopsis: UBSan complains about left-shifting outside of int type range
>
> State-Changed-From-To: open->pending-pullups
> State-Changed-By: skrll%NetBSD.org@localhost
> State-Changed-When: Fri, 25 Sep 2026 06:30:38 +0000
> State-Changed-Why:
> [pullup-11 #497] PR/60780 (UBSan complains about left-shifting outside of int type range)
I build a new kernel from HEAD/20260925044118Z and found a few more of those:
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/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'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:560:22, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:3312:46, left shift of 65535 by 16 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:3314:44, left shift of 65535 by 16 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:3435:34, left shift of 65535 by 16 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:458:12, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1737:15, left shift of 262143 by 14 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1144:29, left shift of 65535 by 16 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1155:29, left shift of 65535 by 16 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1263:15, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1274:14, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000000] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1288:22, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000030] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_coreintr.c:508:23, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.0000030] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_coreintr.c:565:16, left shift of 1 by 31 places cannot be represented in type 'int'
[ 1.5800090] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:1476:15, left shift of 262143 by 14 places cannot be represented in type 'int'
[ 1.6000090] UBSan: Undefined Behavior in /usr/build/HEAD_20260925044118Z/usr/src/sys/external/bsd/dwc2/dist/dwc2_core.c:2055:12, left shift of 1 by 31 places cannot be represented in type 'int'
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