aa9ddcd4b5557102fa25695c11904f249b4dec49 in ubuntu_btrfs_kernel_fixes failed on 4.4 i386

Bug #1821913 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Confirmed
Undecided
Unassigned

Bug Description

This test has failed on T-4.4 i386. However I cannot reproduce this manually on 4.4.0-143 and 4.4.0-144

But it can be 100% reproduced with the whole test suite.

Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49

fix aa9ddcd4b5557102fa25695c11904f249b4dec49

Btrfs: do not use missing devices when showing devname

If you do the following

mkfs.btrfs /dev/sdb /dev/sdc
rmmod btrfs
dd if=/dev/zero of=/dev/sdb bs=1M count=1
mount -o degraded /dev/sdc /mnt/btrfs-test

the box will panic trying to deref the name for the missing dev since it is
the lower numbered devid. So fix show_devname to not use missing devices.

Found kernel issue:

[ 8658.778867] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49
[ 8658.971180] BTRFS: device fsid dce6d13f-4906-4e33-a158-c30baef17d2e devid 1 transid 3 /dev/loop0
[ 8658.974670] BTRFS: device fsid dce6d13f-4906-4e33-a158-c30baef17d2e devid 2 transid 3 /dev/loop1
[ 8659.128467] =============================================================================
[ 8659.128488] BUG btrfs_extent_map (Not tainted): Objects remaining in btrfs_extent_map on kmem_cache_close()
[ 8659.128508] -----------------------------------------------------------------------------
[ 8659.128508]
[ 8659.128527] Disabling lock debugging due to kernel taint
[ 8659.128530] INFO: Slab 0xf73f44f8 objects=34 used=1 fp=0xec953618 flags=0x2800080
[ 8659.128547] CPU: 7 PID: 28009 Comm: rmmod Tainted: G B 4.4.0-144-generic #170~14.04.1-Ubuntu
[ 8659.128549] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011
[ 8659.128551] 00000000 00000000 f4c55df8 c1391c03 f73f44f8 f4c55e18 f4c55e8c c11b53e2
[ 8659.128557] c19be8c0 f73f44f8 00000022 00000001 ec953618 02800080 656a624f 20737463
[ 8659.128562] 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 6e6f2070
[ 8659.128567] Call Trace:
[ 8659.128574] [] dump_stack+0x57/0x74
[ 8659.128580] [] slab_err+0x82/0xa0
[ 8659.128584] [] ? __kmalloc+0x1ed/0x220
[ 8659.128587] [] ? __free_slab+0x96/0x120
[ 8659.128590] [] ? arch_local_irq_disable+0x10/0x10
[ 8659.128593] [] ? __kmem_cache_shutdown+0xdb/0x220
[ 8659.128595] [] ? __kmem_cache_shutdown+0xdb/0x220
[ 8659.128598] [] __kmem_cache_shutdown+0x100/0x220
[ 8659.128601] [] ? kobj_kset_leave+0x3f/0x50
[ 8659.128604] [] ? sysfs_slab_remove+0x3c/0x40
[ 8659.128609] [] kmem_cache_destroy+0x14a/0x1a0
[ 8659.128613] [] ? _rcu_barrier+0x113/0x130
[ 8659.128643] [] extent_map_exit+0x16/0x20 [btrfs]
[ 8659.128665] [] exit_btrfs_fs+0x26/0xbc5 [btrfs]
[ 8659.128670] [] SyS_delete_module+0x171/0x1f0
[ 8659.128673] [] ? ____fput+0xd/0x10
[ 8659.128678] [] ? task_work_run+0x91/0xb0
[ 8659.128682] [] ? exit_to_usermode_loop+0x88/0x9c
[ 8659.128686] [] do_fast_syscall_32+0xa0/0x140
[ 8659.128691] [] sysenter_past_esp+0x3d/0x61
[ 8659.128696] INFO: Object 0xec953b40 @offset=2880
[ 8659.128708] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects
[ 8659.128724] CPU: 7 PID: 28009 Comm: rmmod Tainted: G B 4.4.0-144-generic #170~14.04.1-Ubuntu
[ 8659.128726] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011
[ 8659.128728] 00000000 00000000 f4c55ed8 c1391c03 f4d14480 f4c55ef8 f4c55f0c c118814b
[ 8659.128733] c19bceb8 ee4f37a0 c10ce793 00000001 f4c55ef0 f4c55ef0 f4c55ef8 f4c55ef8
[ 8659.128738] f8c40880 fffffff5 f4c54000 f4c55f14 f8bbcc06 f4c55f1c f8c28461 f4c55f78
[ 8659.128743] Call Trace:
[ 8659.128747] [] dump_stack+0x57/0x74
[ 8659.128751] [] kmem_cache_destroy+0x19b/0x1a0
[ 8659.128754] [] ? _rcu_barrier+0x113/0x130
[ 8659.128777] [] extent_map_exit+0x16/0x20 [btrfs]
[ 8659.128798] [] exit_btrfs_fs+0x26/0xbc5 [btrfs]
[ 8659.128801] [] SyS_delete_module+0x171/0x1f0
[ 8659.128804] [] ? ____fput+0xd/0x10
[ 8659.128807] [] ? task_work_run+0x91/0xb0
[ 8659.128810] [] ? exit_to_usermode_loop+0x88/0x9c
[ 8659.128813] [] do_fast_syscall_32+0xa0/0x140
[ 8659.128817] [] sysenter_past_esp+0x3d/0x61
[ 8659.280591] Btrfs loaded
[ 8659.347912] BTRFS: device fsid dce6d13f-4906-4e33-a158-c30baef17d2e devid 2 transid 4 /dev/loop1
[ 8659.372352] BTRFS info (device loop1): allowing degraded mounts
[ 8659.372359] BTRFS info (device loop1): disk space caching is enabled
[ 8659.374761] BTRFS warning (device loop1): devid 1 uuid 61157fd6-f333-4bf7-8938-999393075c2f is missing
[ 8659.374799] BTRFS: failed to read chunk root on loop1
[ 8659.391940] BTRFS: open_ctree failed
[ 8659.475622] Test aa9ddcd4b5557102fa25695c11904f249b4dec49 returned 0

FAIL: aa9ddcd4b5557102fa25695c11904f249b4dec49 (ret=1)
---
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Mar 28 03:13 seq
 crw-rw---- 1 root audio 116, 33 Mar 28 03:13 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.29
Architecture: i386
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDmesg:
 [13887.882454] BTRFS: device fsid 8aaaccc2-d5c1-445f-a360-ba7abaddd3a9 devid 1 transid 4 /dev/loop0
 [13887.930799] BTRFS info (device loop0): setting 8 feature flag
 [13887.930811] BTRFS info (device loop0): enabling inode map caching
 [13887.930816] BTRFS info (device loop0): disk space caching is enabled
 [13887.934155] BTRFS: creating UUID tree
DistroRelease: Ubuntu 14.04
IwConfig: Error: [Errno 2] No such file or directory
MachineType: Dell Inc. PowerEdge R310
Package: linux (not installed)
PciMultimedia:

ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-143-generic root=UUID=6aaa11f6-d386-4c0c-b4b8-38e6c408980a ro
ProcVersionSignature: User Name 4.4.0-143.169~14.04.2-generic 4.4.170
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-143-generic N/A
 linux-backports-modules-4.4.0-143-generic N/A
 linux-firmware 1.127.24
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty uec-images trusty uec-images
Uname: Linux 4.4.0-143-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
_MarkForUpload: True
dmi.bios.date: 09/18/2012
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.11.0
dmi.board.name: 05XKKK
dmi.board.vendor: Dell Inc.
dmi.board.version: A05
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.11.0:bd09/18/2012:svnDellInc.:pnPowerEdgeR310:pvr:rvnDellInc.:rn05XKKK:rvrA05:cvnDellInc.:ct23:cvr:
dmi.product.name: PowerEdge R310
dmi.sys.vendor: Dell Inc.

Po-Hsu Lin (cypressyew)
tags: added: i386
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted on X i386 as well.

description: updated
tags: added: xenial
summary: aa9ddcd4b5557102fa25695c11904f249b4dec49 in ubuntu_btrfs_kernel_fixes
- failed on T-4.4 i386
+ failed on 4.4 i386
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1821913

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
Changed in linux (Ubuntu Xenial):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : BootDmesg.txt

apport information

tags: added: apport-collected trusty uec-images
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : CRDA.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Lspci.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Lsusb.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : ProcEnviron.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : ProcModules.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : UdevDb.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : UdevLog.txt

apport information

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu Xenial):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → New
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Didn't see this in Disco.

Changed in linux (Ubuntu):
status: New → Fix Released
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Looks like this is caused by 6113077cd319e747875ec71227d2b5cb54e08c76, this issue can be easily reproduced if you run this test along with aa9ddcd4b5557102fa25695c11904f249b4dec49.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

After the 6113077cd319e747875ec71227d2b5cb54e08c76 test, the "rmmod btrfs" command will trigger this issue.

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.