[RFC][PATCH 1/6] mm: Dont assume page-table invariance during faults

2014-10-20 Thread Peter Zijlstra
One of the side effects of speculating on faults (without holding mmap_sem) is that we can race with free_pgtables() and therefore we cannot assume the page-tables will stick around. Remove the relyance on the pte pointer. Signed-off-by: Peter Zijlstra (Intel) --- mm/memory.c | 76

[RFC][PATCH 1/6] mm: Dont assume page-table invariance during faults

2014-10-20 Thread Peter Zijlstra
One of the side effects of speculating on faults (without holding mmap_sem) is that we can race with free_pgtables() and therefore we cannot assume the page-tables will stick around. Remove the relyance on the pte pointer. Signed-off-by: Peter Zijlstra (Intel) pet...@infradead.org ---