From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id B01055A0277; Tue, 20 Aug 2024 01:14:34 +0200 (CEST) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 4/4] test: Duplicate existing recvfrom() valgrind suppression for recv() Date: Tue, 20 Aug 2024 01:14:34 +0200 Message-ID: <20240819231434.1481576-5-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240819231434.1481576-1-sbrivio@redhat.com> References: <20240819231434.1481576-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: CXFB44A7FEYVCSYZGAU4QGUX6CU4UHBE X-Message-ID-Hash: CXFB44A7FEYVCSYZGAU4QGUX6CU4UHBE X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- test/valgrind.supp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +} -- 2.43.0