From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 19 Jun 2018 09:40:59 +0200 Subject: [U-Boot] U-Boot TFTP protection In-Reply-To: References: Message-ID: <20180619094059.1ccabfae@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, > Hello, > We have been looking at protecting U-Boot from (malicious) TFTP > overwrites. We want to do this after our ARMv7 U-Boot has relocated. > > The memory map looks like this (I hope): > > --------------------------- Top of DRAM > | U-Boot (Protected) > | -------------------------- U_Boot_start > | Heap (Protected) > | -------------------------- Start_Heap = U_Boot_start - Heap_Size > | Stack (Protected) > | -------------------------- Start_Stack = Start_Heap - Stack_Size > | Buffers (Protected) > | -------------------------- ??? > | Free DRAM (Not Protected) > --------------------------- Start of DRAM > > I seem to get lost in the code trying to find possible buffers, can > you please give a hint how I can find the address "???" By default the tftp writes its data to the address pointed by the "loadaddr" env variable. printenv loadaddr > > Best Regards, > Stefan > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: