This version 2 supersedes the 2/2 patch I previously sent in this thread, and restricts the fix to case 8 as all other vma_merge cases were already correct as Hugh pointed out, and the testcase of course reproduced only case 8. I verified that this fixes the race condition with the testcase as good as the v1 patch did. The code is the same I sent yesterday inline in the reply, but this further improves a few comments and it's a more proper submit. Andrea Arcangeli (1): mm: vma_merge: fix vm_page_prot SMP race condition against rmap_walk mm/mmap.c | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>