Re: [PATCH 03/18] mm: make vm_munmap killable

From: Michal Hocko
Date: Fri Mar 11 2016 - 07:32:23 EST


On Fri 11-03-16 11:06:41, Vlastimil Babka wrote:
> On 02/29/2016 02:26 PM, Michal Hocko wrote:
> >From: Michal Hocko <mhocko@xxxxxxxx>
> >
> >Almost all current users of vm_munmap are ignoring the return value
> >and so they do not handle potential error. This means that some VMAs
>
> 1 7834 arch/x86/kvm/x86.c <<__x86_set_memory_region>>
>
> r = vm_munmap(old.userspace_addr, old.npages * PAGE_SIZE);
> WARN_ON(r < 0);
>
> This warning will potentially add noise to OOM output?

Would it be harmfull though? I mean the warning is just goofy. I can
make it not warn on (r < 0 && r != -EINTR) but is it worth bothering?

Thanks!
--
Michal Hocko
SUSE Labs