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 436C141EA5 for ; Wed, 15 Mar 2023 23:46:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E9EC40A7A; Wed, 15 Mar 2023 23:46:53 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mails.dpdk.org (Postfix) with ESMTP id 3385E40141 for ; Wed, 15 Mar 2023 23:46:50 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id t15so18686605wrz.7 for ; Wed, 15 Mar 2023 15:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678920410; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RAHldiCWYU8OjJBJXNwGxG4DkrvDbTe6wAz9INbP6OU=; b=TgAje3NkPdaRLGw8x9CYCqS0g6pAxPYEG/3CH6se3lOurjkhUMHI/aYmaptB+FjKSz /fSUGot/IhTDOSfNBDQqsKNcLOh49UAeCUfR4S/Tb4VzdbEr/rX3Ak5bJR97n+Yh/H9f roltn7tQVzdFU56AgDjjHBLjHCOL7ojE3CCU9P5nggHEXYcxMszg+Hr1eUzi1pFpKK+H pXD4VujIevNOCrPa4e8WB3SCdYUPJZgfzHrn3EXOdNG2MJ8TmHVPPhMCsrFQIbJ5ZExS ZLWM2la0Pr3NWnnSp2HdWTCFv9qLN0iaEOSC++PQpqeyrk01CXsDrU0BVaVzJVM4qree nyug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678920410; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RAHldiCWYU8OjJBJXNwGxG4DkrvDbTe6wAz9INbP6OU=; b=btv3ZADYyxC7W1yGyWhjoCSNB0WYNv0+1824CMtVNqEF+e56XsShQk+oi9/uzZDXsS YmMmZNvYyF4UNLqcLq+urGTn/TrC/kaFEq19Xn/W1BocMtxYZHgAmEz1RDVDKNQOlsna sTL7XKjR2TSQMgw2kREy44bLpnljOtdQ3wJvlNz+tJ2JXIY/hnl/52xsF9fDYycf6q02 BL2MSKRVV2PBdh6cQ+exR1XMMtjcie/dUVZs9y4kLfeVjLDTG33igLVmBUQOrt9wTj4A TOFDPM/S7zOmxosUwJ+I7liCX/EhP7r23Mxj/wbMiRqtKh8geFE41UDcY3MuCbmgTcV0 cHFQ== X-Gm-Message-State: AO0yUKXlUvCv3UGG7MJ2E5H6IrKy4UcCA0k+YqS7BQdU2BntqrTfgS5Q TLxkelIi/weSDIkHFEPGI+oBsa0n9Pt1gQ== X-Google-Smtp-Source: AK7set9+8s2TIRDd3IXjyPF0Yap1qPpS+v2sajsmGyLjTh838rqy4VPMeGTQSXb0lPhp4+3AKg2IFQ== X-Received: by 2002:a5d:658c:0:b0:2cc:4dac:fe3e with SMTP id q12-20020a5d658c000000b002cc4dacfe3emr2989066wru.62.1678920409805; Wed, 15 Mar 2023 15:46:49 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id y14-20020adfee0e000000b002cea32eb70csm5724596wrn.37.2023.03.15.15.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 15:46:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Luca Boccassi Cc: dpdk stable Subject: patch 'Revert "vhost: fix OOB access for invalid vhost ID"' has been queued to stable release 20.11.8 Date: Wed, 15 Mar 2023 22:45:58 +0000 Message-Id: <20230315224631.1025649-7-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230315224631.1025649-1-luca.boccassi@gmail.com> References: <20230223093715.3926893-71-luca.boccassi@gmail.com> <20230315224631.1025649-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/17/23. 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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/9bf78c69c32e0e0256e435ea4ecd0a63450afa55 Thanks. Luca Boccassi --- >From 9bf78c69c32e0e0256e435ea4ecd0a63450afa55 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 14 Mar 2023 23:32:47 +0000 Subject: [PATCH] Revert "vhost: fix OOB access for invalid vhost ID" This reverts commit 145ffdbb7ea750f4d3b17446bde22a805957ad71. --- lib/librte_vhost/vhost.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index ee4e5317d0..92b67a2c6f 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -663,10 +663,7 @@ hva_to_gpa(struct virtio_net *dev, uint64_t vva, uint64_t len) static __rte_always_inline struct virtio_net * get_device(int vid) { - struct virtio_net *dev = NULL; - - if (likely(vid >= 0 && vid < RTE_MAX_VHOST_DEVICE)) - dev = vhost_devices[vid]; + struct virtio_net *dev = vhost_devices[vid]; if (unlikely(!dev)) { VHOST_LOG_CONFIG(ERR, -- 2.39.2