From: Liam Howlett <liam.howlett@oracle.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: 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 17:52:24 +0000 [thread overview]
Message-ID: <20220427175218.cazytgdlpc6lpn45@revolver> (raw)
In-Reply-To: <20220427102032.5a87283eb64d06c1a6d682fd@linux-foundation.org>
* 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
> >
> > ------------[ cut here ]------------
> > WARNING: CPU: 0 PID: 3593 at mm/mmap.c:1072 vma_merge+0x428/0x950 mm/mmap.c:1072
>
> I assume this is
>
> VM_WARN_ON(area && end > area->vm_end);
>
> But lines change around a lot. It would be great if the script which
> generates these reports could quote the code around the indicated file
> and line. Like:
>
> next = find_vma(mm, prev ? prev->vm_end : 0);
> area = next;
> if (area && area->vm_end == end) /* cases 6, 7, 8 */
> next = find_vma(mm, next->vm_end);
>
> /* verify some invariant that must be enforced by the caller */
> VM_WARN_ON(prev && addr <= prev->vm_start);
> --> VM_WARN_ON(area && end > area->vm_end);
> VM_WARN_ON(addr >= end);
>
> /*
> * Can it merge with the predecessor?
> */
> if (prev && prev->vm_end == addr &&
That is the correct line according to the git tree and HEAD commit
listed above.
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.
Thanks,
Liam
next prev parent reply other threads:[~2022-04-27 17:52 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 [this message]
2022-04-27 19:06 ` Liam Howlett
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=20220427175218.cazytgdlpc6lpn45@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