Re: [PATCH v4 2/2] vmalloc: Avoid rare case of flushing tlb with weird arguements

2019-05-27 Thread Peter Zijlstra
On Tue, May 21, 2019 at 01:51:37PM -0700, Rick Edgecombe wrote: > In a rare case, flush_tlb_kernel_range() could be called with a start > higher than the end. Most architectures should be fine with with this, but > some may not like it, so avoid doing this. > > In vm_remove_mappings(), in case pag

[PATCH v4 2/2] vmalloc: Avoid rare case of flushing tlb with weird arguements

2019-05-21 Thread Rick Edgecombe
In a rare case, flush_tlb_kernel_range() could be called with a start higher than the end. Most architectures should be fine with with this, but some may not like it, so avoid doing this. In vm_remove_mappings(), in case page_address() returns 0 for all pages, _vm_unmap_aliases() will be called wi