Re: [PATCH v2] userfaultfd: clear flag if remap event not enabled

2018-12-11 Thread William Kucharski
> On Dec 10, 2018, at 10:34 PM, Peter Xu wrote: > > --- > fs/userfaultfd.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c > index cd58939dc977..4567b5b6fd32 100644 > --- a/fs/userfaultfd.c > +++ b/fs/userfaultfd.c > @@

[PATCH v2] userfaultfd: clear flag if remap event not enabled

2018-12-10 Thread Peter Xu
When the process being tracked do mremap() without UFFD_FEATURE_EVENT_REMAP on the corresponding tracking uffd file handle, we should not generate the remap event, and at the same time we should clear all the uffd flags on the new VMA. Without this patch, we can still have the