Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-06 Thread Philippe Mathieu-Daudé
On 5/7/23 16:45, Richard Henderson wrote: On 7/4/23 18:00, Alex Bennée wrote: Peter Maydell writes: If you build QEMU with the clang sanitizer enabled, you can see it fire when running the arm-cpu-features test: $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 ./build/arm-clang/te

Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-05 Thread Richard Henderson
On 7/4/23 18:00, Alex Bennée wrote: Peter Maydell writes: If you build QEMU with the clang sanitizer enabled, you can see it fire when running the arm-cpu-features test: $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 ./build/arm-clang/tests/qtest/arm-cpu-features [...] ../../targ

Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-05 Thread Richard Henderson
On 7/4/23 17:43, Peter Maydell wrote: If you build QEMU with the clang sanitizer enabled, you can see it fire when running the arm-cpu-features test: $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 ./build/arm-clang/tests/qtest/arm-cpu-features [...] ../../target/arm/cpu64.c:125:19: r

Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-04 Thread Alex Bennée
Peter Maydell writes: > If you build QEMU with the clang sanitizer enabled, you can see it > fire when running the arm-cpu-features test: > > $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 > ./build/arm-clang/tests/qtest/arm-cpu-features > [...] > ../../target/arm/cpu64.c:125:19: ru

Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-04 Thread Peter Maydell
On Tue, 4 Jul 2023 at 16:52, Philippe Mathieu-Daudé wrote: > > On 4/7/23 17:43, Peter Maydell wrote: > > If you build QEMU with the clang sanitizer enabled, you can see it > > fire when running the arm-cpu-features test: > > > > $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 > > ./buil

Re: [PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-04 Thread Philippe Mathieu-Daudé
On 4/7/23 17:43, Peter Maydell wrote: If you build QEMU with the clang sanitizer enabled, you can see it fire when running the arm-cpu-features test: $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 ./build/arm-clang/tests/qtest/arm-cpu-features [...] ../../target/arm/cpu64.c:125:19: r

[PATCH] target/arm: Avoid over-length shift in arm_cpu_sve_finalize() error case

2023-07-04 Thread Peter Maydell
If you build QEMU with the clang sanitizer enabled, you can see it fire when running the arm-cpu-features test: $ QTEST_QEMU_BINARY=./build/arm-clang/qemu-system-aarch64 ./build/arm-clang/tests/qtest/arm-cpu-features [...] ../../target/arm/cpu64.c:125:19: runtime error: shift exponent 64 is too l