Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-11 Thread Catalin Marinas
On Wed, May 10, 2017 at 12:55:12PM +0100, Will Deacon wrote: > On Wed, May 10, 2017 at 09:38:03AM +0100, Catalin Marinas wrote: > > On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > > > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > > > On 05/03/2017 04:18 AM,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-11 Thread Catalin Marinas
On Wed, May 10, 2017 at 12:55:12PM +0100, Will Deacon wrote: > On Wed, May 10, 2017 at 09:38:03AM +0100, Catalin Marinas wrote: > > On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > > > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > > > On 05/03/2017 04:18 AM,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-10 Thread Will Deacon
On Wed, May 10, 2017 at 09:38:03AM +0100, Catalin Marinas wrote: > On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > > On 05/03/2017 04:18 AM, Will Deacon wrote: > > > > On Thu, Apr 27, 2017 at 11:19:02AM -0700,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-10 Thread Will Deacon
On Wed, May 10, 2017 at 09:38:03AM +0100, Catalin Marinas wrote: > On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > > On 05/03/2017 04:18 AM, Will Deacon wrote: > > > > On Thu, Apr 27, 2017 at 11:19:02AM -0700,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-10 Thread Catalin Marinas
On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > On 05/03/2017 04:18 AM, Will Deacon wrote: > > > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > > >> When CONFIG_ARM64_MODULE_PLTS is enabled,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-10 Thread Catalin Marinas
On Mon, May 08, 2017 at 11:07:24AM +0100, Will Deacon wrote: > On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > > On 05/03/2017 04:18 AM, Will Deacon wrote: > > > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > > >> When CONFIG_ARM64_MODULE_PLTS is enabled,

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-08 Thread Will Deacon
On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > On 05/03/2017 04:18 AM, Will Deacon wrote: > > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > >> When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the > >> module space fails, because the

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-08 Thread Will Deacon
On Fri, May 05, 2017 at 02:07:28PM -0700, Florian Fainelli wrote: > On 05/03/2017 04:18 AM, Will Deacon wrote: > > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > >> When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the > >> module space fails, because the

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-05 Thread Florian Fainelli
On 05/03/2017 04:18 AM, Will Deacon wrote: > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: >> When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the >> module space fails, because the module is too big, and then the module >> allocation is attempted from

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-05 Thread Florian Fainelli
On 05/03/2017 04:18 AM, Will Deacon wrote: > On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: >> When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the >> module space fails, because the module is too big, and then the module >> allocation is attempted from

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-03 Thread Will Deacon
On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the > module space fails, because the module is too big, and then the module > allocation is attempted from vmalloc space. Silence the first allocation > failure

Re: [PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-05-03 Thread Will Deacon
On Thu, Apr 27, 2017 at 11:19:02AM -0700, Florian Fainelli wrote: > When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the > module space fails, because the module is too big, and then the module > allocation is attempted from vmalloc space. Silence the first allocation > failure

[PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-04-27 Thread Florian Fainelli
When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case by setting __GFP_NOWARN. Reviewed-by: Ard Biesheuvel

[PATCH v3 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-04-27 Thread Florian Fainelli
When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case by setting __GFP_NOWARN. Reviewed-by: Ard Biesheuvel