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 663E6426B6 for ; Wed, 4 Oct 2023 14:28:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DBAA4067B; Wed, 4 Oct 2023 14:28:51 +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 92D4D402CE for ; Wed, 4 Oct 2023 14:28:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696422530; 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=RvDftdwo70PHOMh2OW3wbvrnBji6F8EsfPwHBWTZyTK//DdjV9AL53LYL9SrB6Q/KdxT1D 6MoOkjMCzfVbQaV0iwQDqBR/1Ux4c3bWaQ5kI+v8jmGtRxJSt2SF5vzgiJvXAnfWjvxStc NGVr8TAzmsx95nwsIIXatqwhjm1BDD8= 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-208-KA2F7O-tPe6wJcbU3TM61w-1; Wed, 04 Oct 2023 08:28:48 -0400 X-MC-Unique: KA2F7O-tPe6wJcbU3TM61w-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-5043353efbdso1965010e87.0 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=RcdwClawv6mkwnqFaYEQwG/d0M814FRwfdxhGshr0u327FeiLAXqoI41j03mxXxvpE WG9md+H90JUqddesYTLXTW5OcmxNenfUiiv6oxEG0gzNaGPRZsEZtD61awFOewd+1yjU wPP+cE4CZ99JcvDfKauk3vPmqPyh5YDdPpIIL+JkGlRqPYkVev2v/NQirEj6Dy26hojB vcn7UZ7puWJmSTWTZWH8q4Zz+53lVZImA6tB3V1YOyX+4NtFEZsfYrkgit0pKIQ6tOja Pavq5WxLPiemOW4Y20u+N8IwqmAO1p7aCNIn2hAK6nIe6Ws49EK+sDDo+u6bdMieQV7Y RnVg== X-Gm-Message-State: AOJu0Ywrn5qHCUm+5GO4EycEkaM76zXELs8EmEa7Xuu6xQIM6Vh9MZP7 Y1kCRc9Om0lI7SNBrPUTx6utLn1OndGifDw7lVSWp+jdohmpCu+CEcri+edrQjunECm3qRFSUfx Q0yj0bAjDJT5KvpkvF81nAlg= X-Received: by 2002:a05:6512:202f:b0:503:1746:6882 with SMTP id s15-20020a056512202f00b0050317466882mr1361363lfs.37.1696422527118; 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: 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 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