Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302162

Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0

From Dave Chinner <david@fromorbit.com>
Newsgroups linux.kernel
Subject Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0
Date 2016-01-05 22:00 +0100
Message-ID <qNGRZ-860-29@gated-at.bofh.it> (permalink)
References (2 earlier) <qFHLb-2w9-15@gated-at.bofh.it> <qFIQW-3c1-11@gated-at.bofh.it> <qFTW2-225-33@gated-at.bofh.it> <qMXLc-1Rv-11@gated-at.bofh.it> <qNCOn-5m1-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 05, 2016 at 05:30:55PM +0100, Andrea Gelmini wrote:
> On Mon, Jan 04, 2016 at 07:47:58AM +1100, Dave Chinner wrote:
> > > I'm recompiling, to try it again.
> > > Maybe, in the meanwhile, you can do something with my files. You can find 'em here:
> > > http://mail.gelma.net/xfs_kasan
> >
> > Any update on this problem, Andrea?
> 
> Here we are!
> Reproduced right now.
> 
> So, just to avoid confusion:
> a) it's a vanilla kernel 4.4.0-rc8
> b) plus some btrfs patches
> c) plus some dri/intel/i915 patches
> d) at the same URL above you can find git_files.txt.gz, where you have each commit I
>    applied above vanilla kernel (anyway, nothing related to vfs/xfs of course)
> e) at the same URL you find the kernel binaries I used
> f) to catch it, I had to copy a few gigs of files on my /home partition (xfs over Luks)
> 
> Anyway, here what you asked me for:
> 
> (gdb) l *(xfs_iflush_cluster+0xb73/0xc10)
> 0xffffffff8184c550 is in xfs_iflush_cluster (fs/xfs/xfs_inode.c:3182).
> 3177
> 3178    STATIC int
> 3179    xfs_iflush_cluster(
> 3180            xfs_inode_t     *ip,
> 3181            xfs_buf_t       *bp)
> 3182    {
> 3183            xfs_mount_t             *mp = ip->i_mount;
> 3184            struct xfs_perag        *pag;
> 3185            unsigned long           first_index, mask;
> 3186            unsigned long           inodes_per_cluster;
> (gdb)

Ok, so that tells us nothing about where the problem lies - the
function call is out of the preamble code that kasan instrumentation
adds to the function. I'll have a further think about this...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0 Dave Chinner <david@fromorbit.com> - 2016-01-03 21:50 +0100
  Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0 Andrea Gelmini <andrea.gelmini@gelma.net> - 2016-01-05 17:40 +0100
    Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0 Dave Chinner <david@fromorbit.com> - 2016-01-05 22:00 +0100

csiph-web