From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4DE8F46BF1; Wed, 23 Jul 2025 15:32:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 406DF40B9C; Wed, 23 Jul 2025 15:32:35 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id CBDD440B98 for ; Wed, 23 Jul 2025 15:32:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1753277553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qH2rIijgrLbO1iOo3mG28bwBU+hxOB3vs6buc7xVXOk=; b=ekC6un6dhhy1ipm7YMqP+s/ibLV5vCkqJDnkas8N99uQnS9AP1NHsCx+9s0rg1ZPS9WElb xHd5cZEyUD8ylFq8ci9e6d1LaGwZE1fTAHgz7yBAoyHGHrtAGu/pkzWKp6OaML5c7vD1Ng YM2PmN56XhplffgVi8hD3LBZzIUcorM= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-601-SzmgQQ1IOIOpAl5W39KRqw-1; Wed, 23 Jul 2025 09:32:31 -0400 X-MC-Unique: SzmgQQ1IOIOpAl5W39KRqw-1 X-Mimecast-MFC-AGG-ID: SzmgQQ1IOIOpAl5W39KRqw_1753277551 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A2297184B36C for ; Wed, 23 Jul 2025 13:32:08 +0000 (UTC) Received: from dmarchan.lan (unknown [10.44.33.51]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C25661955F4A for ; Wed, 23 Jul 2025 13:32:07 +0000 (UTC) From: David Marchand To: dev@dpdk.org Subject: [PATCH v5 00/22] Run with UBSan in GHA Date: Wed, 23 Jul 2025 15:31:33 +0200 Message-ID: <20250723133157.159825-1-david.marchand@redhat.com> In-Reply-To: <20250619071037.37325-1-david.marchand@redhat.com> References: <20250619071037.37325-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: jU-_rCehZ6PPkQCQbVZZoMfsODqEvIR9Oc60uep_-e4_1753277551 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series fixes a number of issues reported by UBSan and adds a simple job in GHA to avoid introducing undefined behavior in the core components. There is way more work/fixes to do if we want to run with a full set of components, but baby steps first. -- David Marchand Changes since v4: - rebased on v25.11-rc0, Changes since v3: - modified fix on tailq, - updated hash fix using unaligned_uint32_t type, - updated rte_mp_msg and rte_stack_lf_head structs alignement, - fixed more libraries/unit tests, Changes since v2: - simplified plugin fix, - enabled more coverage, Changes since v1: - small updates on patches 5 and 6, David Marchand (21): ci: save ccache on failure test/telemetry: fix test calling all commands test/mempool: fix test without stack driver eal: fix plugin dir walk cmdline: fix port list parsing cmdline: fix highest bit port list parsing tailq: fix lookup macro hash: fix unaligned access in predictable RSS stack: fix unaligned accesses on 128-bit build: support Undefined Behavior Sanitizer test/telemetry: catch errors in subshell ipc: fix mp message alignment for malloc graph: fix unaligned access in stats eventdev: fix listing timer adapters with telemetry test/power: fix tests without power drivers test/raw: fix test without skeleton driver net: fix IPv4 macro with highest bit rib6: fix some highest bits handling cfgfile: fix section count with no name test/func_reentrancy: fix EAL init call ci: extend coverage with UBSan Marat Khalili (1): graph: fix stats query with no node xstats .ci/linux-build.sh | 38 ++++++++- .github/workflows/build.yml | 11 +++ .mailmap | 1 + app/test/meson.build | 12 +-- app/test/suites/meson.build | 3 +- app/test/suites/test_telemetry.sh | 6 +- app/test/test_func_reentrancy.c | 5 +- app/test/test_mempool.c | 32 +++++--- config/meson.build | 18 ++++- devtools/words-case.txt | 1 + doc/guides/rel_notes/release_25_11.rst | 5 ++ lib/cfgfile/rte_cfgfile.c | 8 +- lib/cmdline/cmdline_parse_portlist.c | 15 ++-- lib/eal/common/eal_common_options.c | 17 ++-- lib/eal/include/rte_eal.h | 3 +- lib/eal/include/rte_tailq.h | 9 ++- lib/eventdev/rte_event_timer_adapter.c | 4 +- lib/graph/graph_stats.c | 105 ++++++++++++++----------- lib/hash/rte_thash.c | 6 +- lib/net/rte_ip4.h | 6 +- lib/rib/rte_rib6.c | 2 +- lib/stack/rte_stack.h | 4 +- 22 files changed, 208 insertions(+), 103 deletions(-) -- 2.50.0