linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Liam Howlett <liam.howlett@oracle.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	syzbot <syzbot+7728e4ab5371cebc9c00@syzkaller.appspotmail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"syzkaller-bugs@googlegroups.com"
	<syzkaller-bugs@googlegroups.com>, Peter Xu <peterx@redhat.com>,
	Qian Cai <quic_qiancai@quicinc.com>
Subject: Re: [syzbot] WARNING in vma_merge
Date: Wed, 27 Apr 2022 19:06:30 +0000	[thread overview]
Message-ID: <20220427190622.wgoxjjbmphdo3xxw@revolver> (raw)
In-Reply-To: <20220427175218.cazytgdlpc6lpn45@revolver>

* Liam R. Howlett <Liam.Howlett@Oracle.com> [220427 13:52]:
> * Andrew Morton <akpm@linux-foundation.org> [220427 13:20]:
> > On Wed, 27 Apr 2022 06:15:20 -0700 syzbot <syzbot+7728e4ab5371cebc9c00@syzkaller.appspotmail.com> wrote:
> > 
> > > syzbot has found a reproducer for the following issue on:
> > 
> > Thanks.
> > 
> > userfaultfd_release() appears to have offended vma_merge().
> 
> Potentially apply_mlockall_flags() and not userfaultfd_release(). There
> is a potential that the vma iterator is stale if a split/merge succeeds,
> although KASAN should pick this up and KASAN is active according to the
> config below. I've sent a patch for the mlockall issue after Qian Cai's
> reported it to linux-mm.
> 
> > 
> > I'm not seeing any changes in that area from Peter, but Liam's
> > mapletree work changed things around a bit.  Gents, could you please
> > take a look?
> > 
> > 
> > > HEAD commit:    f02ac5c95dfd Add linux-next specific files for 20220427
> > > git tree:       linux-next
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=105a33a2f00000
> > > kernel config:  https://syzkaller.appspot.com/x/.config?x=e9256c70f586da8a
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=7728e4ab5371cebc9c00
> > > compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
> > > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=15f76f82f00000
> > > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12b42c3cf00000
> > > 
> > > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > > Reported-by: syzbot+7728e4ab5371cebc9c00@syzkaller.appspotmail.com
> > > 

...

> 
> I cannot get this issue to trigger with the given tree and git repo with
> my config.  I will try again with the kernel config above.


I was able to reproduce the issue using the config from syzkaller in my
VM and can confirm it was the apply_mlockall_flags() bug also reported
by Qian Cai [1].  The patch I sent earlier [2] fixes this issue as well.


1. https://lore.kernel.org/linux-mm/20220427161033.GA1935@qian/
2. https://lore.kernel.org/linux-mm/20220427165139.5s3qcj2u5vqrvwlc@revolver/

Thanks,
Liam

  reply	other threads:[~2022-04-27 19:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27 12:43 syzbot
2022-04-27 13:15 ` syzbot
2022-04-27 17:20   ` Andrew Morton
2022-04-27 17:52     ` Liam Howlett
2022-04-27 19:06       ` Liam Howlett [this message]
2022-04-28  5:13         ` Dmitry Vyukov
2022-04-28  4:06 ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220427190622.wgoxjjbmphdo3xxw@revolver \
    --to=liam.howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterx@redhat.com \
    --cc=quic_qiancai@quicinc.com \
    --cc=syzbot+7728e4ab5371cebc9c00@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox