You are not logged in.

#1 2016-07-25 20:39:35

Bolche
Member
Registered: 2013-07-28
Posts: 10

Kernel Bug with f2fs

I have a setup with LVM over a SSD and an HDD, with my root LV entirely on the SSD. On this root partition I use F2FS.

Since the last kernel update, after every boot I get the following on `dmesg`:

[Jul25 11:57] ------------[ cut here ]------------
[  +0,000015] kernel BUG at fs/f2fs/node.c:1085!
[  +0,000010] invalid opcode: 0000 [#1] PREEMPT SMP 
[  +0,000012] Modules linked in: fuse dm_crypt algif_skcipher af_alg sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ext4 jbd2 mbcache arc4 nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic mei_wdt intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp ppdev rt2800usb rt2x00usb kvm_intel rt2800lib rt2x00lib kvm mac80211 e1000e crct10dif_pclmul ghash_clmulni_intel aesni_intel snd_hda_intel aes_x86_64 snd_hda_codec lrw gf128mul glue_helper ablk_helper cryptd snd_hda_core snd_hwdep
[  +0,000189]  cfg80211 snd_pcm mousedev snd_timer mei_me ptp pcspkr input_leds snd crc_ccitt led_class joydev psmouse serio_raw pps_core soundcore shpchp mei i2c_i801 fan thermal hci_uart btbcm btqca btintel bluetooth parport_pc rfkill battery parport crc16 pinctrl_sunrisepoint wmi pinctrl_intel i2c_hid intel_lpss_acpi intel_lpss acpi_als tpm_infineon kfifo_buf tpm_tis acpi_pad industrialio tpm evdev fjes mac_hid processor sch_fq_codel ip_tables x_tables hid_generic usbhid hid f2fs fscrypto dm_cache_smq dm_cache dm_persistent_data libcrc32c crc32c_generic dm_bio_prison dm_bufio dm_mod sd_mod atkbd libps2 crc32c_intel ahci libahci xhci_pci libata xhci_hcd usbcore scsi_mod usb_common i8042 serio i915 video button i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm intel_agp
[  +0,000206]  intel_gtt vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio crc32_pclmul crc32_generic
[  +0,000024] CPU: 3 PID: 275 Comm: f2fs_gc-254:0 Not tainted 4.6.4-1-ARCH #1
[  +0,000014] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./B150M-D3H-CF, BIOS F6 03/14/2016
[  +0,000020] task: ffff880469e73d00 ti: ffff88046822c000 task.ti: ffff88046822c000
[  +0,000015] RIP: 0010:[<ffffffffa0392a3b>]  [<ffffffffa0392a3b>] ra_node_page+0xcb/0xe0 [f2fs]
[  +0,000021] RSP: 0018:ffff88046822fc28  EFLAGS: 00010206
[  +0,000011] RAX: ffff88007043b000 RBX: 0000000000000002 RCX: 0000000000000006
[  +0,000014] RDX: 0000000000000000 RSI: 00000000746e0000 RDI: ffff880469d71000
[  +0,000014] RBP: ffff88046822fd80 R08: ffff880426051e98 R09: 0000000000000200
[  +0,000014] R10: 0000000000000000 R11: 0000000000000013 R12: ffff880426c8c00e
[  +0,000014] R13: 0000000000000001 R14: 00000000746e0000 R15: ffff880469d71000
[  +0,000014] FS:  0000000000000000(0000) GS:ffff8804804c0000(0000) knlGS:0000000000000000
[  +0,000016] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0,000011] CR2: 00007fe381841000 CR3: 000000044aa91000 CR4: 00000000003406e0
[  +0,000014] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  +0,000014] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  +0,000014] Stack:
[  +0,000004]  ffffffffa038b3ab ffff880469e73d80 00000000000cd370 0000000000003aa2
[  +0,000018]  ffff88046822fcb0 0000000000000001 0000000000000001 ffff88046822fdb0
[  +0,000017]  00003aa300003aa3 00003aa20103fcf0 ffff880426c8c007 ffffffff007611ff
[  +0,000017] Call Trace:
[  +0,000008]  [<ffffffffa038b3ab>] ? do_garbage_collect+0x1fb/0xb10 [f2fs]
[  +0,000015]  [<ffffffff810aa499>] ? sched_clock_cpu+0xa9/0xd0
[  +0,000014]  [<ffffffffa038bf89>] f2fs_gc+0x159/0x440 [f2fs]
[  +0,000013]  [<ffffffffa038c533>] gc_thread_func+0x2c3/0x3c0 [f2fs]
[  +0,000013]  [<ffffffff810bd490>] ? wake_atomic_t_function+0x60/0x60
[  +0,000014]  [<ffffffffa038c270>] ? f2fs_gc+0x440/0x440 [f2fs]
[  +0,000013]  [<ffffffff81099998>] kthread+0xd8/0xf0
[  +0,000011]  [<ffffffff815c7442>] ret_from_fork+0x22/0x40
[  +0,000012]  [<ffffffff810998c0>] ? kthread_worker_fn+0x170/0x170
[  +0,000012] Code: e2 01 48 0f 44 c3 48 8b 00 a8 01 74 2a 48 89 df e8 5b c0 dd e0 48 8b 43 20 48 8d 50 ff a8 01 48 0f 45 da f0 ff 4b 1c 74 04 eb 8c <0f> 0b 48 89 df e8 db d1 de e0 eb 80 0f 0b 0f 1f 80 00 00 00 00 
[  +0,000082] RIP  [<ffffffffa0392a3b>] ra_node_page+0xcb/0xe0 [f2fs]
[  +0,000015]  RSP <ffff88046822fc28>
[  +0,004887] ---[ end trace 7745595bf1acf619 ]---

Vanilla 4.6.4-1-ARCH kernel. The only non-GPL module is nvidia. If I blacklist nvidia the bug persists.
Files on my root partition also seem to disappear from time to time. I frequently run `pacman -Qk` and reinstall the packages with missing files (/home and /var is in another partition, so the package files and my personal files are intact). But the system is still usable and surprisingly bug-free. Guess I'm just lucky.
Not sure if related, but shutdown always hangs.

I imagine that is a kernel bug, but since I didn't found any reference to it anywhere, I though about checking with the forum if I'm not doing anything weird. Anyone also has this problem? Any tips?
I assume there is no way to migrate to another fs without reinstalling everything, but if there is a way, I appreciate since I finally got everything tweaked just right I would hate to start over.

Offline

#2 2016-07-26 18:10:20

blitz
Banned
Registered: 2014-06-14
Posts: 32

Re: Kernel Bug with f2fs

... Files on my root partition also seem to disappear from time to time.
Similar problem occured on F2FS formatted SSD with  partition (/boot and /home reside elsewhere) on several occasions.
Data corruption on SSD leading to stopping booting with [DEPENDENCY FAIL] as result of random files loss.

On the last occasion, it was where prolonged heavy disk I/O activity while compiling stuff, using 7.5GB RAM and 10.5 out of 16GB /swapfile.
Swap file resides on SSD. There is mention in Arch wiki about particular problem with F2FS and swap files.

Files disappear only after reboot and it's necessary to run fsck which does not recovers files. Instead, it shows incurable errors.

Last edited by blitz (2016-07-26 18:11:39)

Offline

#3 2016-07-28 20:55:31

Bolche
Member
Registered: 2013-07-28
Posts: 10

Re: Kernel Bug with f2fs

Apparently it is fixed on kernel 4.8.
https://git.kernel.org/cgit/linux/kerne … 1b71ce29ef
Will try and report.

Last edited by Bolche (2016-07-28 21:13:30)

Offline

Board footer

Powered by FluxBB