← Back to team overview

kernel-packages team mailing list archive

Re: [Bug 1592566] Re: can't write to a BTRFS disk with my powermac

 

oops, I forgot the tag:

kernel-bug-exists-upstream


----- Mail original -----
De: "regis etourmy" <regis.etourmy@xxxxxxx>
À: "Bug 1592566" <1592566@xxxxxxxxxxxxxxxxxx>
Envoyé: Samedi 18 Juin 2016 23:59:10
Objet: Re: [Bug 1592566] Re: can't write to a BTRFS disk with my powermac


Hi,

I built the mainline kernel v4.7-rc3-yakkety today. The problem still
exists running this kernel:


[   53.638010] IPv6: ADDRCONF(NETDEV_CHANGE): wlx001cdfdd052f: link becomes ready
[  284.799611] usb 1-2: new high-speed USB device number 4 using ehci-pci
[  285.009477] usb 1-2: New USB device found, idVendor=04e8, idProduct=61b5
[  285.009492] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  285.009501] usb 1-2: Product: Samsung M3 Portable
[  285.009509] usb 1-2: Manufacturer: Samsung M3 Portable
[  285.009518] usb 1-2: SerialNumber: D93E7DFA1900009A
[  285.113800] usbcore: registered new interface driver usb-storage
[  285.142745] scsi host5: uas
[  285.142982] usbcore: registered new interface driver uas
[  285.145458] scsi 5:0:0:0: Direct-Access     Samsung  M3 Portable      1402 PQ: 0 ANSI: 6
[  285.176919] sd 5:0:0:0: Attached scsi generic sg3 type 0
[  288.510792] sd 5:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[  288.510801] sd 5:0:0:0: [sdc] 4096-byte physical blocks
[  288.512275] sd 5:0:0:0: [sdc] Write Protect is off
[  288.512282] sd 5:0:0:0: [sdc] Mode Sense: 53 00 00 08
[  288.513024] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  288.528924]  sdc: sdc1
[  288.532525] sd 5:0:0:0: [sdc] Attached SCSI disk
[  289.152668] BTRFS: device fsid bf584dbe-6bf6-4847-8b32-cb0d22bead69 devid 1 transid 17693 /dev/sdc1
[  289.439843] BTRFS info (device sdc1): disk space caching is enabled
[  289.439853] BTRFS info (device sdc1): has skinny extents
[  322.787805] ------------[ cut here ]------------
[  322.787900] WARNING: CPU: 1 PID: 1833 at fs/btrfs/inode.c:945 .cow_file_range+0x4a4/0x500 [btrfs]
[  322.787904] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 snd_aoa_fabric_layout input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi rtc_generic snd_aoa_i2sbus snd_seq_midi_event snd_rawmidi snd_seq snd_aoa_soundbus snd_seq_device snd_pcm snd_timer rack_meter snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid hid_generic sil164 windfarm_max6690_sensor windfarm_lm75_sensor windfarm_smu_sat windfarm_core firewire_ohci nouveau firewire_core ata_generic crc_itu_t usbhid hid tg3 i2c_algo_bit ttm drm_kms_helper ptp drm pps_core uninorth_agp
[  322.788006] CPU: 1 PID: 1833 Comm: btrfs-transacti Not tainted 4.7.0-rc3-custom #1
[  322.788010] task: c00000007c354080 ti: c00000007ba3c000 task.ti: c00000007ba3c000
[  322.788014] NIP: d000000001dc0594 LR: d000000001dc0aa4 CTR: d000000001dc0160
[  322.788018] REGS: c00000007ba3ec70 TRAP: 0700   Not tainted  (4.7.0-rc3-custom)
[  322.788020] MSR: 900000000202b032 <SF,HV,VEC,EE,FP,ME,IR,DR,RI>  CR: 24442282  XER: 20000000
[  322.788038] SOFTE: 1 
               GPR00: d000000001dc0aa4 c00000007ba3eef0 d000000001e983c0 c00000007d7c12b0 
               GPR04: f000000008f8e000 0000000000000000 000000000003ffff c00000007ba3f318 
               GPR08: d000000001e983c0 0000000000000001 d000000001e954da d000000001e60ea0 
               GPR12: d000000001dc0160 c00000000fdc0900 0000000000040000 c00000007d7c51c0 
               GPR16: c00000007ba3f318 c00000007d7c51c0 000000000003ffff f000000008f8e000 
               GPR20: 0000000000000000 c00000007a444000 c00000007d7c12b0 c00000007d806000 
               GPR24: 0000000000040000 c00000007ba3f318 c00000007ba3f3d0 c00000007a444000 
               GPR28: 0000000000000000 c00000007d7c12b0 ffffffffffffffea 0000000000000001 
[  322.788141] NIP [d000000001dc0594] .cow_file_range+0x4a4/0x500 [btrfs]
[  322.788191] LR [d000000001dc0aa4] .run_delalloc_nocow+0x4b4/0xb80 [btrfs]
[  322.788194] Call Trace:
[  322.788198] [c00000007ba3eef0] [ffffffffffffffff] 0xffffffffffffffff (unreliable)
[  322.788250] [c00000007ba3f010] [d000000001dc0aa4] .run_delalloc_nocow+0x4b4/0xb80 [btrfs]
[  322.788300] [c00000007ba3f170] [d000000001dc15d4] .run_delalloc_range+0x464/0x480 [btrfs]
[  322.788353] [c00000007ba3f2a0] [d000000001de06c4] .writepage_delalloc.isra.10+0x1c4/0x230 [btrfs]
[  322.788406] [c00000007ba3f360] [d000000001de2d10] .__extent_writepage+0x100/0x430 [btrfs]
[  322.788459] [c00000007ba3f430] [d000000001de3310] .extent_write_cache_pages.isra.7.constprop.21+0x2d0/0x470 [btrfs]
[  322.788512] [c00000007ba3f5b0] [d000000001de4c7c] .extent_writepages+0x7c/0xb0 [btrfs]
[  322.788562] [c00000007ba3f670] [d000000001dba410] .btrfs_writepages+0x40/0x60 [btrfs]
[  322.788571] [c00000007ba3f6f0] [c00000000026df3c] .do_writepages+0x5c/0xc0
[  322.788578] [c00000007ba3f770] [c00000000025a4a8] .__filemap_fdatawrite_range+0xf8/0x180
[  322.788630] [c00000007ba3f860] [d000000001dd366c] .btrfs_fdatawrite_range+0x3c/0xa0 [btrfs]
[  322.788684] [c00000007ba3f8f0] [d000000001e10c60] .__btrfs_write_out_cache.isra.10+0x4c0/0x530 [btrfs]
[  322.788739] [c00000007ba3f9e0] [d000000001e11d90] .btrfs_write_out_cache+0x100/0x1e0 [btrfs]
[  322.788787] [c00000007ba3fa90] [d000000001da1058] .btrfs_start_dirty_block_groups+0x318/0x570 [btrfs]
[  322.788837] [c00000007ba3fba0] [d000000001db62f4] .btrfs_commit_transaction+0x1d4/0xc10 [btrfs]
[  322.788888] [c00000007ba3fc80] [d000000001db1ad4] .transaction_kthread+0x284/0x2f0 [btrfs]
[  322.788895] [c00000007ba3fd30] [c000000000106bdc] .kthread+0x10c/0x130
[  322.788902] [c00000007ba3fe30] [c0000000000095ec] .ret_from_kernel_thread+0x58/0x6c
[  322.788905] Instruction dump:
[  322.788910] 4bfd7b0d 60000000 39210079 e8810070 38c00001 e8a90000 7ea3ab78 4bfd8da1 
[  322.788924] 60000000 4bfffeac 39200001 992a0000 <0fe00000> 4bfffe9c e95d0040 4bfffe74 
[  322.788939] ---[ end trace bd392cbb9f74f106 ]---
[  322.811700] BTRFS: Transaction aborted (error -17)
[  322.811781] ------------[ cut here ]------------
[  322.811868] WARNING: CPU: 1 PID: 1833 at fs/btrfs/extent-tree.c:2952 .btrfs_run_delayed_refs+0x384/0x3c0 [btrfs]
[  322.811871] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 snd_aoa_fabric_layout input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi rtc_generic snd_aoa_i2sbus snd_seq_midi_event snd_rawmidi snd_seq snd_aoa_soundbus snd_seq_device snd_pcm snd_timer rack_meter snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid hid_generic sil164 windfarm_max6690_sensor windfarm_lm75_sensor windfarm_smu_sat windfarm_core firewire_ohci nouveau firewire_core ata_generic crc_itu_t usbhid hid tg3 i2c_algo_bit ttm drm_kms_helper ptp drm pps_core uninorth_agp
[  322.811974] CPU: 1 PID: 1833 Comm: btrfs-transacti Tainted: G        W       4.7.0-rc3-custom #1
[  322.811979] task: c00000007c354080 ti: c00000007ba3c000 task.ti: c00000007ba3c000
[  322.811982] NIP: d000000001d9bcb4 LR: d000000001d9bcb0 CTR: c00000000018d2e0
[  322.811986] REGS: c00000007ba3f730 TRAP: 0700   Tainted: G        W        (4.7.0-rc3-custom)
[  322.811989] MSR: 9000000000029032 <SF,HV,EE,ME,IR,DR,RI>  CR: 28744442  XER: 20000000
[  322.812004] SOFTE: 1 
               GPR00: d000000001d9bcb0 c00000007ba3f9b0 d000000001e983c0 0000000000000026 
               GPR04: c00000025de8ab20 c00000025de8f4c8 00000000000002cf 00000000000002cf 
               GPR08: 0000000000000007 c000000000faf0fc 000000025cedf000 0000000000000038 
               GPR12: c00000000018d2e0 c00000000fdc0900 c000000000106ad0 0000000000000001 
               GPR16: 0000000000000004 c00000007d8640f0 0000000000000000 0000000000000000 
               GPR20: 0000000000000001 0000000000000000 0000000000000000 c00000007d806090 
               GPR24: c00000007d864170 c00000007d864160 0000000000000000 c00000007d864000 
               GPR28: c00000007a444000 c00000007d806000 c00000007d806000 ffffffffffffffef 
[  322.812103] NIP [d000000001d9bcb4] .btrfs_run_delayed_refs+0x384/0x3c0 [btrfs]
[  322.812150] LR [d000000001d9bcb0] .btrfs_run_delayed_refs+0x380/0x3c0 [btrfs]
[  322.812153] Call Trace:
[  322.812199] [c00000007ba3f9b0] [d000000001d9bcb0] .btrfs_run_delayed_refs+0x380/0x3c0 [btrfs] (unreliable)
[  322.812249] [c00000007ba3fa90] [d000000001da0f9c] .btrfs_start_dirty_block_groups+0x25c/0x570 [btrfs]
[  322.812299] [c00000007ba3fba0] [d000000001db62f4] .btrfs_commit_transaction+0x1d4/0xc10 [btrfs]
[  322.812349] [c00000007ba3fc80] [d000000001db1ad4] .transaction_kthread+0x284/0x2f0 [btrfs]
[  322.812357] [c00000007ba3fd30] [c000000000106bdc] .kthread+0x10c/0x130
[  322.812364] [c00000007ba3fe30] [c0000000000095ec] .ret_from_kernel_thread+0x58/0x6c
[  322.812368] Instruction dump:
[  322.812373] 7d4048a8 7d474378 7ce049ad 40a2fff4 7c0004ac 7949f7e3 40a2001c 3d420000 
[  322.812386] 7fe4fb78 e86a89c8 480c63c5 e8410028 <0fe00000> 3d220000 7fe7fb78 e8a989d0 
[  322.812401] ---[ end trace bd392cbb9f74f107 ]---
[  322.812408] BTRFS: error (device sdc1) in btrfs_run_delayed_refs:2952: errno=-17 Object already exists
[  322.812414] BTRFS info (device sdc1): forced readonly

-- 
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/1592566

Title:
  can't write to a BTRFS disk with my powermac

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Hi,
  When I try to write to my BTRFS formated external disk, I get an error message explaining the file system is mounted read only. Indeed, I can still read data in it.

  A dmesg shows the following errors:

  [  143.354977] usb 1-2: new high-speed USB device number 4 using ehci-pci
  [  143.564941] usb 1-2: New USB device found, idVendor=04e8, idProduct=61b5
  [  143.564955] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  [  143.564963] usb 1-2: Product: Samsung M3 Portable
  [  143.564971] usb 1-2: Manufacturer: Samsung M3 Portable
  [  143.564978] usb 1-2: SerialNumber: D93E7DFA1900009A
  [  143.668941] usbcore: registered new interface driver usb-storage
  [  143.694409] scsi host5: uas
  [  143.694601] usbcore: registered new interface driver uas
  [  143.696560] scsi 5:0:0:0: Direct-Access     Samsung  M3 Portable      1402 PQ: 0 ANSI: 6
  [  143.698592] sd 5:0:0:0: Attached scsi generic sg3 type 0
  [  147.091177] sd 5:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
  [  147.091194] sd 5:0:0:0: [sdc] 4096-byte physical blocks
  [  147.092774] sd 5:0:0:0: [sdc] Write Protect is off
  [  147.092785] sd 5:0:0:0: [sdc] Mode Sense: 53 00 00 08
  [  147.093629] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
  [  147.109068]  sdc: sdc1
  [  147.113161] sd 5:0:0:0: [sdc] Attached SCSI disk
  [  147.744379] BTRFS: device fsid bf584dbe-6bf6-4847-8b32-cb0d22bead69 devid 1 transid 17546 /dev/sdc1
  [  148.044853] BTRFS info (device sdc1): disk space caching is enabled
  [  148.044867] BTRFS: has skinny extents
  [  181.329491] BTRFS: Transaction aborted (error -17)
  [  181.329573] ------------[ cut here ]------------
  [  181.329577] WARNING: at /build/linux-t3xCGW/linux-4.4.0/fs/btrfs/extent-tree.c:2927
  [  181.329580] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi snd_seq_midi_event rtc_generic snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid sil164 hid_generic nouveau windfarm_lm75_sensor windfarm_max6690_sensor i2c_algo_bit firewire_ohci windfarm_smu_sat windfarm_core firewire_core ttm crc_itu_t drm_kms_helper usbhid ata_generic hid drm tg3 ptp uninorth_agp pps_core
  [  181.329658] CPU: 0 PID: 1490 Comm: btrfs-transacti Not tainted 4.4.0-24-powerpc64-smp #43-Ubuntu
  [  181.329663] task: c00000007a633db0 ti: c00000007d2c0000 task.ti: c00000007d2c0000
  [  181.329666] NIP: d000000001d99274 LR: d000000001d99270 CTR: 0000000000000000
  [  181.329670] REGS: c00000007d2c3690 TRAP: 0700   Not tainted  (4.4.0-24-powerpc64-smp)
  [  181.329672] MSR: 9000000000029032 <SF,HV,EE,ME,IR,DR,RI>  CR: 24f72442  XER: 20000000
  [  181.329683] SOFTE: 1 
                 GPR00: d000000001d99270 c00000007d2c3910 d000000001e8f2d0 0000000000000026 
                 GPR04: c00000025de09ad0 c00000025de0c360 0000000000000036 00000000000002ab 
                 GPR08: 0000000000000007 c0000000010150fc 000000025cdf6000 0000000000000018 
                 GPR12: 0000000048f72444 c00000000fdc0000 c0000000000f9f40 c00000007d082b80 
                 GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
                 GPR20: c00000007de65800 0000000000000001 0000000000000000 c00000007b765090 
                 GPR24: c00000007b784170 c00000007b784160 0000000000000000 c00000007b784000 
                 GPR28: c00000007de65800 c00000007b765000 c00000024e12bc00 ffffffffffffffef 
  [  181.329801] NIP [d000000001d99274] .btrfs_run_delayed_refs+0x364/0x3a0 [btrfs]
  [  181.329846] LR [d000000001d99270] .btrfs_run_delayed_refs+0x360/0x3a0 [btrfs]
  [  181.329848] Call Trace:
  [  181.329894] [c00000007d2c3910] [d000000001d99270] .btrfs_run_delayed_refs+0x360/0x3a0 [btrfs] (unreliable)
  [  181.329941] [c00000007d2c39e0] [d000000001d9a5e0] .btrfs_write_dirty_block_groups+0x1d0/0x300 [btrfs]
  [  181.329995] [c00000007d2c3ab0] [d000000001e4e3fc] .commit_cowonly_roots+0x284/0x36c [btrfs]
  [  181.330044] [c00000007d2c3b90] [d000000001db37f8] .btrfs_commit_transaction+0x708/0xc40 [btrfs]
  [  181.330093] [c00000007d2c3c70] [d000000001daf114] .transaction_kthread+0x2a4/0x340 [btrfs]
  [  181.330101] [c00000007d2c3d30] [c0000000000fa04c] .kthread+0x10c/0x130
  [  181.330108] [c00000007d2c3e30] [c000000000009534] .ret_from_kernel_thread+0x58/0xa4
  [  181.330111] Instruction dump:
  [  181.330114] 7d4048a8 7d474378 7ce049ad 40a2fff4 7c0004ac 7949f7e3 40a2001c 3d420000 
  [  181.330124] 7fe4fb78 e86a8900 480be205 e8410028 <0fe00000> 3d220000 7fa3eb78 e8a98908 
  [  181.330134] ---[ end trace f2ee5bb68a7c169e ]---
  [  181.330181] BTRFS: error (device sdc1) in btrfs_run_delayed_refs:2927: errno=-17 Object already exists
  [  181.330187] BTRFS info (device sdc1): forced readonly
  [  181.330875] BTRFS warning (device sdc1): Skipping commit of aborted transaction.
  [  181.330887] BTRFS: error (device sdc1) in cleanup_transaction:1746: errno=-17 Object already exists

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-24-powerpc64-smp 4.4.0-24.43
  ProcVersionSignature: Ubuntu 4.4.0-24.43-powerpc64-smp 4.4.10
  Uname: Linux 4.4.0-24-powerpc64-smp ppc64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: powerpc
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  CurrentDesktop: LXDE
  Date: Tue Jun 14 22:58:25 2016
  HibernationDevice: RESUME=UUID=d4dc68d8-9f2f-4ece-b5bf-891fd8ff92e2
  ProcFB: 0 nouveaufb
  ProcKernelCmdLine: root=/dev/sdb3 ro quiet splash
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-24-powerpc64-smp N/A
   linux-backports-modules-4.4.0-24-powerpc64-smp  N/A
   linux-firmware                                  1.157
  RfKill:
   0: phy0: Wireless LAN
   	Soft blocked: no
   	Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1592566/+subscriptions


References