reassign 1119972 valgrind affects 1119972 libntruprime thanks The problem appears reproducible:
https://ci.debian.net/packages/libn/libntruprime/testing/riscv64/65746038/#S11 I'm reassigning this to valgrind to get the attention of valgrind folks, I see that riscv64 was added as a valgrind target just recently. I recall something about valgrind learned to ignore libc optimization as false positives on other archs, is that what is missing for riscv64 here? /Simon Simon Josefsson <[email protected]> writes: > Package: libntruprime > Version: 0~20241021-3 > X-Debbugs-CC: Jan Mojžíš <[email protected]> > > librandombytes testing migration triggered a valgrind complaints in > libntruprime on riscv64: > > https://ci.debian.net/packages/libn/libntruprime/testing/riscv64/65744862/ > > Looks like a glibc or valgrind issue to me, and I'm guessing related to > an optimized implementation of bcmp. > > The autopkgtest run of libntruprime 0~20241021-4 is still pending, we > should know soon if this is reproducible or flaky. > > /Simon > > 5939s autopkgtest [05:04:02]: test valgrind-test-kem-sntrup1277: > [----------------------- > 5941s ntruprime version 20241021 > 5941s ntruprime arch riscv64 > 5941s cpuid 00000000 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 00000000 00000000 > 5941s valgrind 1 declassify 0 (expect false positives) > 5941s kem_sntrup1277 offset 0 > 5941s kem_sntrup1277 selected implementation factored compiler gcc > -Wall -fPIC -fwrapv -O3; cc (Debian 14.2.0-19) 14.2.0; Copyright (C) > 2024 Free Software Foundation, Inc.; This is free software; see the > source for copying conditions. There is NO; warranty; not even for > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > 5941s ==2317== Conditional jump or move depends on uninitialised value(s) > 5941s ==2317== at 0x4A20E4C: ??? (in > /usr/lib/riscv64-linux-gnu/libntruprime.so.1) > 5941s ==2317== by 0x404FD51: ??? (in /usr/bin/ntruprime-test) > 5941s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5941s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5941s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5941s ==2317== > 5942s ==2317== Conditional jump or move depends on uninitialised value(s) > 5942s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5942s ==2317== by 0x404FEFB: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5942s ==2317== > 5942s ==2317== Conditional jump or move depends on uninitialised value(s) > 5942s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5942s ==2317== by 0x404FB01: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5942s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5942s ==2317== > 5943s ==2317== Conditional jump or move depends on uninitialised value(s) > 5943s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5943s ==2317== by 0x404FB6F: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5943s ==2317== > 5943s ==2317== Conditional jump or move depends on uninitialised value(s) > 5943s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5943s ==2317== by 0x404FBC1: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5943s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5943s ==2317== > 5964s ==2317== Use of uninitialised value of size 8 > 5964s ==2317== at 0x401B60E: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x404FFE1: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5964s ==2317== > 5964s ==2317== Use of uninitialised value of size 8 > 5964s ==2317== at 0x401B612: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x404FFE1: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5964s ==2317== > 5964s ==2317== Conditional jump or move depends on uninitialised value(s) > 5964s ==2317== at 0x4A20E4C: ??? (in > /usr/lib/riscv64-linux-gnu/libntruprime.so.1) > 5964s ==2317== by 0x40502FB: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5964s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5964s ==2317== > 5965s ==2317== Conditional jump or move depends on uninitialised value(s) > 5965s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5965s ==2317== by 0x40504A5: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5965s ==2317== > 5965s ==2317== Conditional jump or move depends on uninitialised value(s) > 5965s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5965s ==2317== by 0x40500A9: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5965s ==2317== > 5965s ==2317== Conditional jump or move depends on uninitialised value(s) > 5965s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5965s ==2317== by 0x4050117: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5965s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5965s ==2317== > 5966s ==2317== Conditional jump or move depends on uninitialised value(s) > 5966s ==2317== at 0x49F8126: bcmp (vg_replace_strmem.c:1234) > 5966s ==2317== by 0x4050169: ??? (in /usr/bin/ntruprime-test) > 5966s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 5966s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 5966s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 5966s ==2317== > 6146s kem_sntrup1277 0 implementation factored compiler gcc -Wall > -fPIC -fwrapv -O3; cc (Debian 14.2.0-19) 14.2.0; Copyright (C) 2024 > Free Software Foundation, Inc.; This is free software; see the source > for copying conditions. There is NO; warranty; not even for > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > 6146s ==2317== Use of uninitialised value of size 8 > 6146s ==2317== at 0x401B60E: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 6146s ==2317== > 6146s ==2317== Use of uninitialised value of size 8 > 6146s ==2317== at 0x401B612: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x40506AB: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x40184F1: ??? (in /usr/bin/ntruprime-test) > 6146s ==2317== by 0x4A7A99B: (below main) (libc_start_call_main.h:58) > 6146s ==2317== > 6350s all tests succeeded > 6351s autopkgtest [05:10:54]: test valgrind-test-kem-sntrup1277: > -----------------------] > ▸ test valgrind-test-kem-sntrup1277: test results > 6351s autopkgtest [05:10:54]: test valgrind-test-kem-sntrup1277: - - - > - - - - - - - results - - - - - - - - - - > 6351s valgrind-test-kem-sntrup1277 FAIL non-zero exit status 99 > 6351s autopkgtest [05:10:54]: test valgrind-test-kem-sntrup1277: - - - > - - - - - - - stderr - - - - - - - - - -
signature.asc
Description: PGP signature

