linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel crash during btrfs scrub
@ 2018-01-03  1:12 Dmitry Katsubo
  2018-01-03  4:58 ` Qu Wenruo
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Katsubo @ 2018-01-03  1:12 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

Dear btrfs team,

I send a kernel crash report which I have observed recently during btrfs scrub.
It looks like scrub itself has completed without errors.

# btrfs scrub status /home
scrub status for 83a3cb60-3334-4d11-9fdf-70b8e8703167
        scrub started at Mon Jan  1 06:52:01 2018 and finished after 00:30:47
        total bytes scrubbed: 87.55GiB with 0 errors

# btrfs scrub status /var/log
scrub status for 5b45ac8e-fd8c-4759-854a-94e45069959d
        scrub started at Mon Jan  1 06:52:01 2018 and finished after 00:15:45
        total bytes scrubbed: 23.39GiB with 0 errors

Linux kernel v4.14.2-1
btrfs-progs v4.7.3-1

-- 
With best regards,
Dmitry

[-- Attachment #2: dmesg --]
[-- Type: text/plain, Size: 21493 bytes --]

[Mon Jan  1 07:04:44 2018] ------------[ cut here ]------------
[Mon Jan  1 07:04:44 2018] WARNING: CPU: 0 PID: 13583 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:04:44 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:04:44 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:04:44 2018] CPU: 0 PID: 13583 Comm: btrfs Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:04:44 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:04:44 2018] task: eba6a000 task.stack: ca216000
[Mon Jan  1 07:04:44 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:04:44 2018] EFLAGS: 00210206 CPU: 0
[Mon Jan  1 07:04:44 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:04:44 2018] ESI: f69e2280 EDI: 00000000 EBP: ca217bd8 ESP: ca217b98
[Mon Jan  1 07:04:44 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:04:44 2018] CR0: 80050033 CR2: b795da00 CR3: 1a2e2460 CR4: 000006f0
[Mon Jan  1 07:04:44 2018] Call Trace:
[Mon Jan  1 07:04:44 2018]  btrfs_finish_chunk_alloc+0xf3/0x480 [btrfs]
[Mon Jan  1 07:04:44 2018]  ? btrfs_free_path.part.26+0x1c/0x20 [btrfs]
[Mon Jan  1 07:04:44 2018]  ? btrfs_insert_item+0x66/0xd0 [btrfs]
[Mon Jan  1 07:04:44 2018]  btrfs_create_pending_block_groups+0x139/0x250 [btrfs]
[Mon Jan  1 07:04:44 2018]  __btrfs_end_transaction+0x78/0x2e0 [btrfs]
[Mon Jan  1 07:04:44 2018]  btrfs_end_transaction+0xf/0x20 [btrfs]
[Mon Jan  1 07:04:44 2018]  btrfs_inc_block_group_ro+0xea/0x190 [btrfs]
[Mon Jan  1 07:04:44 2018]  scrub_enumerate_chunks+0x215/0x660 [btrfs]
[Mon Jan  1 07:04:44 2018]  btrfs_scrub_dev+0x1e8/0x4e0 [btrfs]
[Mon Jan  1 07:04:44 2018]  btrfs_ioctl+0x1480/0x28b0 [btrfs]
[Mon Jan  1 07:04:44 2018]  ? kmem_cache_alloc+0x30c/0x540
[Mon Jan  1 07:04:44 2018]  ? btrfs_ioctl_get_supported_features+0x30/0x30 [btrfs]
[Mon Jan  1 07:04:44 2018]  do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:04:44 2018]  ? do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:04:44 2018]  ? create_task_io_context+0x78/0xe0
[Mon Jan  1 07:04:44 2018]  ? get_task_io_context+0x3d/0x80
[Mon Jan  1 07:04:44 2018]  SyS_ioctl+0x58/0x70
[Mon Jan  1 07:04:44 2018]  do_fast_syscall_32+0x71/0x1a0
[Mon Jan  1 07:04:44 2018]  entry_SYSENTER_32+0x4e/0x7c
[Mon Jan  1 07:04:44 2018] EIP: 0xb7f81cf9
[Mon Jan  1 07:04:44 2018] EFLAGS: 00000246 CPU: 0
[Mon Jan  1 07:04:44 2018] EAX: ffffffda EBX: 00000003 ECX: c400941b EDX: 092e21b8
[Mon Jan  1 07:04:44 2018] ESI: 092e21b8 EDI: 003d0f00 EBP: b7cff1e8 ESP: b7cff188
[Mon Jan  1 07:04:44 2018]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
[Mon Jan  1 07:04:44 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:04:44 2018] ---[ end trace 6b4736d811ae42e1 ]---
[Mon Jan  1 07:05:00 2018] ------------[ cut here ]------------
[Mon Jan  1 07:05:00 2018] WARNING: CPU: 1 PID: 443 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:05:00 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:05:00 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:05:00 2018] CPU: 1 PID: 443 Comm: btrfs-cleaner Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:05:00 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:05:00 2018] task: f28d4a80 task.stack: f2918000
[Mon Jan  1 07:05:00 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:05:00 2018] EFLAGS: 00010206 CPU: 1
[Mon Jan  1 07:05:00 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:05:00 2018] ESI: cbc344b0 EDI: 00000000 EBP: f2919e9c ESP: f2919e5c
[Mon Jan  1 07:05:00 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:05:00 2018] CR0: 80050033 CR2: 008c8c20 CR3: 1a2e2180 CR4: 000006f0
[Mon Jan  1 07:05:00 2018] Call Trace:
[Mon Jan  1 07:05:00 2018]  btrfs_remove_chunk+0x26a/0x7e0 [btrfs]
[Mon Jan  1 07:05:00 2018]  btrfs_delete_unused_bgs+0x321/0x3f0 [btrfs]
[Mon Jan  1 07:05:00 2018]  cleaner_kthread+0x13c/0x150 [btrfs]
[Mon Jan  1 07:05:00 2018]  kthread+0xf3/0x110
[Mon Jan  1 07:05:00 2018]  ? __btree_submit_bio_start+0x20/0x20 [btrfs]
[Mon Jan  1 07:05:00 2018]  ? kthread_create_on_node+0x20/0x20
[Mon Jan  1 07:05:00 2018]  ret_from_fork+0x19/0x24
[Mon Jan  1 07:05:00 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:05:00 2018] ---[ end trace 6b4736d811ae42e2 ]---
[Mon Jan  1 07:06:57 2018] ------------[ cut here ]------------
[Mon Jan  1 07:06:57 2018] WARNING: CPU: 1 PID: 13584 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:06:57 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:06:57 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:06:57 2018] CPU: 1 PID: 13584 Comm: btrfs Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:06:57 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:06:57 2018] task: eb8b5540 task.stack: d58ec000
[Mon Jan  1 07:06:57 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:06:57 2018] EFLAGS: 00010206 CPU: 1
[Mon Jan  1 07:06:57 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:06:57 2018] ESI: e1166cd0 EDI: 00000000 EBP: d58edbd8 ESP: d58edb98
[Mon Jan  1 07:06:57 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:06:57 2018] CR0: 80050033 CR2: 016f135c CR3: 1a2e2460 CR4: 000006f0
[Mon Jan  1 07:06:57 2018] Call Trace:
[Mon Jan  1 07:06:57 2018]  btrfs_finish_chunk_alloc+0xf3/0x480 [btrfs]
[Mon Jan  1 07:06:57 2018]  ? btrfs_free_path.part.26+0x1c/0x20 [btrfs]
[Mon Jan  1 07:06:57 2018]  ? btrfs_insert_item+0x66/0xd0 [btrfs]
[Mon Jan  1 07:06:57 2018]  btrfs_create_pending_block_groups+0x139/0x250 [btrfs]
[Mon Jan  1 07:06:57 2018]  __btrfs_end_transaction+0x78/0x2e0 [btrfs]
[Mon Jan  1 07:06:57 2018]  btrfs_end_transaction+0xf/0x20 [btrfs]
[Mon Jan  1 07:06:57 2018]  btrfs_inc_block_group_ro+0xea/0x190 [btrfs]
[Mon Jan  1 07:06:57 2018]  scrub_enumerate_chunks+0x215/0x660 [btrfs]
[Mon Jan  1 07:06:57 2018]  btrfs_scrub_dev+0x1e8/0x4e0 [btrfs]
[Mon Jan  1 07:06:57 2018]  btrfs_ioctl+0x1480/0x28b0 [btrfs]
[Mon Jan  1 07:06:57 2018]  ? page_add_file_rmap+0x54/0x130
[Mon Jan  1 07:06:57 2018]  ? filemap_map_pages+0x310/0x330
[Mon Jan  1 07:06:57 2018]  ? kmap_atomic_prot+0xd3/0xf0
[Mon Jan  1 07:06:57 2018]  ? __kunmap_atomic+0x5b/0x80
[Mon Jan  1 07:06:57 2018]  ? kmem_cache_alloc+0x30c/0x540
[Mon Jan  1 07:06:57 2018]  ? btrfs_ioctl_get_supported_features+0x30/0x30 [btrfs]
[Mon Jan  1 07:06:57 2018]  do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:06:57 2018]  ? do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:06:57 2018]  ? create_task_io_context+0x78/0xe0
[Mon Jan  1 07:06:57 2018]  ? get_task_io_context+0x3d/0x80
[Mon Jan  1 07:06:57 2018]  SyS_ioctl+0x58/0x70
[Mon Jan  1 07:06:57 2018]  do_fast_syscall_32+0x71/0x1a0
[Mon Jan  1 07:06:57 2018]  entry_SYSENTER_32+0x4e/0x7c
[Mon Jan  1 07:06:57 2018] EIP: 0xb7f81cf9
[Mon Jan  1 07:06:57 2018] EFLAGS: 00000246 CPU: 1
[Mon Jan  1 07:06:57 2018] EAX: ffffffda EBX: 00000003 ECX: c400941b EDX: 092e2610
[Mon Jan  1 07:06:57 2018] ESI: 092e2610 EDI: 003d0f00 EBP: b74fe1e8 ESP: b74fe188
[Mon Jan  1 07:06:57 2018]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
[Mon Jan  1 07:06:57 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:06:57 2018] ---[ end trace 6b4736d811ae42e3 ]---
[Mon Jan  1 07:07:27 2018] ------------[ cut here ]------------
[Mon Jan  1 07:07:27 2018] WARNING: CPU: 0 PID: 443 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:07:27 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:07:27 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:07:27 2018] CPU: 0 PID: 443 Comm: btrfs-cleaner Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:07:27 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:07:27 2018] task: f28d4a80 task.stack: f2918000
[Mon Jan  1 07:07:27 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:07:27 2018] EFLAGS: 00010206 CPU: 0
[Mon Jan  1 07:07:27 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:07:27 2018] ESI: f165c2d0 EDI: 00000000 EBP: f2919e9c ESP: f2919e5c
[Mon Jan  1 07:07:27 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:07:27 2018] CR0: 80050033 CR2: 01d69dbc CR3: 31557000 CR4: 000006f0
[Mon Jan  1 07:07:27 2018] Call Trace:
[Mon Jan  1 07:07:27 2018]  btrfs_remove_chunk+0x26a/0x7e0 [btrfs]
[Mon Jan  1 07:07:27 2018]  btrfs_delete_unused_bgs+0x321/0x3f0 [btrfs]
[Mon Jan  1 07:07:27 2018]  cleaner_kthread+0x13c/0x150 [btrfs]
[Mon Jan  1 07:07:27 2018]  kthread+0xf3/0x110
[Mon Jan  1 07:07:27 2018]  ? __btree_submit_bio_start+0x20/0x20 [btrfs]
[Mon Jan  1 07:07:28 2018]  ? kthread_create_on_node+0x20/0x20
[Mon Jan  1 07:07:28 2018]  ret_from_fork+0x19/0x24
[Mon Jan  1 07:07:28 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:07:28 2018] ---[ end trace 6b4736d811ae42e4 ]---
[Mon Jan  1 07:07:40 2018] ------------[ cut here ]------------
[Mon Jan  1 07:07:40 2018] WARNING: CPU: 0 PID: 13584 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:07:40 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:07:40 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:07:40 2018] CPU: 0 PID: 13584 Comm: btrfs Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:07:40 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:07:40 2018] task: eb8b5540 task.stack: d58ec000
[Mon Jan  1 07:07:40 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:07:40 2018] EFLAGS: 00010206 CPU: 0
[Mon Jan  1 07:07:40 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:07:40 2018] ESI: f286cb90 EDI: 00000000 EBP: d58edbd8 ESP: d58edb98
[Mon Jan  1 07:07:40 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:07:40 2018] CR0: 80050033 CR2: b5de8000 CR3: 1a2e2460 CR4: 000006f0
[Mon Jan  1 07:07:40 2018] Call Trace:
[Mon Jan  1 07:07:40 2018]  btrfs_finish_chunk_alloc+0xf3/0x480 [btrfs]
[Mon Jan  1 07:07:40 2018]  ? btrfs_free_path.part.26+0x1c/0x20 [btrfs]
[Mon Jan  1 07:07:40 2018]  ? btrfs_insert_item+0x66/0xd0 [btrfs]
[Mon Jan  1 07:07:40 2018]  btrfs_create_pending_block_groups+0x139/0x250 [btrfs]
[Mon Jan  1 07:07:40 2018]  __btrfs_end_transaction+0x78/0x2e0 [btrfs]
[Mon Jan  1 07:07:40 2018]  btrfs_end_transaction+0xf/0x20 [btrfs]
[Mon Jan  1 07:07:40 2018]  btrfs_inc_block_group_ro+0xea/0x190 [btrfs]
[Mon Jan  1 07:07:40 2018]  scrub_enumerate_chunks+0x215/0x660 [btrfs]
[Mon Jan  1 07:07:40 2018]  btrfs_scrub_dev+0x1e8/0x4e0 [btrfs]
[Mon Jan  1 07:07:40 2018]  btrfs_ioctl+0x1480/0x28b0 [btrfs]
[Mon Jan  1 07:07:40 2018]  ? page_add_file_rmap+0x54/0x130
[Mon Jan  1 07:07:40 2018]  ? filemap_map_pages+0x310/0x330
[Mon Jan  1 07:07:40 2018]  ? kmap_atomic_prot+0xd3/0xf0
[Mon Jan  1 07:07:40 2018]  ? __kunmap_atomic+0x5b/0x80
[Mon Jan  1 07:07:40 2018]  ? kmem_cache_alloc+0x30c/0x540
[Mon Jan  1 07:07:40 2018]  ? btrfs_ioctl_get_supported_features+0x30/0x30 [btrfs]
[Mon Jan  1 07:07:40 2018]  do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:07:40 2018]  ? do_vfs_ioctl+0x90/0x650
[Mon Jan  1 07:07:40 2018]  ? create_task_io_context+0x78/0xe0
[Mon Jan  1 07:07:40 2018]  ? get_task_io_context+0x3d/0x80
[Mon Jan  1 07:07:40 2018]  SyS_ioctl+0x58/0x70
[Mon Jan  1 07:07:40 2018]  do_fast_syscall_32+0x71/0x1a0
[Mon Jan  1 07:07:40 2018]  entry_SYSENTER_32+0x4e/0x7c
[Mon Jan  1 07:07:40 2018] EIP: 0xb7f81cf9
[Mon Jan  1 07:07:40 2018] EFLAGS: 00000246 CPU: 0
[Mon Jan  1 07:07:40 2018] EAX: ffffffda EBX: 00000003 ECX: c400941b EDX: 092e2610
[Mon Jan  1 07:07:40 2018] ESI: 092e2610 EDI: 003d0f00 EBP: b74fe1e8 ESP: b74fe188
[Mon Jan  1 07:07:40 2018]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
[Mon Jan  1 07:07:40 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:07:40 2018] ---[ end trace 6b4736d811ae42e5 ]---
[Mon Jan  1 07:08:27 2018] ------------[ cut here ]------------
[Mon Jan  1 07:08:27 2018] WARNING: CPU: 0 PID: 443 at /build/linux-SCFPgu/linux-4.14.2/fs/btrfs/ctree.h:1564 btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:08:27 2018] Modules linked in: md4 nls_utf8 cifs ccm dns_resolver fscache option usb_wwan usbserial isofs loop ses enclosure scsi_transport_sas hid_generic usbhid hid ipt_REJECT nf_reject_ipv4 xt_multiport iptable_filter xt_REDIRECT nf_nat_redirect xt_physdev br_netfilter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c xt_tcpudp iptable_mangle bridge stp llc arc4 iTCO_wdt iTCO_vendor_support ppdev evdev snd_hda_codec_realtek snd_hda_codec_generic ath5k ath mac80211 cfg80211 snd_hda_intel i915 rfkill coretemp snd_hda_codec snd_hda_core snd_hwdep serio_raw snd_pcm_oss pcspkr snd_mixer_oss lpc_ich snd_pcm mfd_core snd_timer snd video soundcore drm_kms_helper sg drm shpchp i2c_algo_bit rng_core parport_pc parport button acpi_cpufreq binfmt_misc w83627hf hwmon_vid
[Mon Jan  1 07:08:27 2018]  ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd aes_i586 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq uas usb_storage sr_mod sd_mod cdrom ata_generic ata_piix i2c_i801 libata firewire_ohci scsi_mod firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd e1000e ptp pps_core usbcore usb_common
[Mon Jan  1 07:08:27 2018] CPU: 0 PID: 443 Comm: btrfs-cleaner Tainted: G        W       4.14.0-1-686-pae #1 Debian 4.14.2-1
[Mon Jan  1 07:08:27 2018] Hardware name: AOpen i945GMx-IF/i945GMx-IF, BIOS i945GMx-IF R1.01 Mar.02.2007 AOpen Inc. 03/02/2007
[Mon Jan  1 07:08:27 2018] task: f28d4a80 task.stack: f2918000
[Mon Jan  1 07:08:27 2018] EIP: btrfs_update_device+0x220/0x230 [btrfs]
[Mon Jan  1 07:08:27 2018] EFLAGS: 00010206 CPU: 0
[Mon Jan  1 07:08:27 2018] EAX: 00000000 EBX: f6908400 ECX: 0000000c EDX: 00000200
[Mon Jan  1 07:08:27 2018] ESI: e1166fa0 EDI: 00000000 EBP: f2919e9c ESP: f2919e5c
[Mon Jan  1 07:08:27 2018]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[Mon Jan  1 07:08:27 2018] CR0: 80050033 CR2: b66ec200 CR3: 1a2e2180 CR4: 000006f0
[Mon Jan  1 07:08:27 2018] Call Trace:
[Mon Jan  1 07:08:27 2018]  btrfs_remove_chunk+0x26a/0x7e0 [btrfs]
[Mon Jan  1 07:08:27 2018]  btrfs_delete_unused_bgs+0x321/0x3f0 [btrfs]
[Mon Jan  1 07:08:27 2018]  cleaner_kthread+0x13c/0x150 [btrfs]
[Mon Jan  1 07:08:27 2018]  kthread+0xf3/0x110
[Mon Jan  1 07:08:27 2018]  ? __btree_submit_bio_start+0x20/0x20 [btrfs]
[Mon Jan  1 07:08:27 2018]  ? kthread_create_on_node+0x20/0x20
[Mon Jan  1 07:08:27 2018]  ret_from_fork+0x19/0x24
[Mon Jan  1 07:08:27 2018] Code: e9 81 fe ff ff 8d b6 00 00 00 00 bf f4 ff ff ff e9 78 fe ff ff 8d b6 00 00 00 00 f3 90 eb a8 8d 74 26 00 f3 90 e9 2b ff ff ff 90 <0f> ff e9 7a ff ff ff e8 14 ad 48 d0 8d 74 26 00 3e 8d 74 26 00
[Mon Jan  1 07:08:27 2018] ---[ end trace 6b4736d811ae42e6 ]---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel crash during btrfs scrub
  2018-01-03  1:12 Kernel crash during btrfs scrub Dmitry Katsubo
@ 2018-01-03  4:58 ` Qu Wenruo
  2018-01-03 10:14   ` Dmitry Katsubo
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2018-01-03  4:58 UTC (permalink / raw)
  To: Dmitry Katsubo, linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 1373 bytes --]



On 2018年01月03日 09:12, Dmitry Katsubo wrote:
> Dear btrfs team,
> 
> I send a kernel crash report which I have observed recently during btrfs scrub.
> It looks like scrub itself has completed without errors.
> 
> # btrfs scrub status /home
> scrub status for 83a3cb60-3334-4d11-9fdf-70b8e8703167
>         scrub started at Mon Jan  1 06:52:01 2018 and finished after 00:30:47
>         total bytes scrubbed: 87.55GiB with 0 errors
> 
> # btrfs scrub status /var/log
> scrub status for 5b45ac8e-fd8c-4759-854a-94e45069959d
>         scrub started at Mon Jan  1 06:52:01 2018 and finished after 00:15:45
>         total bytes scrubbed: 23.39GiB with 0 errors
> 
> Linux kernel v4.14.2-1
> btrfs-progs v4.7.3-1
> 

It's not a kernel crash (if I didn't miss anything), but just kernel
warning.

The warning is caused by the fact that your fs (mostly created by old
mkfs.btrfs) has device with unaligned size.

You could either resize the device down a little (e.g. -4K) and newer
kernel (the one you're using should be new enough) could handle it well.

Or you could update your btrfs-progs (I assume you're using Arch, which
is already shipping btrfs-progs v4.14) and use "btrfs rescue
fix-device-size" to fix other device related problems offline.
(Not only the warning, but also potential superblock size mismatch)

Thanks,
Qu


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel crash during btrfs scrub
  2018-01-03  4:58 ` Qu Wenruo
@ 2018-01-03 10:14   ` Dmitry Katsubo
  2018-01-03 10:25     ` Qu Wenruo
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Katsubo @ 2018-01-03 10:14 UTC (permalink / raw)
  To: linux-btrfs

On 2018-01-03 05:58, Qu Wenruo wrote:
> On 2018年01月03日 09:12, Dmitry Katsubo wrote:
>> Dear btrfs team,
>>
>> I send a kernel crash report which I have observed recently during btrfs scrub.
>> It looks like scrub itself has completed without errors.
> 
> It's not a kernel crash (if I didn't miss anything), but just kernel
> warning.
> 
> The warning is caused by the fact that your fs (mostly created by old
> mkfs.btrfs) has device with unaligned size.
> 
> You could either resize the device down a little (e.g. -4K) and newer
> kernel (the one you're using should be new enough) could handle it well.
> 
> Or you could update your btrfs-progs (I assume you're using Arch, which
> is already shipping btrfs-progs v4.14) and use "btrfs rescue
> fix-device-size" to fix other device related problems offline.
> (Not only the warning, but also potential superblock size mismatch)
> 
> Thanks,
> Qu

Thanks for reply!

Why couldn't a warning message be issued as one-liner, e.g. with proper
description and without scaring stack trace?

btrfs /dev/sda1 warning: device size is not aligned with FS (mostly created by old mkfs.btrfs), see https://btrfs.wiki.kernel.org/index.php/FAQ#...

-- 
With best regards,
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel crash during btrfs scrub
  2018-01-03 10:14   ` Dmitry Katsubo
@ 2018-01-03 10:25     ` Qu Wenruo
  0 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2018-01-03 10:25 UTC (permalink / raw)
  To: Dmitry Katsubo, linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 1634 bytes --]



On 2018年01月03日 18:14, Dmitry Katsubo wrote:
> On 2018-01-03 05:58, Qu Wenruo wrote:
>> On 2018年01月03日 09:12, Dmitry Katsubo wrote:
>>> Dear btrfs team,
>>>
>>> I send a kernel crash report which I have observed recently during btrfs scrub.
>>> It looks like scrub itself has completed without errors.
>>
>> It's not a kernel crash (if I didn't miss anything), but just kernel
>> warning.
>>
>> The warning is caused by the fact that your fs (mostly created by old
>> mkfs.btrfs) has device with unaligned size.
>>
>> You could either resize the device down a little (e.g. -4K) and newer
>> kernel (the one you're using should be new enough) could handle it well.
>>
>> Or you could update your btrfs-progs (I assume you're using Arch, which
>> is already shipping btrfs-progs v4.14) and use "btrfs rescue
>> fix-device-size" to fix other device related problems offline.
>> (Not only the warning, but also potential superblock size mismatch)
>>
>> Thanks,
>> Qu
> 
> Thanks for reply!
> 
> Why couldn't a warning message be issued as one-liner, e.g. with proper
> description and without scaring stack trace?

Because we're using WARN_ON() and the backtrace is in fact very useful
for developers to locate the problem.

For one-line message, the problem is we don't know who caused the
problem if there are multiple callers.

But since the cause of the problem is located, one-line output seems better.

Thanks,
Qu

> 
> btrfs /dev/sda1 warning: device size is not aligned with FS (mostly created by old mkfs.btrfs), see https://btrfs.wiki.kernel.org/index.php/FAQ#...
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-03 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03  1:12 Kernel crash during btrfs scrub Dmitry Katsubo
2018-01-03  4:58 ` Qu Wenruo
2018-01-03 10:14   ` Dmitry Katsubo
2018-01-03 10:25     ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).