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 29F94A057F for ; Tue, 28 Jun 2022 17:19:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25A9B40A7A; Tue, 28 Jun 2022 17:19:56 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4674F40042 for ; Tue, 28 Jun 2022 17:19:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656429592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HWLoIU7JiWfsH9UmAr73yCgto614tATqhfusWgSxi50=; b=DrOUzmFURLmqMxDc3RJebHspAWgQANwADc0ntTwesf0Jn3VBaToRa1wDxiwu6QfNh7hDgM ehibdKtzcHHfPgdt2EJKyMlFZxjy3jEruI+5wbTLKccsW61PH2uSbS3ot6UYjrl0zS/F0k Bm4QU5fKnIr7mqCuC4bf5ybKyqwhUwg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-284-aYMA3NibM7aruTQN379UBA-1; Tue, 28 Jun 2022 11:19:51 -0400 X-MC-Unique: aYMA3NibM7aruTQN379UBA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E96BF81D9CC; Tue, 28 Jun 2022 15:19:50 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.194.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id 228B81410DD8; Tue, 28 Jun 2022 15:19:49 +0000 (UTC) From: Kevin Traynor To: Heinrich Schuchardt Cc: dpdk stable Subject: patch 'test/hash: fix out of bound access' has been queued to stable release 21.11.2 Date: Tue, 28 Jun 2022 16:19:18 +0100 Message-Id: <20220628151938.2278711-6-ktraynor@redhat.com> In-Reply-To: <20220628151938.2278711-1-ktraynor@redhat.com> References: <20220628151938.2278711-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 21.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/30/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/6fce2b80670446522916968efa7e59859518d2ab Thanks. Kevin --- >From 6fce2b80670446522916968efa7e59859518d2ab Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 4 Jun 2022 10:37:11 +0200 Subject: [PATCH] test/hash: fix out of bound access [ upstream commit 8343fd749ff7c494c2f303f20a83b8873c6f0797 ] rwc_non_lf_results->multi_rw, rwc_lf_results->multi_rw, and rwc_perf_results->multi_rw are accessed at indexes [0..NUM_TEST-1][0..1][0..NUMTEST-1]. Currently the first index overflows the array size in struct rwc_perf. Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency") Signed-off-by: Heinrich Schuchardt --- app/test/test_hash_readwrite_lf_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_hash_readwrite_lf_perf.c b/app/test/test_hash_readwrite_lf_perf.c index 8120cf43be..32f9ec9250 100644 --- a/app/test/test_hash_readwrite_lf_perf.c +++ b/app/test/test_hash_readwrite_lf_perf.c @@ -60,5 +60,5 @@ struct rwc_perf { uint32_t w_ks_r_hit_sp[2][NUM_TEST]; uint32_t w_ks_r_miss[2][NUM_TEST]; - uint32_t multi_rw[NUM_TEST - 1][2][NUM_TEST]; + uint32_t multi_rw[NUM_TEST][2][NUM_TEST]; uint32_t w_ks_r_hit_extbkt[2][NUM_TEST]; uint32_t writer_add_del[NUM_TEST]; -- 2.34.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-28 16:18:04.191012349 +0100 +++ 0006-test-hash-fix-out-of-bound-access.patch 2022-06-28 16:18:04.002387177 +0100 @@ -1 +1 @@ -From 8343fd749ff7c494c2f303f20a83b8873c6f0797 Mon Sep 17 00:00:00 2001 +From 6fce2b80670446522916968efa7e59859518d2ab Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 8343fd749ff7c494c2f303f20a83b8873c6f0797 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org