Re: [PATCH 1/1] vmalloc: Fix issues with flush flag

2019-05-20 Thread Edgecombe, Rick P
On Fri, 2019-05-17 at 14:01 -0700, Rick Edgecomb e wrote: > Meelis Roos reported issues with the new VM_FLUSH_RESET_PERMS flag on > the > sparc architecture. > Argh, this patch is not correct in the flush range for non-x86. I'll send a revision.

Re: [PATCH 1/1] vmalloc: Fix issues with flush flag

2019-05-19 Thread Edgecombe, Rick P
Hi, After investigating this more, I am not positive why this fixes the issue on sparc. I will continue to investigate as best I can, but would like to request help from some sparc experts on evaluating my line of thinking. I think the changes in this patch are still very worthwhile generally thou

[PATCH 1/1] vmalloc: Fix issues with flush flag

2019-05-17 Thread Rick Edgecombe
Meelis Roos reported issues with the new VM_FLUSH_RESET_PERMS flag on the sparc architecture. When freeing many BPF JITs at once the free operations can become stuck waiting for locks as they each try to vm_unmap_aliases(). Calls to this function happen frequently on some archs, but in vmalloc its