Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-03-19 Thread Pavel Tatashin
Hi Will, Could you please take this patch now that the dependencies landed in the mainline? Thank you, Pasha On Mon, Feb 22, 2021 at 9:17 AM Pavel Tatashin wrote: > > > Taking that won't help either though, because it will just explode when > > it meets 'mm' in Linus's tree. > > > > So here's

Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-23 Thread Anshuman Khandual
On 2/16/21 8:33 PM, Pavel Tatashin wrote: > Memory hotplug may fail on systems with CONFIG_RANDOMIZE_BASE because the > linear map range is not checked correctly. > > The start physical address that linear map covers can be actually at the > end of the range because of randomization. Check

Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-22 Thread Pavel Tatashin
> Taking that won't help either though, because it will just explode when > it meets 'mm' in Linus's tree. > > So here's what I think we need to do: > > - I'll apply your v3 at -rc1 > - You can send backports based on your -v2 for stable once the v3 has > been merged upstream. > > Sound

Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-22 Thread Will Deacon
On Fri, Feb 19, 2021 at 02:44:49PM -0500, Pavel Tatashin wrote: > On Fri, Feb 19, 2021 at 2:18 PM Will Deacon wrote: > > > > On Tue, Feb 16, 2021 at 10:03:51AM -0500, Pavel Tatashin wrote: > > > Memory hotplug may fail on systems with CONFIG_RANDOMIZE_BASE because the > > > linear map range is

Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-19 Thread Pavel Tatashin
On Fri, Feb 19, 2021 at 2:18 PM Will Deacon wrote: > > On Tue, Feb 16, 2021 at 10:03:51AM -0500, Pavel Tatashin wrote: > > Memory hotplug may fail on systems with CONFIG_RANDOMIZE_BASE because the > > linear map range is not checked correctly. > > > > The start physical address that linear map

Re: [PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-19 Thread Will Deacon
On Tue, Feb 16, 2021 at 10:03:51AM -0500, Pavel Tatashin wrote: > Memory hotplug may fail on systems with CONFIG_RANDOMIZE_BASE because the > linear map range is not checked correctly. > > The start physical address that linear map covers can be actually at the > end of the range because of

[PATCH v3 1/1] arm64: mm: correct the inside linear map range during hotplug check

2021-02-16 Thread Pavel Tatashin
Memory hotplug may fail on systems with CONFIG_RANDOMIZE_BASE because the linear map range is not checked correctly. The start physical address that linear map covers can be actually at the end of the range because of randomization. Check that and if so reduce it to 0. This can be verified on