Re: kernel BUG at fs/userfaultfd.c:LINE! (2)

2018-07-18 Thread Mike Rapoport
On Tue, Jul 17, 2018 at 12:28:06PM -0700, Eric Biggers wrote: > [+Cc userfaultfd developers and linux-mm] > > The reproducer hits the BUG_ON() in userfaultfd_release(): > > BUG_ON(!!vma->vm_userfaultfd_ctx.ctx ^ > !!(vma->vm_flags & (VM_UFFD_MISSING | VM_UFFD_WP))); Thanks for

Re: kernel BUG at fs/userfaultfd.c:LINE! (2)

2018-07-17 Thread Eric Biggers
[+Cc userfaultfd developers and linux-mm] The reproducer hits the BUG_ON() in userfaultfd_release(): BUG_ON(!!vma->vm_userfaultfd_ctx.ctx ^ !!(vma->vm_flags & (VM_UFFD_MISSING | VM_UFFD_WP))); On Sun, Jul 15, 2018 at 05:19:03PM -0700, syzbot wrote: > Hello, > > syzbot fou

Re: kernel BUG at fs/userfaultfd.c:LINE!

2018-01-30 Thread Eric Biggers
On Fri, Dec 22, 2017 at 01:37:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

Re: [PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2018-01-18 Thread Pavel Machek
On Wed 2018-01-17 15:26:31, Eric Biggers wrote: > On Wed, Jan 17, 2018 at 09:56:29AM +0100, Pavel Machek wrote: > > Hi! > > > > > > Andrea Arcangeli (1): > > > > userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK > > > > fails > > > > > > > > fs/userfaultfd.c | 20 +++

Re: [PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2018-01-17 Thread Eric Biggers
On Wed, Jan 17, 2018 at 09:56:29AM +0100, Pavel Machek wrote: > Hi! > > > > Andrea Arcangeli (1): > > > userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK > > > fails > > > > > > fs/userfaultfd.c | 20 ++-- > > > 1 file changed, 18 insertions(+), 2 deletions(-

Re: [PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2018-01-17 Thread Pavel Machek
Hi! > > Andrea Arcangeli (1): > > userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK > > fails > > > > fs/userfaultfd.c | 20 ++-- > > 1 file changed, 18 insertions(+), 2 deletions(-) > > The original report footer was stripped, so: > > Please credit me with

Re: [PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Dmitry Vyukov
On Sat, Dec 23, 2017 at 1:25 AM, Andrea Arcangeli wrote: > Hello, > > Thanks for the CC, I'm temporarily very busy so if there's something > urgent, safer to CC. Hi, syzbot uses get_maintainer.pl and for fs/userfaultfd.c you are not there, so if you want to be CCed please add yourself to MAINTAI

[PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Andrea Arcangeli
Hello, Thanks for the CC, I'm temporarily very busy so if there's something urgent, safer to CC. This passed both testcases, the hard part was already done. I'm glad there was nothing wrong in the previous fix that had to be redone. Simply we forgot to undo the vma->vm_userfaultfd_ctx = NULL aft

Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Eric Biggers
[+Cc aarca...@redhat.com, linux...@kvack.org] On Fri, Dec 22, 2017 at 01:37:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1