There are more pageattr/ioremap bugs I've fixed recently. Such machine didn't work even after the last round of fixes. Now I found the last bug and machine works again, that is the p->size returned by remove_vm_area is off by one, since it includes the guard page, and this lead to every iounmap to execute change_page_attr on one more page than ioremap_nocache. This is really a bug in mm/vmalloc.c, we sure don't want to expose the size of the guard page to the caller. While looking for the above, I found a missing tlb flush if more than page was being released by change_page_attr before a global_flush_tlb call (shouldn't normally happen). x86 didn't have the flushing bug, while the change_page_attr bug above was for both x86 and x86-64. I attached all the pending fixes in order against mainline. (other archs aren't checking p->size returned by remove_vm_area, only x86 and x86-64 were bitten by the bug)