On Thu, Jul 13, 2017 at 09:04:12PM +0000, Bart Van Assche wrote:
> On Thu, 2017-06-29 at 19:34 +0800, Eryu Guan wrote:
> > Hi all,
> >
> > I got a use-after-free report from kasan-enabled kernel, when running
> > fstests xfs/279 (generic/108 could trigger too). I appended the console
> > log at the end of email.
> >
> > git bisect pointed first bad commit to dc9edc44de6c ("block: Fix a
> > blk_exit_rl() regression"), and reverting that commit on top of
> > v4.12-rc7 kernel does resolve the use-after-free.
> >
> > I can reproduce it by simply inserting & removing scsi_debug module.
> >
> > modprobe scsi_debug
> > modprobe -r scsi_debug
> >
> > If you need more info please let me know.
> >
> > Thanks,
> > Eryu
<snip the console log>
>
> Hello Eryu,
>
> Thank you for your report. Can you repeat your test with a kernel that
> includes
> commit 8e6882545d8c ("scsi: Avoid that scsi_exit_rq() triggers a
> use-after-free")?
I tried 4.13-rc1 based kasan kernel, and I didn't see the use-after-free
again, thanks!
Eryu