Subject: Re: KASAN: use-after-free Read in userfaultfd_release (2)

From: Stephen Rothwell <[email-masked]>
Date: Tue, 21 Jul 2020 14:32:33 +1000

Hi all,

On Mon, 20 Jul 2020 11:50:25 -0400 Qian Cai <[email-masked]> wrote:
>
> On Fri, Jul 17, 2020 at 11:05:41AM -0400, Qian Cai wrote:
> > On Mon, Jul 13, 2020 at 08:34:06AM -0700, syzbot wrote:  
> > > syzbot has bisected this bug to:
> > > 
> > > commit d08ac70b1e0dc71ac2315007bcc3efb283b2eae4
> > > Author: Daniel Colascione <[email-masked]>
> > > Date:   Wed Apr 1 21:39:03 2020 +0000
> > > 
> > >     Wire UFFD up to SELinux
> > > 
> > > bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=14a79d13100000
> > > start commit:   89032636 Add linux-next specific files for 20200708
> > > git tree:       linux-next
> > > final crash:    https://syzkaller.appspot.com/x/report.txt?x=16a79d13100000
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=12a79d13100000
> > > kernel config:  https://syzkaller.appspot.com/x/.config?x=64a250ebabc6c320
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=75867c44841cb6373570
> > > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=13c4c8db100000
> > > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12cbb68f100000
> > > 
> > > Reported-by: [email-masked]
> > > Fixes: d08ac70b1e0d ("Wire UFFD up to SELinux")
> > > 
> > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection  
> > 
> > This is rather easy to reproduce here,  
> 
> James, Stephen, can you drop this patch? Daniel's email was bounced, and Viro
> mentioned the patch could be quite bad,
> 
> https://lore.kernel.org/lkml/[email-masked]/

I have reverted that commit in linux-next today.

-- 
Cheers,
Stephen Rothwell