Re: btrfs regression since 4.X kernel NULL pointer dereference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/31/15 8:06 PM, Chris Mason wrote:
> On Mon, Aug 31, 2015 at 07:32:09PM +0200, Stefan Priebe -
> Profihost AG wrote:
>>> Am 25.08.2015 um 15:51 schrieb Chris Mason <clm@xxxxxx>:
>>> 
>>>> On Tue, Aug 25, 2015 at 11:00:30AM +0200, Christoph Hellwig 
>>>> wrote: I think this is btrfs using a struct block_device
>>>> that doesn't have a valid queue pointer in it's gendisk for 
>>>> ->s_bdev.  And there are some fishy looking ->s_bdev 
>>>> assignments in the code which I suspect are related to it:
>>>> 
>>>> fs/btrfs/dev-replace.c: if (fs_info->sb->s_bdev == 
>>>> src_device->bdev) fs/btrfs/dev-replace.c: fs_info->sb->s_bdev
>>>> = tgt_device->bdev; fs/btrfs/volumes.c: if (device->bdev ==
>>>> root->fs_info->sb->s_bdev) fs/btrfs/volumes.c:
>>>> root->fs_info->sb->s_bdev = next_device->bdev;
>>>> fs/btrfs/volumes.c:     if (tgtdev->bdev ==
>>>> fs_info->sb->s_bdev) fs/btrfs/volumes.c: fs_info->sb->s_bdev
>>>> = next_device->bdev;
>>> 
>>> We've had trouble with this in the past, I'll take a look.
>> 
>> Any news?
> 
> Haven't been able to reproduce yet, I'll try again in the morning.

I'm unable to reproduce it as well and I'm hearing about people
hitting it in different forums.

Can you describe your storage configuration?  There's a gendisk
without a queue sneaking in somehow.  There are some spots in dm where
the mddev gets a new queue assigned to it but the old queue associated
with the gendisk is left behind so that's not it.  If you're able to
reproduce it reliably with this configuration, that's certainly
interesting.  I'm wondering if the case is that vgcfgbackup is
iterating over devices and causing something that might not have been
previously scanned to be scanned and added to the btrfs device list.
Are there any messages above the oops indicating when a device is
added?  Could you post your complete dmesg somewhere?

Thanks,

- -Jeff

- -- 
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)

iQIcBAEBAgAGBQJV8gJ2AAoJEB57S2MheeWyEP4QALvIXZGIqkXhUBZEYvLC+rnD
Q79chLpbt8x52xtFoav78i3nG24SMXV5NbhFlGNnr6xt/CQtKSzBuDyJ+nigkyy+
bTtHbwkMqNddrqKJ3r928nKwz1IOyU4J58l7hGyC0owSA3mDxyI7+yS16OXFwc1S
6lxtV4ljf6nqobA+rVyC3n3BU6CF1aL45V2FpM/m4OHL/Xqv97Xg2tGlysnk8RPD
dRvz5fs2T75B0eBsK4xWHKEgKKWdVYaKqlySRXUJQpnNJTlJltW5HzL8RnR47brt
LLaOCD4jcLlEtGhTi6wEN6BlEYbgDx/1yjQs5zxLG0vbTUi5ZcTeT82d5+Hh4WMD
HyLfE4pwFUZXTHvcIoQ51wPLS/tWMVJXnleQKBrDT+WcsKPr5yuwUZpwfrOBfjol
Qan13/mIcmvFsz2yVWnoZJWU5osnhe+frBsVFlIFLNXp50QVXk+WvruPDOsoY2eQ
J8L20LhY5e0dgJseXWkAAy68mJ0/rrkX0iAdiED/WEsBdjy7QuOomJqPyQQEPplm
d+tIkDR77Biajket2tNEXK1m14f7QvFUFojI0NwegcmZT3iJ7BBWD6wjxIvh3KqE
LqHIcTaECU9XSg9x9E3N416hCbclC9xeosxaJB1iN+EvpaD7CBA+V+onkNMN6Fu4
J0aVUYlZuLcqkEs/BuNL
=BRtR
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux