[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
I can reproduce this problem and I have pinpointed the problem. Working on creating a patch and a test build. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1587475 Title: Kernel panic on btrfs mount and ls Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Bug description: 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: [ 69
[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
** Changed in: linux (Ubuntu Xenial) Assignee: (unassigned) => Dragan S. (dragan-s) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1587475 Title: Kernel panic on btrfs mount and ls Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Bug description: 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
[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
4.4.0-040400-generic #201601101930 SMP Mon Jan 11 00:32:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Kernel 4.4 does not panic but shows the following message when `ls -al`: [ 255.901591] BTRFS error (device loop0): parent transid verify failed on 30425088 wanted 120 found 119 [ 255.902458] BTRFS error (device loop0): parent transid verify failed on 30425088 wanted 120 found 119 [ 255.902493] BTRFS error (device loop0): could not do orphan cleanup -5 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1587475 Title: Kernel panic on btrfs mount and ls Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Bug description: 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_em
[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
4.7.0-040700rc2-generic #201606051831 SMP Sun Jun 5 22:33:44 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Kernel is still affected but behaviour a bit different - kernel crashed immediately after mount ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed ** Changed in: linux (Ubuntu Xenial) Status: Incomplete => Confirmed ** Tags added: kernel-bug-exists-upstream -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1587475 Title: Kernel panic on btrfs mount and ls Status in linux package in Ubuntu: Confirmed Status in linux source package in Xenial: Confirmed Bug description: 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_f
[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7-rc1 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc1-yakkety/ ** Changed in: linux (Ubuntu) Importance: Undecided => High ** Tags removed: trusty ** Tags added: kernel-da-key xenial ** Also affects: linux (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in: linux (Ubuntu Xenial) Status: New => Incomplete ** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete ** Changed in: linux (Ubuntu Xenial) Importance: Undecided => High -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1587475 Title: Kernel panic on btrfs mount and ls Status in linux package in Ubuntu: Incomplete Status in linux source package in Xenial: Incomplete Bug description: 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] [] w
[Kernel-packages] [Bug 1587475] Re: Kernel panic on btrfs mount and ls
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