Re: [PATCH] mm/hugetlb: __get_user_pages ignores certain follow_hugetlb_page errors

2017-07-21 Thread Daniel Jordan
Hi Punit, On 07/21/2017 05:20 AM, Punit Agrawal wrote: The change makes sense. FWIW, Acked-by: Punit Agrawal Thanks, I appreciate that. I was wondering how you hit the issue. Is there a test case that could have spotted this earlier? This was actually just by inspection. I checked selft

Re: [PATCH] mm/hugetlb: __get_user_pages ignores certain follow_hugetlb_page errors

2017-07-21 Thread Punit Agrawal
Hi Daniel, daniel.m.jor...@oracle.com writes: > Commit 9a291a7c9428 ("mm/hugetlb: report -EHWPOISON not -EFAULT when > FOLL_HWPOISON is specified") causes __get_user_pages to ignore certain > errors from follow_hugetlb_page. After such error, __get_user_pages > subsequently calls faultin_page on

[PATCH] mm/hugetlb: __get_user_pages ignores certain follow_hugetlb_page errors

2017-07-18 Thread daniel . m . jordan
Commit 9a291a7c9428 ("mm/hugetlb: report -EHWPOISON not -EFAULT when FOLL_HWPOISON is specified") causes __get_user_pages to ignore certain errors from follow_hugetlb_page. After such error, __get_user_pages subsequently calls faultin_page on the same VMA and start address that follow_hugetlb_page