Re: [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()

2008-02-12 Thread Eugene Teo
> On Tue, 12 Feb 2008 13:28:40 +0800 Eugene Teo <[EMAIL PROTECTED]> wrote: > > > This patch extends Jonathan Corbet's patch to avoid buffer overflows in > > get_user_pages(). It cleans up follow_hugetlb_page(), and get_user_pages() > > so > > that it is easier to read. It also makes sure that le

Re: [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()

2008-02-11 Thread Eugene Teo
Hi, I noticed that Linus has committed your patch. Here's a resend of my patch. Kindly review please. [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages() This patch extends Jonathan Corbet's patch to avoid buffer overflows in get_user_pages(). It tidies up follow_hugetlb_p

Re: [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()

2008-02-11 Thread Andrew Morton
On Tue, 12 Feb 2008 13:28:40 +0800 Eugene Teo <[EMAIL PROTECTED]> wrote: > This patch extends Jonathan Corbet's patch to avoid buffer overflows in > get_user_pages(). It cleans up follow_hugetlb_page(), and get_user_pages() so > that it is easier to read. It also makes sure that len and vma are va

[PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()

2008-02-11 Thread Eugene Teo
This patch extends Jonathan Corbet's patch to avoid buffer overflows in get_user_pages(). It cleans up follow_hugetlb_page(), and get_user_pages() so that it is easier to read. It also makes sure that len and vma are validated. Signed-off-by: Eugene Teo <[EMAIL PROTECTED]> --- include/linux/huget