Re: [PATCH 06/11] mm/hugetlb: do not modify user provided gfp_mask

2020-05-22 Thread Joonsoo Kim
2020년 5월 22일 (금) 오전 7:19, Mike Kravetz 님이 작성: > > On 5/17/20 6:20 PM, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > It's not good practice to modify user input. Instead of using it to > > build correct gfp_mask for APIs, this patch introduces another gfp_mask > > field, __gfp_mask, for

Re: [PATCH 06/11] mm/hugetlb: do not modify user provided gfp_mask

2020-05-21 Thread Mike Kravetz
On 5/17/20 6:20 PM, js1...@gmail.com wrote: > From: Joonsoo Kim > > It's not good practice to modify user input. Instead of using it to > build correct gfp_mask for APIs, this patch introduces another gfp_mask > field, __gfp_mask, for internal usage. Modifying the flags as is done in the

[PATCH 06/11] mm/hugetlb: do not modify user provided gfp_mask

2020-05-17 Thread js1304
From: Joonsoo Kim It's not good practice to modify user input. Instead of using it to build correct gfp_mask for APIs, this patch introduces another gfp_mask field, __gfp_mask, for internal usage. Signed-off-by: Joonsoo Kim --- mm/hugetlb.c | 15 --- mm/internal.h | 2 ++ 2