login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
8
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Ken Chen <kenchen@...>
To: Adam Litke <agl@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <linuxppc-dev@...>, Hoang-Nam Nguyen <hnguyen@...>
Subject:
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
Date: Thursday, November 8, 2007 - 4:43 pm
On Nov 7, 2007 11:51 AM, Adam Litke <agl@us.ibm.com> wrote:
quoted text
> When calling get_user_pages(), a write flag is passed in by the caller to > indicate if write access is required on the faulted-in pages. Currently, > follow_hugetlb_page() ignores this flag and always faults pages for > read-only access. This can cause data corruption because a device driver > that calls get_user_pages() with write set will not expect COW faults to > occur on the returned pages. > > This patch passes the write flag down to follow_hugetlb_page() and makes > sure hugetlb_fault() is called with the right write_access parameter. > > Signed-off-by: Adam Litke <agl@us.ibm.com>
Adam, this looks good. Reviewed-by: Ken Chen <kenchen@google.com> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] hugetlb: follow_hugetlb_page for write access
, Adam Litke
, (Wed Nov 7, 3:51 pm)
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
, Hoang-Nam Nguyen
, (Mon Nov 19, 11:25 am)
Re: [PATCH] hugetlb: follow_hugetlb_page for write access
, Ken Chen
, (Thu Nov 8, 4:43 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Andi Kleen
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: Possible regression in HTB
Natalie Protasevich
[BUG] New Kernel Bugs
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
git
:
Colocation donated by:
Who's online
There are currently
0 users
and
617 guests
online.
Syndicate