lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 12 Mar 2012 15:21:49 +0100
From:	Jacek Luczak <difrost.kernel@...il.com>
To:	dave@...os.cz, Jacek Luczak <difrost.kernel@...il.com>,
	Liu Bo <liubo2009@...fujitsu.com>,
	linux-btrfs <linux-btrfs@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>, josef@...hat.com,
	"Rafael J. Wysocki" <rjw@...k.pl>,
	Chris Mason <chris.mason@...cle.com>
Subject: Re: kernel BUG at fs/btrfs/delayed-inode.c:1466!

2012/3/10 Jacek Luczak <difrost.kernel@...il.com>:
> 2012/3/9 David Sterba <dave@...os.cz>:
>> On Fri, Mar 09, 2012 at 12:08:12PM +0100, Jacek Luczak wrote:
>>> For this one I've created also a report [1].
>>> >
>>> > so there is probably other problem in reservations and it just blew up during
>>> > the unlink call.
>>>
>>> Could be as this came up after a longer time of throwing above WARN_ON.
>>>
>>> I'm now cloning the Linus tree. Lets see if both will pop up on there.
>>
>> The 3.3-rc6 should help in one case, with
>>
>> http://thread.gmane.org/gmane.comp.file-systems.btrfs/15268
>>
>> but I was able to reproduce the WARN_ON even with this patch, didn't get
>> to debugging it again yet.
>>
>
>
> The story so far looks like this:
> 1) kernel 3.2.7:
> - on the BUG_ON triggers after a longer while of CI env (doing builds)
> running. This has been already reproduced twice.
> - WARN_ON spams heavily, even after BUG_ON pop up.
> - possible relation between WARN_ON and BUG_ON.

WARN_ON still popup in 3.3.0-rc6-00197-g9f8050c but did not triggered
BUG_ON after ~300 occurrence.

> 2) A *regression* in 3.3.0-rc6-00197-g9f8050c
> - completely unusable as reports ENOSPC
> - to reproduce, mount volume and issue:
> # CNT=1 ; while [ $CNT -lt 10000 ] ; do  rm -f /btrfs/dd ; ! touch
> /btrfs/dd && echo "$CNT" && break  ; CNT=$(( $CNT + 1 )) ; done
> On my host this shows:
> # CNT=1 ; while [ $CNT -lt 10000 ] ; do  rm -f /btrfs/dd ; ! touch
> /btrfs/dd && echo "$CNT" && break  ; CNT=$(( $CNT + 1 )) ; done
> touch: cannot touch `/btrfs/dd': No space left on device
> 423
> - remount to reset:
> # CNT=1 ; while [ $CNT -lt 10000 ] ; do  rm -f /btrfs/dd ; ! touch
> /btrfs/dd && echo "$CNT" && break  ; CNT=$(( $CNT + 1 )) ; done
> touch: cannot touch `/btrfs/dd': No space left on device
> 1
> # umount /btrfs/
> # mount -t btrfs /dev/vg00/btrfs /btrfs/ -o noatime,nodatacow,defaults
> # CNT=1 ; while [ $CNT -lt 10000 ] ; do  rm -f /btrfs/dd ; ! touch
> /vdd && echo "$CNT" && break  ; CNT=$(( $CNT + 1 )) ; done
> touch: cannot touch `/btrfs/dd': No space left on device
> 423
> - bisected down to 5500cdb (Btrfs: increase the global block reserve
> estimates). After reverting this one Linus master works for me again.

With above patch reverted after a longer run I've got ENOSPC again:
1) # df -hP /btrfs
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-btrfs  195G  179G   11G  95% /btrfs
2) # rm -f /btrfs/dd
rm: cannot remove `/btrfs/dd': No space left on device
3) strace
unlink("/btrfs/dd")                = -1 ENOSPC (No space left on device)
4) last message from kernel (except WARN_ONs):
btrfs: fail to dirty inode 116882385 error -28

I've remouted volume and after that I've been able to remove dd file
from volume. In dmesg there's bunch on new WARN_ONs:
------------[ cut here ]------------
WARNING: at fs/btrfs/extent-tree.c:4185
btrfs_free_block_groups+0x17d/0x2b8 [btrfs]()
Hardware name: ProLiant BL460c G6
Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi ac
parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
Pid: 9518, comm: umount Tainted: G        W    3.3.0-rc6-00197-g9f8050c-dirty #1
Call Trace:
 [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
 [<ffffffffa031a8a7>] ? btrfs_free_block_groups+0x17d/0x2b8 [btrfs]
 [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
 [<ffffffffa031a8a7>] ? btrfs_free_block_groups+0x17d/0x2b8 [btrfs]
 [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
 [<ffffffff811320c2>] ? dispose_list+0x27/0x31
 [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
 [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
 [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
 [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
 [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
 [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
 [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
---[ end trace fd6da849e53b77dd ]---
------------[ cut here ]------------
WARNING: at fs/btrfs/extent-tree.c:4186
btrfs_free_block_groups+0x198/0x2b8 [btrfs]()
Hardware name: ProLiant BL460c G6
Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi ac
parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
Pid: 9518, comm: umount Tainted: G        W    3.3.0-rc6-00197-g9f8050c-dirty #1
Call Trace:
 [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
 [<ffffffffa031a8c2>] ? btrfs_free_block_groups+0x198/0x2b8 [btrfs]
 [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
 [<ffffffffa031a8c2>] ? btrfs_free_block_groups+0x198/0x2b8 [btrfs]
 [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
 [<ffffffff811320c2>] ? dispose_list+0x27/0x31
 [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
 [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
 [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
 [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
 [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
 [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
 [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
---[ end trace fd6da849e53b77de ]---
------------[ cut here ]------------
WARNING: at fs/btrfs/extent-tree.c:4187
btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]()
Hardware name: ProLiant BL460c G6
Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi ac
parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
Pid: 9518, comm: umount Tainted: G        W    3.3.0-rc6-00197-g9f8050c-dirty #1
Call Trace:
 [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
 [<ffffffffa031a8dd>] ? btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]
 [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
 [<ffffffffa031a8dd>] ? btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]
 [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
 [<ffffffff811320c2>] ? dispose_list+0x27/0x31
 [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
 [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
 [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
 [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
 [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
 [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
 [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
---[ end trace fd6da849e53b77df ]---
------------[ cut here ]------------
WARNING: at fs/btrfs/extent-tree.c:7454
btrfs_free_block_groups+0x256/0x2b8 [btrfs]()
Hardware name: ProLiant BL460c G6
Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi ac
parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
Pid: 9518, comm: umount Tainted: G        W    3.3.0-rc6-00197-g9f8050c-dirty #1
Call Trace:
 [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
 [<ffffffffa031a980>] ? btrfs_free_block_groups+0x256/0x2b8 [btrfs]
 [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
 [<ffffffffa031a980>] ? btrfs_free_block_groups+0x256/0x2b8 [btrfs]
 [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
 [<ffffffff811320c2>] ? dispose_list+0x27/0x31
 [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
 [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
 [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
 [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
 [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
 [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
 [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
---[ end trace fd6da849e53b77e0 ]---
space_info 4 has 3043549184 free, is not full
space_info total=11953766400, used=8901763072, pinned=0, reserved=0,
may_use=121643008, readonly=8454144
device fsid b70500f5-3ec6-4a39-9b9a-adad0e8a0346 devid 1 transid 54268
/dev/vg00/btrfs
btrfs: setting nodatacow

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ