From 9df363c201b4be22d975cb8c8b4a783c4e9db061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Wed, 27 Mar 2024 16:52:26 +0100 Subject: [PATCH] ci: suppress valgrind failure on Debian related to the xz backdoor On Debian sid and testing we get these Valgrind failures that are not related to our code, but to the xz backdoor that has been discovered. Supress them. If we don't do it, we'll need to ignore the red state and it might cover other problems different to this one. The suppression contains the version of liblzma so I hope that it won't be used once liblzma is updated to a new (and fixed) version in Debian repos. Valgrind logs: Invalid write of size 8 at 0x508AD45: ??? (in /usr/lib/x86_64-linux-gnu/liblzma.so.5.6.0) by 0x506D81B: ??? (in /usr/lib/x86_64-linux-gnu/liblzma.so.5.6.0) by 0x6A00000006: ??? by 0x5066FFF: ??? (in /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.4) by 0x203A2900A5DE11FF: ??? by 0x1FFEFFC34F: ??? by 0x400EFAA: elf_machine_rela (dl-machine.h:300) by 0x400EFAA: elf_dynamic_do_Rela (do-rel.h:147) by 0x400EFAA: _dl_relocate_object (dl-reloc.c:301) by 0x52296FF: ??? by 0x543762F: ??? by 0x1FFEFFC2DF: ??? Address 0x1ffeffb3f8 is on thread 1's stack 136 bytes below stack pointer --- valgrind.suppressions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/valgrind.suppressions b/valgrind.suppressions index 0552625192..759688a732 100644 --- a/valgrind.suppressions +++ b/valgrind.suppressions @@ -509,3 +509,14 @@ fun:inet_pton ... } +{ + _xz_backdoor + Memcheck:Addr8 + obj:/usr/lib/x86_64-linux-gnu/liblzma.so.5.6.0 + obj:/usr/lib/x86_64-linux-gnu/liblzma.so.5.6.0 + ... + fun:elf_machine_rela + fun:elf_dynamic_do_Rela + fun:_dl_relocate_object + ... +}