From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0646DC433F5 for ; Tue, 26 Oct 2021 13:35:33 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D53C61039 for ; Tue, 26 Oct 2021 13:35:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1D53C61039 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65E8381F0B; Tue, 26 Oct 2021 15:35:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="XoE8Zidk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 776CC83374; Tue, 26 Oct 2021 15:34:56 +0200 (CEST) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 3CDB880F1A for ; Tue, 26 Oct 2021 15:34:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x835.google.com with SMTP id b12so13474953qtq.3 for ; Tue, 26 Oct 2021 06:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7u9ttGpQNFPN9aCBkQ++8xFMu1Au+edGKFU/BOrIWsQ=; b=XoE8ZidkqSFzIATHLBd5bFedXfcqE+MljIpROnsP41jRqUEy/ZNjTvtXRl/Mc64Td0 3y7xC5lefBFjroLv+OMxgZSDKbZYAX1bvd80S7P9dKQUUpA2w5I3YHmOV+B9I5jp5ZiR ++N8sO9YSXI2f8Grkoqa4+BXHybM1oD+3WYE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7u9ttGpQNFPN9aCBkQ++8xFMu1Au+edGKFU/BOrIWsQ=; b=y3eOLAeohvLO0oup9VSHO6qGVT/ijffjhr7axR5yjPBk9C+M6rhBWLX5zkaekFDwB9 ZjYtM9zsZfN/FlSkgswz63nZ7dRRRXJCvPOibgoXJhqlBSfGVLAFPaRLFX6z7Fc+BIeV e4MFJUnji1EZASvETqkq8pV+RQ7CW5G62BscD2ODH8IB2jD8qG94fi50PRxUtLRAKPPC JHNwQoJ0IeylVNMmQgqLpbcCj0C28DOGhpgLtrWIeb+vFsU1NIsXUqhpcGvEd0ROsDvW TU/Ny6W0OSQAQ4zcEdq75aCxRdfyUwdHv+KhDdAaro2qCSPM/1+y65Dce+GRHKlN0yzi ZNQg== X-Gm-Message-State: AOAM531KLlUMrZ/4WzDVjpouA8rtmK++RHM3AyCRh8YcsbXMANWRXsT+ fsWzfLbHanBMd+/LxtrTI6lhZw== X-Google-Smtp-Source: ABdhPJzImvPpEWM95s+hlKlar/GaiSnSM2sCXrJRCYWwyW/rreFt4SfNof8fiHzFPFnghUw1ZF5NvQ== X-Received: by 2002:a05:622a:13c8:: with SMTP id p8mr25631603qtk.162.1635255291006; Tue, 26 Oct 2021 06:34:51 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-9d55-b872-362e-0c9f.res6.spectrum.com. [2603:6081:7b01:cbda:9d55:b872:362e:c9f]) by smtp.gmail.com with ESMTPSA id h2sm10698383qkf.106.2021.10.26.06.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 06:34:50 -0700 (PDT) Date: Tue, 26 Oct 2021 09:34:48 -0400 From: Tom Rini To: marek.vasut@gmail.com Cc: u-boot@lists.denx.de, Marek Vasut , Simon Glass Subject: Re: [PATCH] loads: Block writes into LMB reserved areas of U-Boot Message-ID: <20211026133448.GH8284@bill-the-cat> References: <20211010215241.872206-1-marek.vasut@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oOB74oR0WcNeq9Zb" Content-Disposition: inline In-Reply-To: <20211010215241.872206-1-marek.vasut@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --oOB74oR0WcNeq9Zb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 10, 2021 at 11:52:41PM +0200, marek.vasut@gmail.com wrote: > From: Marek Vasut >=20 > The loads srec loading may overwrite piece of U-Boot accidentally. > Prevent that by using LMB to detect whether upcoming write would > overwrite piece of reserved U-Boot code, and if that is the case, > abort the srec loading. >=20 > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --oOB74oR0WcNeq9Zb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF4A/gACgkQFHw5/5Y0 tyyNOAv8DJHFvIL3nLQe2tXU8XXaNoI4SPdi9oxT9k1DWJnaILuwgiqG7Z0FvQzt SV7JmobZGxa3ULx1soaQWYbkF8NxLgwDgg535O2AJo7R3IaNymcU/yBMRMP7bmpC MS6FcAN2WvfTMCIc47IMWdo3yOd/nf9jjcedVbybNWHnESXvTic2PNGMld1qNYYE ApbkYViP4bpcc9ppjoLtd9Kfj/AdPkS4U/oODtT+3IeNPa01hx6pJu21KJ5J9zqJ ayulN2Iwj16MNLq15Bo5Raz3csTLBZGB1Z0KmDObMt2D9b6sCIyEGMrsVmjiOPfR db6EGr9I6zqtRuXZlG1nRQC6jKQlpYFV8LceCNF9NHKgil21Fj0YefQulpsR8MXJ pK6iGgF+bTCE4oxcLSl59JBu5SDHO0rBVId7LuqytDaw2lsRJekXiDIrveM11hwt zDFoJyPDfHbRsAudqKuoa4iqKdVqvohH8xemiurpTuGPNjI2eZwom08AjqBuQVQ2 dBB7tQD8 =0oT8 -----END PGP SIGNATURE----- --oOB74oR0WcNeq9Zb--