diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-08-20 00:05:47 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-21 12:03:23 +0200 |
commit | 396307541ef86fdf769df59ef97e9704dbf3d688 (patch) | |
tree | 7b63b9a4328240ebb46428654e284638abbab0e3 | |
parent | d6817b3930be403328683e1b67c78c1f33be93fa (diff) | |
download | passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar.gz passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar.bz2 passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar.lz passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar.xz passt-396307541ef86fdf769df59ef97e9704dbf3d688.tar.zst passt-396307541ef86fdf769df59ef97e9704dbf3d688.zip |
test: Duplicate existing recvfrom() valgrind suppression for recv()
Some architectures, including i686, actually have a recv() system
call, not just a recvfrom(), and we need to cover the recv() with
MSG_TRUNC into a NULL buffer for them as well.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | test/valgrind.supp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/valgrind.supp b/test/valgrind.supp index a158394..735b5f6 100644 --- a/test/valgrind.supp +++ b/test/valgrind.supp @@ -6,3 +6,12 @@ ... fun:tcp_sock_consume } + +# same as above, for architectures with the recv() system call (at least i686): +{ + passt_recv_MSG_TRUNC_into_NULL_buffer + Memcheck:Param + socketcall.recv(buf) + ... + fun:tcp_sock_consume +} |