[beta1] [btrfs] kernel BUG at /build/buildd/linux-3.13.0/fs/btrfs/file.c:837!

Bug #1295450 reported by Abdul
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Colin Ian King

Bug Description

Description
=========
btrfs/035 - Regression test for overwriting clone testcase in the xfsqa test suite fails with kernel BUG at /build/buildd/linux-3.13.0/fs/btrfs/file.c:837!

root@ubuntu:~/suites/XFSQA/xfstests-f1dcf49# ./check btrfs/035
FSTYP -- btrfs
PLATFORM -- Linux/ppc64le ubuntu 3.13.0-14-generic
MKFS_OPTIONS -- /dev/loop1
MOUNT_OPTIONS -- /dev/loop1 /mnt/scratch

btrfs/035

Detailed trace messages
===================
Mar 7 01:05:37 ubuntu user: run xfstest btrfs/035
Mar 7 01:05:38 ubuntu kernel: [ 874.286014] btrfs: device fsid 59b3e135-33c2-4c5c-b19e-4a9110ba06d5 devid 1 transid 1 /dev/loop1
Mar 7 01:05:38 ubuntu kernel: [ 874.295434] btrfs: device fsid 59b3e135-33c2-4c5c-b19e-4a9110ba06d5 devid 1 transid 4 /dev/loop1
Mar 7 01:05:38 ubuntu kernel: [ 874.481031] btrfs: device fsid 59b3e135-33c2-4c5c-b19e-4a9110ba06d5 devid 1 transid 4 /dev/loop1
Mar 7 01:05:38 ubuntu kernel: [ 874.491104] btrfs: device fsid 59b3e135-33c2-4c5c-b19e-4a9110ba06d5 devid 1 transid 4 /dev/loop1
Mar 7 01:05:38 ubuntu kernel: [ 874.509344] btrfs: device fsid 59b3e135-33c2-4c5c-b19e-4a9110ba06d5 devid 1 transid 4 /dev/loop1
Mar 7 01:05:38 ubuntu kernel: [ 874.510757] btrfs: disk space caching is enabled
Mar 7 01:05:38 ubuntu kernel: [ 874.510760] btrfs flagging fs with big metadata feature
Mar 7 01:05:38 ubuntu kernel: [ 874.512208] btrfs: creating UUID tree
Mar 7 01:05:38 ubuntu kernel: [ 874.649220] ------------[ cut here ]------------
Mar 7 01:05:38 ubuntu kernel: [ 874.649225] kernel BUG at /build/buildd/linux-3.13.0/fs/btrfs/file.c:837!
Mar 7 01:05:38 ubuntu kernel: [ 874.649377] Oops: Exception in kernel mode, sig: 5 [#1]
Mar 7 01:05:38 ubuntu kernel: [ 874.649424] SMP NR_CPUS=2048 NUMA pSeries
Mar 7 01:05:38 ubuntu kernel: [ 874.649473] Modules linked in: pseries_rng rtc_generic btrfs xor raid6_pq libcrc32c
Mar 7 01:05:38 ubuntu kernel: [ 874.649600] CPU: 0 PID: 19133 Comm: cloner Tainted: G W 3.13.0-14-generic #34-Ubuntu
Mar 7 01:05:38 ubuntu kernel: [ 874.649745] task: c00000007b8a8000 ti: c00000007b790000 task.ti: c00000007b790000
Mar 7 01:05:38 ubuntu kernel: [ 874.649813] NIP: d0000000005eb9fc LR: d0000000005eb634 CTR: 0000000000000000
Mar 7 01:05:38 ubuntu kernel: [ 874.649882] REGS: c00000007b7933c0 TRAP: 0700 Tainted: G W (3.13.0-14-generic)
Mar 7 01:05:38 ubuntu kernel: [ 874.649950] MSR: 8000000000029033 <SF,EE,ME,IR,DR,RI,LE> CR: 24044024 XER: 20000000
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] CFAR: d0000000005ebd9c SOFTE: 1
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR00: 0000000000000001 c00000007b793640 d000000000692028 0000000000000014
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR04: 0000000000003e15 0000000000004000 c00000007b793608 c0000000799c7000
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR08: 0000000000001000 0000000000000001 c0000000799c7000 c00000007b7936d1
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR12: 0000000024048022 c00000000fe80000 c000000050f91dc0 c000000050f91dc0
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR16: 1000000000000000 c000000000000000 000000000000000a c000000079576000
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR20: 0000000000000001 0000000000000101 0000000000000000 0000000000000000
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR24: 000000000000006c 0000000000000101 0000000000000000 0000000000000014
Mar 7 01:05:38 ubuntu kernel: [ 874.650118] GPR28: 0000000000000000 0000000000003e0d 0000000000000000 c00000007d890090
Mar 7 01:05:38 ubuntu kernel: [ 874.651152] NIP [d0000000005eb9fc] .__btrfs_drop_extents+0x6dc/0xa80 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651237] LR [d0000000005eb634] .__btrfs_drop_extents+0x314/0xa80 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651347] Call Trace:
Mar 7 01:05:38 ubuntu kernel: [ 874.651389] [c00000007b793640] [d0000000005eb634] .__btrfs_drop_extents+0x314/0xa80 [btrfs] (unreliable)
Mar 7 01:05:38 ubuntu kernel: [ 874.651498] [c00000007b7937c0] [d0000000005ec95c] .btrfs_drop_extents+0x7c/0xd0 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651599] [c00000007b793870] [d00000000065a908] .btrfs_clone+0x6fc/0x998 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651697] [c00000007b7939f0] [d00000000060d658] .btrfs_ioctl_clone+0x428/0x450 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651859] [c00000007b793ae0] [d000000000611428] .btrfs_ioctl+0x3a8/0x2920 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.651946] [c00000007b793c90] [c00000000024c884] .do_vfs_ioctl+0x4d4/0x790
Mar 7 01:05:38 ubuntu kernel: [ 874.652016] [c00000007b793d80] [c00000000024cc14] .SyS_ioctl+0xd4/0xf0
Mar 7 01:05:38 ubuntu kernel: [ 874.652016] [c00000007b793d80] [c00000000024cc14] .SyS_ioctl+0xd4/0xf0
Mar 7 01:05:38 ubuntu kernel: [ 874.652088] [c00000007b793e30] [c000000000009e58] syscall_exit+0x0/0x98
Mar 7 01:05:38 ubuntu kernel: [ 874.652155] Instruction dump:
Mar 7 01:05:38 ubuntu kernel: [ 874.652192] 7cd6d850 38e00000 4800360d 60000000 7dc37378 4bfe3a01 60000000 e96100e8
Mar 7 01:05:38 ubuntu kernel: [ 874.652366] 41920010 e80100c8 2fa00000 409e02dc <0b140000> 39010091 3921009a fb280000
Mar 7 01:05:38 ubuntu kernel: [ 874.652495] ---[ end trace bd0cd2e514b90182 ]---
Mar 7 01:05:38 ubuntu kernel: [ 874.656578]
Mar 7 01:05:38 ubuntu kernel: [ 874.656710] ------------[ cut here ]------------
Mar 7 01:05:38 ubuntu kernel: [ 874.656759] WARNING: at /build/buildd/linux-3.13.0/kernel/smp.c:237
Mar 7 01:05:38 ubuntu kernel: [ 874.656875] Modules linked in: pseries_rng rtc_generic btrfs xor raid6_pq libcrc32c
Mar 7 01:05:38 ubuntu kernel: [ 874.656995] CPU: 0 PID: 19133 Comm: cloner Tainted: G D W 3.13.0-14-generic #34-Ubuntu
Mar 7 01:05:38 ubuntu kernel: [ 874.657075] task: c00000007b8a8000 ti: c00000007b790000 task.ti: c00000007b790000
Mar 7 01:05:38 ubuntu kernel: [ 874.657143] NIP: c00000000011ff00 LR: c00000000018ffc4 CTR: c000000000193850
Mar 7 01:05:38 ubuntu kernel: [ 874.657212] REGS: c00000007b792ba0 TRAP: 0700 Tainted: G D W (3.13.0-14-generic)
Mar 7 01:05:38 ubuntu kernel: [ 874.657279] MSR: 8000000000021033 <SF,ME,IR,DR,RI,LE> CR: 42044022 XER: 00000000
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] CFAR: c00000000011fdf4 SOFTE: 0
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR00: c00000000018ffc4 c00000007b792e20 c000000001118a80 0000000000000000
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR04: c000000001078278 c00000007b792f50 0000000000000001 c000000000fc8a80
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR08: c000000001175a80 0000000000000000 0000000000000001 00000000000000a3
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR12: 0000000044044028 c00000000fe80000 c000000050f91dc0 c000000050f91dc0
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR16: 1000000000000000 c000000000000000 000000000000000a c000000079576000
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR20: 0000000000000001 0000000000000101 c00000007b8a9104 0000000000000000
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR24: c00000007b793090 0000000000000101 0000000000000000 c000000001007a00
Mar 7 01:05:38 ubuntu kernel: [ 874.657489] GPR28: c00000007b792f50 c000000001078278 0000000000000001 0000000000000000
Mar 7 01:05:38 ubuntu kernel: [ 874.658488] NIP [c00000000011ff00] .smp_call_function_single+0x190/0x210
Mar 7 01:05:38 ubuntu kernel: [ 874.658549] LR [c00000000018ffc4] .task_function_call+0x54/0x70
Mar 7 01:05:38 ubuntu kernel: [ 874.658605] Call Trace:
Mar 7 01:05:38 ubuntu kernel: [ 874.658631] [c00000007b792e20] [0000000000000001] 0x1 (unreliable)
Mar 7 01:05:38 ubuntu kernel: [ 874.658709] [c00000007b792ee0] [c00000000018ffc4] .task_function_call+0x54/0x70
Mar 7 01:05:38 ubuntu kernel: [ 874.658792] [c00000007b792f80] [c0000000001383c4] .cgroup_exit+0x114/0x180
Mar 7 01:05:38 ubuntu kernel: [ 874.658936] [c00000007b793020] [c000000000097fdc] .do_exit+0x36c/0xb40
Mar 7 01:05:38 ubuntu kernel: [ 874.659008] [c00000007b793110] [c000000000021c10] .die+0x2f0/0x450
Mar 7 01:05:38 ubuntu kernel: [ 874.659077] [c00000007b7931b0] [c000000000021f84] ._exception+0x1a4/0x1d0
Mar 7 01:05:38 ubuntu kernel: [ 874.659147] [c00000007b793350] [c0000000000061c4] program_check_common+0x144/0x180
Mar 7 01:05:38 ubuntu kernel: [ 874.659259] --- Exception: 700 at .__btrfs_drop_extents+0x6dc/0xa80 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659259] LR = .__btrfs_drop_extents+0x314/0xa80 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659388] [c00000007b7937c0] [d0000000005ec95c] .btrfs_drop_extents+0x7c/0xd0 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659539] [c00000007b793870] [d00000000065a908] .btrfs_clone+0x6fc/0x998 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659637] [c00000007b7939f0] [d00000000060d658] .btrfs_ioctl_clone+0x428/0x450 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659735] [c00000007b793ae0] [d000000000611428] .btrfs_ioctl+0x3a8/0x2920 [btrfs]
Mar 7 01:05:38 ubuntu kernel: [ 874.659816] [c00000007b793c90] [c00000000024c884] .do_vfs_ioctl+0x4d4/0x790
Mar 7 01:05:38 ubuntu kernel: [ 874.659888] [c00000007b793d80] [c00000000024cc14] .SyS_ioctl+0xd4/0xf0
Mar 7 01:05:38 ubuntu kernel: [ 874.660011] [c00000007b793e30] [c000000000009e58] syscall_exit+0x0/0x98
Mar 7 01:05:38 ubuntu kernel: [ 874.660079] Instruction dump:
Mar 7 01:05:38 ubuntu kernel: [ 874.660114] 4bffff70 60000000 60000000 60420000 3ce2000a 394752d0 814a0000 2f8a0000
Mar 7 01:05:38 ubuntu kernel: [ 874.660233] 409eff08 3ce2ffeb 8947a653 694a0001 <0b0a0000> 2faa0000 41fefef0 39400001
Mar 7 01:05:38 ubuntu kernel: [ 874.660351] ---[ end trace bd0cd2e514b90183 ]---
Mar 7 01:09:17 ubuntu kernel: [ 1092.760484] type=1006 audit(1394176157.030:34): pid=19137 uid=0 old auid=4294967295 new auid=1000 old ses=4294967295 new ses=2 res=1

Steps to reproduce
===============
> Installed Ubuntu beta1 build ISO on a Power 8 machine as a KVM guest
> Download and compile xfstests-f1dcf49.tar.gz and xfsprogs-05aa762.tar.gz from http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git;a=summary
> run ./check btrfs/035

uname -a
========
Linux ubuntu 3.13.0-14-generic #34-Ubuntu SMP Thu Feb 27 22:35:16 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
---
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access /dev/snd/: No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.13.3-0ubuntu1
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=ae220e24-0dd1-469a-9676-4ea9c4397dbb
InstallationDate: Installed on 2014-03-17 (5 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Alpha ppc64el (20140313)
IwConfig: Error: [Errno 2] No such file or directory
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 LANGUAGE=en_IN:en
 TERM=vt100
 PATH=(custom, no user)
 LANG=en_IN
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinux-3.13.0-19-generic root=UUID=95800486-b5ed-497b-8b1e-33b28c6c6601 ro splash quiet vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-19.39-generic 3.13.6
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-19-generic N/A
 linux-backports-modules-3.13.0-19-generic N/A
 linux-firmware 1.126
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty
Uname: Linux 3.13.0-19-generic ppc64le
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1295450

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Abdul (abdhalee) wrote : AudioDevicesInUse.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Abdul (abdhalee) wrote : BootDmesg.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : Lspci.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : ProcModules.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : UdevDb.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : UdevLog.txt

apport information

Revision history for this message
Abdul (abdhalee) wrote : WifiSyslog.txt

apport information

Revision history for this message
Colin Ian King (colin-king) wrote :

I believe the fix to this is upstream commit 00fdf13a2e9f313a044288aa59d3b8ec29ff904a

Author: Liu Bo <email address hidden>
Date: Mon Mar 10 18:56:07 2014 +0800

    Btrfs: fix a crash of clone with inline extents's split

Changed in linux (Ubuntu):
assignee: nobody → Colin Ian King (colin-king)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.