Bug 16131

Summary: kernel BUG at fs/btrfs/extent-tree.c:4363 (btrfs_free_tree_block)
Product: File System Reporter: Chow Loong Jin (hyperair)
Component: btrfsAssignee: fs_btrfs (fs_btrfs)
Status: CLOSED CODE_FIX    
Severity: high CC: chris.mason, hyperair, maciej.rutecki, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.35-rc1 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 16055    
Attachments: Stack trace for BUG

Description Chow Loong Jin 2010-06-05 18:53:49 UTC
When running "find /", where / and /home are both btrfs filesystems, it segfaults, and the BUG occurs. A git bisect has shown that the bug is introduced in commit f0486c68e4bd9a06a5904d3eeb3a0d73a83befb8, which is pretty much the commit that introduced this function.

The end-result is that everything that attempts to perform any I/O that touches the disk just hangs. Attached is the relevant snippet from my kern.log containing the stack trace.
Comment 1 Chow Loong Jin 2010-06-05 19:09:58 UTC
Created attachment 26663 [details]
Stack trace for BUG
Comment 2 Chris Mason 2010-06-08 02:06:41 UTC
Yan Zheng has this one fixed.  I'll push it out.

https://patchwork.kernel.org/patch/103235/
Comment 3 Chow Loong Jin 2010-06-08 17:31:27 UTC
I've tested the patch and confirm it fixes the issue.
Comment 4 Rafael J. Wysocki 2010-06-08 21:37:19 UTC
Handled-By : Yan Zheng <zheng.yan@oracle.com>
Patch : https://patchwork.kernel.org/patch/103235/
Comment 5 Rafael J. Wysocki 2010-06-27 22:30:04 UTC
Fixed by commit 3bf84a5a834d13e7c5c3e8e5b5c6b26012118dd8 .