Re: KASAN: use-after-free Read in do_madvise

2020-08-21 Thread Yang Shi
On Fri, Aug 21, 2020 at 1:03 PM Andrew Morton wrote: > > On Fri, 21 Aug 2020 10:15:45 -0700 Yang Shi wrote: > > > It looks the vma is gone. The below patch should be able to fix it: > > > > diff --git a/mm/madvise.c b/mm/madvise.c > > index dd1d43cf026d..d4aa5f776543 100644 > > --- a/mm/madvise.c

Re: KASAN: use-after-free Read in do_madvise

2020-08-21 Thread Andrew Morton
On Fri, 21 Aug 2020 10:15:45 -0700 Yang Shi wrote: > It looks the vma is gone. The below patch should be able to fix it: > > diff --git a/mm/madvise.c b/mm/madvise.c > index dd1d43cf026d..d4aa5f776543 100644 > --- a/mm/madvise.c > +++ b/mm/madvise.c > @@ -289,9 +289,9 @@ static long madvise_will

Re: KASAN: use-after-free Read in do_madvise

2020-08-21 Thread Yang Shi
On Fri, Aug 21, 2020 at 10:06 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:da2968ff Merge tag 'pci-v5.9-fixes-1' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1339995a90 > kernel config:

KASAN: use-after-free Read in do_madvise

2020-08-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:da2968ff Merge tag 'pci-v5.9-fixes-1' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1339995a90 kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11 das