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 A3884426B6; Wed, 4 Oct 2023 14:28:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91F834067B; Wed, 4 Oct 2023 14:28:53 +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 6438F406B6 for ; Wed, 4 Oct 2023 14:28:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696422531; 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=mVDSmzwbMFWuDAb4S2mba02lkeeYtlOHmqEo0KIdZr8=; b=XSAnwXZLg4+RBVW1LFU2HGjNqLXaSc19DZ4FEjrGI1Uh9/u8r1oyk7OnTAKFBkWwbfyL77 GPYkFSA3FuKw0S9hD6T5HW26iW6eRgPlAC/2QGk5zINGCsWzQLJw3p1a1AgRBJafxUCIYP 7XVKL/RaO9P3flcK12RHQWjERKr7MLQ= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-206-3e2k3u7OM9KV9E6g430vQQ-1; Wed, 04 Oct 2023 08:28:48 -0400 X-MC-Unique: 3e2k3u7OM9KV9E6g430vQQ-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-5041a779c75so1952788e87.2 for ; Wed, 04 Oct 2023 05:28:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696422527; x=1697027327; 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=mVDSmzwbMFWuDAb4S2mba02lkeeYtlOHmqEo0KIdZr8=; b=dzKChynfpRwQOfe81zfOBWqCp1YrlS4FZpUvaKpbFs82dCUY08bkHEvtKRC0sVxu1C cjRfTLY0ZgwLclHZha6iDnXVHl5JcpqVj2x4rw7VZUtzgayp3l18zxw8I3ITyXpIEfq1 bJjOK98/JUs+5bK0cFuckLnWkXTLOvSnwAQAa577MGhhy5Vmp/PTSg5fq4TbVMq05BjU qvZc7pFmfIH6vaJcrFPjznbvGijNTdjggd9C3gE8Me9Af48zIL82iCDUDxTJPZPOjvQg ez7PTWm4+mrEmEe1r5mZzxWIroAHsaownYvIX7BCo+rtJ3pE48cQ0+JY0ueqGx178y8K kJBQ== X-Gm-Message-State: AOJu0YzwrL5UIrbD2JNZbBOiDpyxft3SbJTRbLtcqtuEHV3Kei63cSfz GZ+6mp4jPDaNLBpgr0vLasH07lU4yT0nrUwrhXfTfY3y/P8CP90fbC0PZpfC2BBq8rjegtUbzJq bhyjXnhcgmjQkTtWYvwg/c2evHUA= X-Received: by 2002:a05:6512:202f:b0:503:1746:6882 with SMTP id s15-20020a056512202f00b0050317466882mr1361359lfs.37.1696422527112; Wed, 04 Oct 2023 05:28:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf5JFBh+biA6nFjEX9btqYF0emo4vmgTHydJ/1cIvgJo2Sx3XXdkneoFBTPLEsfAvtcQJAWX5WASvm139A2yM= X-Received: by 2002:a05:6512:202f:b0:503:1746:6882 with SMTP id s15-20020a056512202f00b0050317466882mr1361351lfs.37.1696422526803; Wed, 04 Oct 2023 05:28:46 -0700 (PDT) MIME-Version: 1.0 References: <20230721052810.2048437-1-g.singh@nxp.com> In-Reply-To: <20230721052810.2048437-1-g.singh@nxp.com> From: David Marchand Date: Wed, 4 Oct 2023 14:28:35 +0200 Message-ID: Subject: Re: [PATCH] bus/dpaa: fix outside array bounds error with GCC v13 To: Gagandeep Singh Cc: ferruh.yigit@amd.com, dev@dpdk.org, jerinj@marvell.com, stable@dpdk.org, Hemant Agrawal X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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, Jul 21, 2023 at 7:28=E2=80=AFAM Gagandeep Singh w= rote: > > when RTE_ENABLE_ASSERT is enable, DPAA driver is doing > wrong NULL check on frame queue which allows the code > to have access to NULL address. > GCC v13 is giving array bounds error if code is > accessing any memory region less than 4KB. > This patch fixes this issue by adding proper NULL checks > on frame queue. > > Bugzilla ID: 1233 > Fixes: c47ff048b99a ("bus/dpaa: add QMAN driver core routines") > Cc: stable@dpdk.org > > Signed-off-by: Gagandeep Singh > Acked-by: Hemant Agrawal > Acked-by: Jerin Jacob Applied, thanks. --=20 David Marchand