Thread (3 messages) flat view 3 messages, 3 authors, 2008-07-07

Re: [Libhugetlbfs-devel] libbugetlbfs: Test case for powerpc huge_ptep_set_wrprotect() bug

From: Adam Litke <hidden>
Date: 2008-07-07 15:26:59

On Mon, 2008-07-07 at 17:19 +1000, David Gibson wrote:
Until very recently (in fact, even now in mainline) powerpc kernels
had a bug in huge_ptep_set_wrprotect() which meant the 'huge' flag was
not passed down to pte_update() and hpte_need_flush().  This meant the
hash ptes for hugepages would not be correctly flushed on fork(),
allowing the parent to pollute the child's mapping after the fork().

This patch adds a testcase to libhugetlbfs for this behaviour, also
doing some other checking of the COW semantics over a fork().

Signed-off-by: David Gibson <redacted>
Good test David, thanks...
Acked-by: Adam Litke <redacted>

-- 
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help