Re: [BUG] kernel BUG at fs/userfaultfd.c:385 after 04f5866e41fb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/27, Andrea Arcangeli wrote:
>
> I finished the debugging of the ioctl refcounting last week, but I
> didn't yet post an update sorry.

Great! so we can finally forget this problem ;)

> It was important to verify the uffd ctx of the UFFDIO_COPY ioctl is
> different than the one registered on the vma where UFFDIO_COPY hits
> handle_userfault,

I seem to understand... Somehow I thought that __mcopy_atomic() should
verify that dst_vma->vm_userfaultfd_ctx.ctx is the same ctx which was
used in userfaultfd_ioctl() but it doesn't, it only checks
dst_vma->vm_userfaultfd_ctx.ctx != NULL.

But why?

(I am just curious, let me repeat I know nothing about userfaultfd).

Oleg.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux