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 A5C2443C46; Sun, 3 Mar 2024 16:16:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 762C6402DA; Sun, 3 Mar 2024 16:16:32 +0100 (CET) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by mails.dpdk.org (Postfix) with ESMTP id 1E7CE40267; Sun, 3 Mar 2024 16:16:32 +0100 (CET) Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-42edb6f56f2so6327901cf.3; Sun, 03 Mar 2024 07:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709478991; x=1710083791; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o1EjLOCwripAI75hwQG4jvLCbqPSyGE2LrxU6gO1wIY=; b=HRLT5vkpYsein72rvhcn3l+pfRHmc2G+PfbHgadhnvn/QwFiUZX91hNvy2Vx9Cujhv qQWg3jYx8Ekd4VnK0Y4jjZI67FIAcuxjyQMLFZRds2h6pY1RVlNeWi4LL2//k1MkrsdH VoIG6axT5sk1UsFL+LkLbwCfuKrqRbqoDelv0KoLqWPVd2VNxOoCsfhwgxB6u7bbuvIi WawaATd3Q1ciPTiTHXngwOPyvscTIS7WHgJFte09j0BXyeeljb+ZP8oYOfUx6dCtSJrS 39w6Z42HYj0Y6UHQ7H90Z0YDf2fGq1lAkWySVcDppsfoOgJNTvYa5kvkUOIrmhsJYU/t gFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709478991; x=1710083791; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o1EjLOCwripAI75hwQG4jvLCbqPSyGE2LrxU6gO1wIY=; b=Woa2pWjH9WNhdFtseBPe+YeRJozURqhSLbrusjcJRv6hMMY8xNGDqZtYwlrjvPMQnH /l2Go8IvNtet10ppiJB0QOlbo9qF14mvqm7fn4s2cg0e4sCqzpiwN7uZLClJdpJgHmL6 ivNnJQ9mzgZMpuR7+vk6V6tiEbbacS28tUV/AQc/fPweC8X3nWQCx5PWW5VdmKxUa+QP RDsuKxEaCokVzX5XGwgakCwH6JUUlnh2zK9PZTsyqYUqmljhBEOL28O9eJcUz+OLN8px 9HF/YXv1yA7UUTSLK24el8iWAAcFPHXYtACH5JFDyVRSWDjQQDnJN4hkQTWvTw2Aj5kc jlow== X-Forwarded-Encrypted: i=1; AJvYcCW+PBlO44No5vdG9ZKH38GMka1reW2ITJE1hf97qjXRBM+3SpPMT2Ex3QsHMw/zokA6/tKac9zob4hPQ9Quzjq4AWEjFjE/MBDTl41aAA== X-Gm-Message-State: AOJu0YzQlZMbOrX6tNJPfrkF9wA2y+bF5M3Noxz4ULEhXm4CmYJ+kV1d l/Rqy8ocQBMBbzACUiHNPq0lZ1gna0jtRHttqvEWSsNGjahs3l7S2QfYU0yfe+otzayS+RW7qTR cWKrLIcerI82y6J1YBaKZPd2OMs8= X-Google-Smtp-Source: AGHT+IGGsej7ZQSnfKmfJ4GZiNpO5pPm5GYbEqWpDJ4EjVXk0n89zyYr7dShRRIHJVb83z/AK3CWc0uFvyP7Q0Zac0o= X-Received: by 2002:a05:622a:2cc:b0:42e:e42d:e4a6 with SMTP id a12-20020a05622a02cc00b0042ee42de4a6mr3180550qtx.47.1709478991174; Sun, 03 Mar 2024 07:16:31 -0800 (PST) MIME-Version: 1.0 References: <20240228064643.1923169-1-psatheesh@marvell.com> <20240301033534.1968900-1-psatheesh@marvell.com> <20240301033534.1968900-2-psatheesh@marvell.com> In-Reply-To: <20240301033534.1968900-2-psatheesh@marvell.com> From: Jerin Jacob Date: Sun, 3 Mar 2024 20:46:05 +0530 Message-ID: Subject: Re: [dpdk-dev] [PATCH v2 2/2] common/cnxk: fix possible out-of-bounds access To: psatheesh@marvell.com Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Jerin Jacob , dev@dpdk.org, stable@dpdk.org, Harman Kalra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Fri, Mar 1, 2024 at 9:05=E2=80=AFAM wrote: > > From: Satheesh Paul > > The subtraction expression in mbox_memcpy() can wrap around > causing an out-of-bounds access. Added a check on 'size' to > fix this. > > Coverity issue: 384431, 384439 > Fixes: 585bb3e538f9 ("common/cnxk: add VF support to base device class") > Cc: stable@dpdk.org > > Signed-off-by: Satheesh Paul > Reviewed-by: Harman Kalra Series applied to dpdk-next-net-mrvl/for-main. Thanks