From patchwork Sat Apr 16 17:48:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1618069 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=BbSZUqeC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kggg83VrFz9sGl for ; Sun, 17 Apr 2022 03:49:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2AD383AB2; Sat, 16 Apr 2022 19:49:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.b="BbSZUqeC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95B2083D8B; Sat, 16 Apr 2022 19:48:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 10E4882A36 for ; Sat, 16 Apr 2022 19:48:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wr1-x434.google.com with SMTP id g18so14024917wrb.10 for ; Sat, 16 Apr 2022 10:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sf5E7DdZ/fkJbFsGwQYSDpYpo5qPyVJu3B3Aws0yY2Q=; b=BbSZUqeCiIjv0G/WOSXaMgpwW5mmWxBGkx+LavaXbRKUIX5Hqewrl5xPrnoO+phtRJ uycDgYXugadkgJcKfMnAkCQBO3eHOxE5aryMo8x5z5qcHaEgxmQxWrwat4ZhoT/Qpka9 FiZnjGoZkHvVjEGqB+ho+5eO5FXRI/cvN94BL2se1I2qghByuuJtRIyyZPx6iwR5gAFh TYJjCj5dCLyd2vsjhAHZTpGSAHK8oZRRCa/Bkunu9MSJLDrthNEBKLIMDmI8j8f12vbC oTPSGzQaIWvBv8lpIzBGH19qeYImult/xWTy4TlGFqd1cGJpWkaaelP2owpH36KPDm3d NS5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sf5E7DdZ/fkJbFsGwQYSDpYpo5qPyVJu3B3Aws0yY2Q=; b=efpjVBjxsBvVFTBTwQInjUtZpiVVZeJ5aFTjGDwoJTyavyFNrC+xcOvC6WcLZ7hqg2 mUMFYdnHan1K6TElKa4lwWxpMOTRFrfhD44Vj87+of4ydhTHpQi4GCuna9fa32ocYgm/ YtO2aQpBe014pzQ2QiucV0Zs9bkNq3Z6g7WwybnCafO1r/Zjqo8IZfqvhz2b7IbjwaKL rgIzx872YnaAepyGPn+lW3fkij0eh94jBNghf95IJB+ab2CzHJx9KUx9ZAM3lVEgAstq e/IN0c1WsI6EqFcvU6Hzsv/Q6ZJZxAa1ixLhNHzlF+nSu67GiISNsr5YVfUj5U+01hYA KbEA== X-Gm-Message-State: AOAM530EcDZf3D8BFnwSmwSaFI8j36/mebkzWgTqfs2AlmjyW4L+Le8R o9IgG5rS4gALGjb5RTMFVmtutslzkzr7lQ== X-Google-Smtp-Source: ABdhPJw09av8yW4GZLdcAV3BxeU8HFYXJ9WbndIOY2CwP7pynzMp/CcAB0bx021Cr6IBmnsjYSmiQQ== X-Received: by 2002:adf:f98e:0:b0:207:9eed:60d8 with SMTP id f14-20020adff98e000000b002079eed60d8mr3109566wrr.566.1650131335599; Sat, 16 Apr 2022 10:48:55 -0700 (PDT) Received: from localhost.localdomain (95.red-81-38-138.dynamicip.rima-tde.net. [81.38.138.95]) by smtp.gmail.com with ESMTPSA id f15-20020a0560001a8f00b002078f74ccd2sm7743302wry.36.2022.04.16.10.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Apr 2022 10:48:55 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, michal.simek@xilinx.com, t.karthik.reddy@xilinx.com, ashok.reddy.soma@xilinx.com Cc: u-boot@lists.denx.de Subject: [PATCH] soc: xilinx: versal: fix out of bounds array access Date: Sat, 16 Apr 2022 19:48:45 +0200 Message-Id: <20220416174845.2307569-1-jorge@foundries.io> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The call to xilinx_pm_request requires an array of a larger size. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/soc/soc_xilinx_versal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/soc_xilinx_versal.c b/drivers/soc/soc_xilinx_versal.c index f8bcd9ab40..752a51a4b2 100644 --- a/drivers/soc/soc_xilinx_versal.c +++ b/drivers/soc/soc_xilinx_versal.c @@ -45,7 +45,7 @@ static const struct soc_ops soc_xilinx_versal_ops = { static int soc_xilinx_versal_probe(struct udevice *dev) { struct soc_xilinx_versal_priv *priv = dev_get_priv(dev); - u32 ret_payload[4]; + u32 ret_payload[5]; int ret; priv->family = versal_family;