Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-30 Thread Leon Romanovsky
On Mon, Mar 29, 2021 at 07:12:55PM +0900, Hyunsoon Kim wrote: > On Mon, Mar 29, 2021 at 09:34:31AM +0300, Leon Romanovsky wrote: > > On Mon, Mar 29, 2021 at 02:29:10PM +0900, Hyunsoon Kim wrote: > > > This patch allows programmer to avoid zero initialization on page > > > allocation even when the k

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-30 Thread David Hildenbrand
On 30.03.21 03:44, Hyunsoon Kim wrote: On Mon, Mar 29, 2021 at 12:53:48PM +0200, David Hildenbrand wrote: On 29.03.21 07:29, Hyunsoon Kim wrote: This patch allows programmer to avoid zero initialization on page allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" is enabled. Th

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-29 Thread Hyunsoon Kim
On Mon, Mar 29, 2021 at 12:53:48PM +0200, David Hildenbrand wrote: > On 29.03.21 07:29, Hyunsoon Kim wrote: > >This patch allows programmer to avoid zero initialization on page > >allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" > >is enabled. The configuration is made to preve

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-29 Thread David Hildenbrand
On 29.03.21 07:29, Hyunsoon Kim wrote: This patch allows programmer to avoid zero initialization on page allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" is enabled. The configuration is made to prevent uninitialized heap memory flaws, and Android has applied this for securit

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-29 Thread Hyunsoon Kim
On Mon, Mar 29, 2021 at 09:34:31AM +0300, Leon Romanovsky wrote: > On Mon, Mar 29, 2021 at 02:29:10PM +0900, Hyunsoon Kim wrote: > > This patch allows programmer to avoid zero initialization on page > > allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" > > is enabled. The config

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-29 Thread kernel test robot
Hi Hyunsoon, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.12-rc5] [also build test WARNING on next-20210326] [cannot apply to hnaz-linux-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we sugges

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-28 Thread Leon Romanovsky
On Mon, Mar 29, 2021 at 02:29:10PM +0900, Hyunsoon Kim wrote: > This patch allows programmer to avoid zero initialization on page > allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" > is enabled. The configuration is made to prevent uninitialized > heap memory flaws, and Android

[PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-28 Thread Hyunsoon Kim
This patch allows programmer to avoid zero initialization on page allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" is enabled. The configuration is made to prevent uninitialized heap memory flaws, and Android has applied this for security and deterministic execution times. Plea