Re: [PATCH v10 3/3] ARM: uncompress: Validate start of physical memory against passed DTB

2020-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2020, Geert Uytterhoeven wrote: > Currently, the start address of physical memory is obtained by masking > the program counter with a fixed mask of 0xf800. This mask value > was chosen as a balance between the requirements of different platforms. > However, this does require

Re: [PATCH v10 3/3] ARM: uncompress: Validate start of physical memory against passed DTB

2020-12-03 Thread Geert Uytterhoeven
Hi Russell, On Thu, Dec 3, 2020 at 3:05 PM Russell King - ARM Linux admin wrote: > On Thu, Dec 03, 2020 at 01:19:16PM +0100, Geert Uytterhoeven wrote: > > diff --git a/arch/arm/boot/compressed/head.S > > b/arch/arm/boot/compressed/head.S > > index d9cce7238a365081..1b6425df87e84e71 100644 > >

Re: [PATCH v10 3/3] ARM: uncompress: Validate start of physical memory against passed DTB

2020-12-03 Thread Russell King - ARM Linux admin
On Thu, Dec 03, 2020 at 01:19:16PM +0100, Geert Uytterhoeven wrote: > diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S > index d9cce7238a365081..1b6425df87e84e71 100644 > --- a/arch/arm/boot/compressed/head.S > +++ b/arch/arm/boot/compressed/head.S > @@ -282,10

Re: [PATCH v10 3/3] ARM: uncompress: Validate start of physical memory against passed DTB

2020-12-03 Thread Ard Biesheuvel
On Thu, 3 Dec 2020 at 13:19, Geert Uytterhoeven wrote: > > Currently, the start address of physical memory is obtained by masking > the program counter with a fixed mask of 0xf800. This mask value > was chosen as a balance between the requirements of different platforms. > However, this does

[PATCH v10 3/3] ARM: uncompress: Validate start of physical memory against passed DTB

2020-12-03 Thread Geert Uytterhoeven
Currently, the start address of physical memory is obtained by masking the program counter with a fixed mask of 0xf800. This mask value was chosen as a balance between the requirements of different platforms. However, this does require that the start address of physical memory is a multiple