From patchwork Mon Sep 16 15:20:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 829012 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:4187:b0:367:895a:4699 with SMTP id ei7csp842128wrb; Mon, 16 Sep 2024 08:20:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuTn/l919TS9TJnZD7r+CN+G06vP4htyeaVlqSPgqA892uVPoORrA83mbnN3Vk41H5TMuCwA==@linaro.org X-Google-Smtp-Source: AGHT+IFoNYoC949iteNMWHgV+F0LYBaYX0mjoQW/0ecDEXUBuCY8DduC+0pky7DEpwDHoJ/YbE0z X-Received: by 2002:a17:907:7f20:b0:a86:7514:e649 with SMTP id a640c23a62f3a-a9048108f9fmr1219639366b.52.1726500042342; Mon, 16 Sep 2024 08:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726500042; cv=none; d=google.com; s=arc-20240605; b=NmZXPGFwb4Ao827tbvHo+aIgNenAsyHB6HP1WOGqxfvVWjrSm8TON1/0Rfb123hvwq J3K/LvoX3K30hJ28YCWiHQuEuwekjcyFyUZuGxemFAujdBJzfZSpSiVTrxHBPEXfZeJL RQs+a3I7LBA8IurPgZnd1N7bul70PygwyrepdVZ33wfpH/ZoTxDuSh4XpqW6kjyzKjcn eG8ZoJhlxF5o10AzoUhpZmhUJgy/A0m91m4Dnk1GeVUhSqhtthQu1FFyavb2Yl+uOVhk gTQtz4GLVIfygD7pejGiYutG2kqo1raiQYsUGvxViBCEuu9a6L+JGkwOE0XQlVFq2g4j VSxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=8u2r/lHHgZq0EAZPT7Us9LdBlHVOjNg4v+etekn6PcA=; fh=VNPnVfWQIIOsNQu7HuXsIB65G5sAp82xRmryU2DOQQE=; b=Sw8xAxCxoVKFAFDdprgAPSxxjn1OHu4b3YHOSxkQVOrTqR+XMcYRuK3eGSyRzpY9C0 SV1COJAwvS8u1Odo60tgWhAtrBPI3GhzqK9MH14AKkj9s63f2SrVE1CZq6K9/Q1Jn0wn KEOLgXLfM+h4k00aC0D7Dah8C5W2sdCKTXckvrYsMz+A9uGXa6sQ1OXS59ZODUVUUfWw 4pSj7bHz+oXOMKI4ncqOqsW96Y3dgIlCO0iMTbJAKmKFb5u5KqWxzk/y1y3iSZz/ObYp 7i3ajUn8ysjSQtBuZfW0YwzCeqAPu83zcSrTrNnqvGFh/nyCXzEMzjmtvTrSaX/R4pXt ufEQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a906109a033si385798566b.67.2024.09.16.08.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 08:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0FE4C88EAC; Mon, 16 Sep 2024 17:20:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 723A488EA4; Mon, 16 Sep 2024 17:20:40 +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=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C443188EC6 for ; Mon, 16 Sep 2024 17:20:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 64AB011FB; Mon, 16 Sep 2024 08:21:06 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 125DD3F66E; Mon, 16 Sep 2024 08:20:34 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Ramon Fried , Joe Hershberger , Vaishnav Achath Subject: [PATCH 0/2] lmb: rework logic to validate load address for network commands Date: Mon, 16 Sep 2024 20:50:23 +0530 Message-Id: <20240916152025.75789-1-sughosh.ganu@linaro.org> 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.8 at phobos.denx.de X-Virus-Status: Clean Rework the logic to verify the load address so that address re-use is not an issue. Note: To be applied on next, on top of https://patchwork.ozlabs.org/project/uboot/patch/20240913073251.2286529-2-prasad.kummari@amd.com/ Sughosh Ganu (2): tftp: rework the logic to validate the load address wget: rework the logic to validate the load address net/tftp.c | 19 +------------------ net/wget.c | 36 +----------------------------------- 2 files changed, 2 insertions(+), 53 deletions(-)