apport information
** Tags added: apport-collected
** Description changed:
Kernel panic happens after mount and ls specific btrfs image
Way to reproduce:
1. download and unpack btrfs image from tar(sparse file)(tar -Sxf img.tar)
2. mount btrfs (sudo mount -t btrfs -o rw,noatime,compress=no,commit=5
71bb49cf-26f1-484a-832c-e966f43adca9.img broken)
3. list files in mount point (ls -al broken)
the system down to kernel panic with log above
(looks like 3.19.x and 4.2.x not affected, only 4.4.x)
dmesg log:
May 31 13:02:21 fs-new kernel: [ 694.744630] BTRFS error (device loop0):
parent transid verify failed on 30425088 wanted 120 found 119
May 31 13:02:21 fs-new kernel: [ 694.747077] BTRFS error (device loop0):
parent transid verify failed on 30425088 wanted 120 found 119
May 31 13:02:21 fs-new kernel: [ 694.747128] [ cut here
]
May 31 13:02:21 fs-new kernel: [ 694.747135] WARNING: CPU: 0 PID: 13795 at
/build/linux-lts-xenial-7RlTta/linux-lts-xenial-4.4.0/lib/idr.c:1051
ida_remove+0xfa/0x130()
May 31 13:02:21 fs-new kernel: [ 694.747136] ida_remove called for id=47
which is not allocated.
May 31 13:02:21 fs-new kernel: [ 694.747137] Modules linked in: ufs qnx4
hfsplus hfs minix ntfs msdos jfs xfs libcrc32c nfsv3 vboxsf xt_CHECKSUM
iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack zram
lz4_compress xt_tcpudp bridge stp llc iptable_filter ip_tables x_tables autofs4
ppdev vboxvideo ttm crct10dif_pclmul crc32_pclmul drm_kms_helper drm
aesni_intel aes_x86_64 lrw input_leds gf128mul nfsd glue_helper ablk_helper
cryptd auth_rpcgss serio_raw nfs_acl nfs fb_sys_fops syscopyarea lockd
sysfillrect grace 8250_fintek parport_pc sysimgblt vboxguest i2c_piix4 sunrpc
video mac_hid fscache lp parport zfs(POE) zunicode(POE) zcommon(POE)
znvpair(POE) spl(OE) zavl(POE) btrfs xor raid6_pq psmouse e1000 fjes pata_acpi
May 31 13:02:21 fs-new kernel: [ 694.747182] CPU: 0 PID: 13795 Comm: ls
Tainted: P OE 4.4.0-22-generic #40~14.04.1-Ubuntu
May 31 13:02:21 fs-new kernel: [ 694.747183] Hardware name: innotek GmbH
VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
May 31 13:02:21 fs-new kernel: [ 694.747185]
8800024e7a88 813cde6c 8800024e7ad0
May 31 13:02:21 fs-new kernel: [ 694.747187] 81af5298
8800024e7ac0 8107d856
May 31 13:02:21 fs-new kernel: [ 694.747189] 81fce200
88003c827a00 88003616e068 0001
May 31 13:02:21 fs-new kernel: [ 694.747191] Call Trace:
May 31 13:02:21 fs-new kernel: [ 694.747195] []
dump_stack+0x63/0x87
May 31 13:02:21 fs-new kernel: [ 694.747199] []
warn_slowpath_common+0x86/0xc0
May 31 13:02:21 fs-new kernel: [ 694.747201] []
warn_slowpath_fmt+0x4c/0x50
May 31 13:02:21 fs-new kernel: [ 694.747214] [] ?
free_percpu+0xba/0x180
May 31 13:02:21 fs-new kernel: [ 694.747217] []
ida_remove+0xfa/0x130
May 31 13:02:21 fs-new kernel: [ 694.747220] []
free_anon_bdev+0x2c/0x50
May 31 13:02:21 fs-new kernel: [ 694.747239] []
free_fs_root+0xbe/0xe0 [btrfs]
May 31 13:02:21 fs-new kernel: [ 694.747251] []
btrfs_get_fs_root+0x216/0x250 [btrfs]
May 31 13:02:21 fs-new kernel: [ 694.747264] [] ?
memcmp_extent_buffer+0xbd/0x120 [btrfs]
May 31 13:02:21 fs-new kernel: [ 694.747277] []
btrfs_lookup_dentry+0x28c/0x4c0 [btrfs]
May 31 13:02:21 fs-new kernel: [ 694.747288] []
btrfs_lookup+0x12/0x40 [btrfs]
May 31 13:02:21 fs-new kernel: [ 694.747291] []
lookup_real+0x1d/0x50
May 31 13:02:21 fs-new kernel: [ 694.747293] []
__lookup_hash+0x33/0x40
May 31 13:02:21 fs-new kernel: [ 694.747295] []
walk_component+0x177/0x280
May 31 13:02:21 fs-new kernel: [ 694.747297] [] ?
posix_acl_xattr_get+0x49/0xb0
May 31 13:02:21 fs-new kernel: [ 694.747299] []
path_lookupat+0x60/0x110
May 31 13:02:21 fs-new kernel: [ 694.747301] []
filename_lookup+0x9c/0x150
May 31 13:02:21 fs-new kernel: [ 694.747304] [] ?
kmem_cache_alloc+0x19f/0x200
May 31 13:02:21 fs-new kernel: [ 694.747306] [] ?
getname_flags+0x4f/0x1f0
May 31 13:02:21 fs-new kernel: [ 694.747308] []
user_path_at_empty+0x36/0x40
May 31 13:02:21 fs-new kernel: [ 694.747310] []
vfs_fstatat+0x53/0xa0
May 31 13:02:21 fs-new kernel: [ 694.747312] []
SYSC_newlstat+0x22/0x40
May 31 13:02:21 fs-new kernel: [ 694.747315] [] ?
mntput+0x24/0x40
May 31 13:02:21 fs-new kernel: [ 694.747317] [] ?
path_put+0x1e/0x30
May 31 13:02:21 fs-new kernel: [ 694.747318] [] ?
path_getxattr+0x62/0x90
May 31 13:02:21 fs-new kernel: [ 694.747321] []
SyS_newlstat+0xe/0x10
May 31 13:02:21 fs-new kernel: [ 694.747324] []
entry_SYSCALL_64_fastpath+0x16/0x75
May 31 13:02:21 fs-new kernel: [ 694.747326] ---[ end trace 5c7309d2219a269a
]---
May 31 13:02:21 fs-new kernel: [ 694.761474] Modules linked