Re: [PATCH v2 15/20] vmalloc: New flags for safe vfree on special perms

2019-02-20 Thread Borislav Petkov
On Tue, Feb 19, 2019 at 07:42:53PM +, Edgecombe, Rick P wrote: > So to capture both of those intentions, maybe I'll slightly tweak your > suggestion to VM_FLUSH_RESET_PERMS? Yeah, sure, better. VM_HAS_SPECIAL_PERMS doesn't tell me what those special permissions are while flush and reset permi

Re: [PATCH v2 15/20] vmalloc: New flags for safe vfree on special perms

2019-02-19 Thread Edgecombe, Rick P
Thanks Boris. Ard, Will: An arm question came up below. Any thoughts? On Tue, 2019-02-19 at 13:48 +0100, Borislav Petkov wrote: > On Mon, Jan 28, 2019 at 04:34:17PM -0800, Rick Edgecombe wrote: > > This adds a new flags VM_HAS_SPECIAL_PERMS, for enabling vfree operations > > s/This adds/add/ - y

Re: [PATCH v2 15/20] vmalloc: New flags for safe vfree on special perms

2019-02-19 Thread Borislav Petkov
On Mon, Jan 28, 2019 at 04:34:17PM -0800, Rick Edgecombe wrote: > This adds a new flags VM_HAS_SPECIAL_PERMS, for enabling vfree operations s/This adds/add/ - you get the idea. :) s/flags/flag/ > to immediately clear executable TLB entries to freed pages, and handle > freeing memory with special

[PATCH v2 15/20] vmalloc: New flags for safe vfree on special perms

2019-01-28 Thread Rick Edgecombe
This adds a new flags VM_HAS_SPECIAL_PERMS, for enabling vfree operations to immediately clear executable TLB entries to freed pages, and handle freeing memory with special permissions. It also takes care of resetting the direct map permissions for the pages being unmapped. So this flag is useful f