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 6077DA054A; Wed, 7 Sep 2022 08:31:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06B4E40143; Wed, 7 Sep 2022 08:31:34 +0200 (CEST) Received: from mx0b-00169c01.pphosted.com (mx0b-00169c01.pphosted.com [67.231.156.123]) by mails.dpdk.org (Postfix) with ESMTP id 2A4B940042 for ; Wed, 7 Sep 2022 08:31:32 +0200 (CEST) Received: from pps.filterd (m0281121.ppops.net [127.0.0.1]) by mx0b-00169c01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2875iNdJ009374 for ; Tue, 6 Sep 2022 23:31:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paloaltonetworks.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=PPS12012017; bh=xzzqThLlI72j/Sr/7xNOZIkxReGRseqsnXGJ22cvowo=; b=R1ANnBtQCkgePZjUyqIBn3wrjLdBYjHJJbAYDqfv5+yvLLWUa4flDtsY4gwJ2oYA1BJS izTjXb+3yz7NJxruP1nsQZ67Xyeu+sUY02sECZrRvvKgyj/AeDIvmatjON+lN6SvuUwd b6yNxrV8QlNvwEoRQ69cPGi1CQRH8c1ThUeV1ZLLPuc49Nfh9JiYmOd3EBdZU+3uGuh0 keGZyAc63KAnQncCkHO4nxxaq/sE7TfW5IzSunxZooOwn25/4BI8E7+G+jBNaY6bP8fw HHHMW0n+1al958f0tMhGh0XGKiUJY4WsTsDkRgV1r3zwrF+mrC0WGicu0Os/I/NRWEpZ Tg== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0b-00169c01.pphosted.com (PPS) with ESMTPS id 3jc4a5wu1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 06 Sep 2022 23:31:30 -0700 Received: by mail-pl1-f199.google.com with SMTP id w14-20020a170902e88e00b00177ab7a12f6so186207plg.16 for ; Tue, 06 Sep 2022 23:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paloaltonetworks.com; s=google.paloaltonetworks.com; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=xzzqThLlI72j/Sr/7xNOZIkxReGRseqsnXGJ22cvowo=; b=AW5fxWMjNFIWL8Eu8aYJpz4xOBFKM8VIUXqYgS33v3dRKSQLmGu+I0BZxqbQjTQSCB hqz70XeOq/7bdDBjFmdrDXP+RuP26kYyU21/FAB4HJZPFfz3ei3QaO51ceg+J1BUdRBX HNhtF3ZFiru5Etf3EfJo68+6DHI6kWYNdUAa/3BngXvECLMeNSCNzmGlGn5ULrvTP4o3 VKHm05ke7uS2AW68Fezr2haCMz/uOWgRxClDwWUrGBU6EA2surzmGx0ax5s5rjk/fNKV SbQi+ihsWvFTZdd7vCDbKCsfx1b5qQmXZBEDMBRfcX61rYRsUklukD/w7eR787b1QrMO 6BIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=xzzqThLlI72j/Sr/7xNOZIkxReGRseqsnXGJ22cvowo=; b=fl+6XIAY/36L80Mi6T8zZPSnRonPv3+NGQxQCqdJp3KBiFjQhJMp1pZyTVhajKJAk8 KdaCF4frM2HaZC1fGseeR3vp9pKKIuvve3yd7BnKDZCutLot2ml6iYt+1p8jAsuRgIV7 Sa0ec4VRxwKCXBR63AfbMGY0Zq0urazCSRz++K/h0x3KPvnU0QofXPWMWvTlx45Djp31 OIkVs+J3kN4HTE5rw02LZoQLquchlFnV3v/PBlSpBCzSvd7msqvQzY+NBWZ43TWGJteX MYO2hixbgqlxIoK4xxRmdnqCT9wqksE145wzQ/iQfEUxyzKmIR9tURDVIWw0UIcpRNEB dyrw== X-Gm-Message-State: ACgBeo3/uVHyDUYW1jZfExAdRaOWSD4TMO1+GR3ie/sVq8100NxbHVjx Iz1eZLBxlR9fIBvNLgpvXxKFzFrVsXrtMEMfbGpXRmMov11ic9+znslfUawgYDbwV//xI6rAMfj 1fPmlBOWXE9ay6fBoc0s= X-Received: by 2002:a05:6a02:186:b0:431:25fb:f1fe with SMTP id bj6-20020a056a02018600b0043125fbf1femr2198751pgb.130.1662532288898; Tue, 06 Sep 2022 23:31:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4acvCSoCm+xQBA3Jtx8r+e8U+hNQcTOYMmSF+A5WFDDwHhCTkcxv69QtvGMPfOcVN6YOjOLmVqApc8FoPKD5A= X-Received: by 2002:a05:6a02:186:b0:431:25fb:f1fe with SMTP id bj6-20020a056a02018600b0043125fbf1femr2198720pgb.130.1662532288460; Tue, 06 Sep 2022 23:31:28 -0700 (PDT) MIME-Version: 1.0 References: <20220829151436.1909142-1-thomas@monjalon.net> In-Reply-To: <20220829151436.1909142-1-thomas@monjalon.net> From: Amiya Mohakud Date: Wed, 7 Sep 2022 12:01:17 +0530 Message-ID: Subject: Re: [PATCH] net/mlx5: fix Rx queue recovery mechanism To: Thomas Monjalon Cc: dev , security@dpdk.org, Matan Azrad , stable@dpdk.org, Alexander Kozyrev , Viacheslav Ovsiienko , Shahaf Shuler Content-Type: multipart/alternative; boundary="0000000000007b9a8505e810767a" X-Proofpoint-GUID: TRn5YV31WiCzUuCdv4NnJGOGB7jElHd9 X-Proofpoint-ORIG-GUID: TRn5YV31WiCzUuCdv4NnJGOGB7jElHd9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-07_04,2022-09-06_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 mlxscore=0 spamscore=0 impostorscore=0 clxscore=1011 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209070026 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 --0000000000007b9a8505e810767a Content-Type: text/plain; charset="UTF-8" Hi All, I would need some confirmation on this patch. For some earlier issues encountered on mlx5, we have disable cqe_comp in the mlx5 driver. In that case, do we still need this fix or disabling cqe_comp will take care of it as well? Regards Amiya On Mon, Aug 29, 2022 at 8:45 PM Thomas Monjalon wrote: > From: Matan Azrad > > The local variables are getting inconsistent in data receiving routines > after queue error recovery. > Receive queue consumer index is getting wrong, need to reset one to the > size of the queue (as RQ was fully replenished in recovery procedure). > > In MPRQ case, also the local consumed strd variable should be reset. > > CVE-2022-28199 > Fixes: 88c0733535d6 ("net/mlx5: extend Rx completion with error handling") > Cc: stable@dpdk.org > > Signed-off-by: Alexander Kozyrev > Signed-off-by: Matan Azrad > --- > > Already applied in main branch as part of the public disclosure process. > > --- > drivers/net/mlx5/mlx5_rx.c | 34 ++++++++++++++++++++++++---------- > 1 file changed, 24 insertions(+), 10 deletions(-) > > diff --git a/drivers/net/mlx5/mlx5_rx.c b/drivers/net/mlx5/mlx5_rx.c > index bb3ccc36e5..917c517b83 100644 > --- a/drivers/net/mlx5/mlx5_rx.c > +++ b/drivers/net/mlx5/mlx5_rx.c > @@ -408,6 +408,11 @@ mlx5_rxq_initialize(struct mlx5_rxq_data *rxq) > *rxq->rq_db = rte_cpu_to_be_32(rxq->rq_ci); > } > > +/* Must be negative. */ > +#define MLX5_ERROR_CQE_RET (-1) > +/* Must not be negative. */ > +#define MLX5_RECOVERY_ERROR_RET 0 > + > /** > * Handle a Rx error. > * The function inserts the RQ state to reset when the first error CQE is > @@ -422,7 +427,7 @@ mlx5_rxq_initialize(struct mlx5_rxq_data *rxq) > * 0 when called from non-vectorized Rx burst. > * > * @return > - * -1 in case of recovery error, otherwise the CQE status. > + * MLX5_RECOVERY_ERROR_RET in case of recovery error, otherwise the CQE > status. > */ > int > mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t vec) > @@ -451,7 +456,7 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t > vec) > sm.queue_id = rxq->idx; > sm.state = IBV_WQS_RESET; > if (mlx5_queue_state_modify(RXQ_DEV(rxq_ctrl), &sm)) > - return -1; > + return MLX5_RECOVERY_ERROR_RET; > if (rxq_ctrl->dump_file_n < > RXQ_PORT(rxq_ctrl)->config.max_dump_files_num) { > MKSTR(err_str, "Unexpected CQE error syndrome " > @@ -491,7 +496,7 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t > vec) > sm.queue_id = rxq->idx; > sm.state = IBV_WQS_RDY; > if (mlx5_queue_state_modify(RXQ_DEV(rxq_ctrl), > &sm)) > - return -1; > + return MLX5_RECOVERY_ERROR_RET; > if (vec) { > const uint32_t elts_n = > mlx5_rxq_mprq_enabled(rxq) ? > @@ -519,7 +524,7 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t > vec) > > rte_pktmbuf_free_seg > (*elt); > } > - return -1; > + return > MLX5_RECOVERY_ERROR_RET; > } > } > for (i = 0; i < (int)elts_n; ++i) { > @@ -538,7 +543,7 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t > vec) > } > return ret; > default: > - return -1; > + return MLX5_RECOVERY_ERROR_RET; > } > } > > @@ -556,7 +561,9 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t > vec) > * written. > * > * @return > - * 0 in case of empty CQE, otherwise the packet size in bytes. > + * 0 in case of empty CQE, MLX5_ERROR_CQE_RET in case of error CQE, > + * otherwise the packet size in regular RxQ, and striding byte > + * count format in mprq case. > */ > static inline int > mlx5_rx_poll_len(struct mlx5_rxq_data *rxq, volatile struct mlx5_cqe *cqe, > @@ -623,8 +630,8 @@ mlx5_rx_poll_len(struct mlx5_rxq_data *rxq, volatile > struct mlx5_cqe *cqe, > rxq->err_state)) { > ret = mlx5_rx_err_handle(rxq, 0); > if (ret == MLX5_CQE_STATUS_HW_OWN > || > - ret == -1) > - return 0; > + ret == MLX5_RECOVERY_ERROR_RET) > + return MLX5_ERROR_CQE_RET; > } else { > return 0; > } > @@ -869,8 +876,10 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, > uint16_t pkts_n) > if (!pkt) { > cqe = &(*rxq->cqes)[rxq->cq_ci & cqe_cnt]; > len = mlx5_rx_poll_len(rxq, cqe, cqe_cnt, &mcqe); > - if (!len) { > + if (len <= 0) { > rte_mbuf_raw_free(rep); > + if (unlikely(len == MLX5_ERROR_CQE_RET)) > + rq_ci = rxq->rq_ci << sges_n; > break; > } > pkt = seg; > @@ -1093,8 +1102,13 @@ mlx5_rx_burst_mprq(void *dpdk_rxq, struct rte_mbuf > **pkts, uint16_t pkts_n) > } > cqe = &(*rxq->cqes)[rxq->cq_ci & cq_mask]; > ret = mlx5_rx_poll_len(rxq, cqe, cq_mask, &mcqe); > - if (!ret) > + if (ret == 0) > break; > + if (unlikely(ret == MLX5_ERROR_CQE_RET)) { > + rq_ci = rxq->rq_ci; > + consumed_strd = rxq->consumed_strd; > + break; > + } > byte_cnt = ret; > len = (byte_cnt & MLX5_MPRQ_LEN_MASK) >> > MLX5_MPRQ_LEN_SHIFT; > MLX5_ASSERT((int)len >= (rxq->crc_present << 2)); > -- > 2.36.1 > > --0000000000007b9a8505e810767a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFt aWx5OnZlcmRhbmEsc2Fuc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