From: KARBOWSKI Piotr Subject: f2fs corruption due to f2fs_gc crash. Date: Thu, 19 Jan 2017 18:33:00 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cUGaE-0002TV-OZ for linux-f2fs-devel@lists.sourceforge.net; Thu, 19 Jan 2017 17:33:10 +0000 Received: from mail-lf0-f43.google.com ([209.85.215.43]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1cUGaD-0002HL-LQ for linux-f2fs-devel@lists.sourceforge.net; Thu, 19 Jan 2017 17:33:10 +0000 Received: by mail-lf0-f43.google.com with SMTP id k86so41808854lfi.0 for ; Thu, 19 Jan 2017 09:33:09 -0800 (PST) Received: from 127.0.0.1 (host-81-190-232-7.dynamic.mm.pl. [81.190.232.7]) by smtp.googlemail.com with ESMTPSA id 87sm2219174lft.27.2017.01.19.09.33.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 09:33:02 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net Hello, I am running a system with a microSD card, on the top of which a dmcrypt luks is used, and f2fs on that. Every time I boot my system, fsck takes a fair amount of time to fix the filesystem. Shortly after boot I can spot a f2fs_gc crash (I suppose it's crash) in the kernel log. [ 0.000000] CPU: 4 PID: 2286 Comm: f2fs_gc-253:6 Not tainted 4.9.4 #1 [ 0.000000] Hardware name: LENOVO 20AUA1FFPB/20AUA1FFPB, BIOS J4ET87WW(1.87) 09/21/2016 [ 0.000000] 0000000000000000 ffffffff81452dd9 0000000000000000 0000000000000000 [ 0.000000] ffffffff810b1099 0000000000000000 ffffc90005113da0 0000000000000007 [ 0.000000] 0000000000000006 0000000000000006 ffff880213bc8000 ffffffff813ef8a3 [ 0.000000] Call Trace: [ 0.000000] [] ? dump_stack+0x46/0x5d [ 0.000000] [] ? __warn+0xb9/0xe0 [ 0.000000] [] ? do_garbage_collect+0xb03/0xbe0 [ 0.000000] [] ? dequeue_task_fair+0x5ab/0x1300 [ 0.000000] [] ? f2fs_gc+0x15f/0x4b0 [ 0.000000] [] ? gc_thread_func+0x287/0x360 [ 0.000000] [] ? __schedule+0x173/0x5f0 [ 0.000000] [] ? wake_atomic_t_function+0x50/0x50 [ 0.000000] [] ? f2fs_gc+0x4b0/0x4b0 [ 0.000000] [] ? do_group_exit+0x2e/0xa0 [ 0.000000] [] ? kthread+0xb9/0xd0 [ 0.000000] [] ? kthread_park+0x50/0x50 [ 0.000000] [] ? ret_from_fork+0x22/0x30 [ 0.000000] ---[ end trace c7ec9ea0d14d95b3 ]--- [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 2286 at fs/f2fs/gc.c:866 do_garbage_collect+0xb03/0xbe0 [ 0.000000] Modules linked in: ctr ccm algif_skcipher af_alg ipt_MASQUERADE iptable_nat mmc_block arc4 rtsx_pci_sdmmc mmc_core snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iwlmvm mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer iwlwifi cfg80211 rtsx_pci mfd_core coretemp kvm_intel thinkpad_acpi snd soundcore rfkill [ 0.000000] CPU: 0 PID: 2286 Comm: f2fs_gc-253:6 Tainted: G W 4.9.4 #1 [ 0.000000] Hardware name: LENOVO 20AUA1FFPB/20AUA1FFPB, BIOS J4ET87WW(1.87) 09/21/2016 [ 0.000000] 0000000000000000 ffffffff81452dd9 0000000000000000 0000000000000000 [ 0.000000] ffffffff810b1099 0000000000000000 ffffc90005113da0 0000000000000008 [ 0.000000] 0000000000000007 0000000000000007 ffff880213bc8000 ffffffff813ef8a3 [ 0.000000] Call Trace: [ 0.000000] [] ? dump_stack+0x46/0x5d [ 0.000000] [] ? __warn+0xb9/0xe0 [ 0.000000] [] ? do_garbage_collect+0xb03/0xbe0 [ 0.000000] [] ? dequeue_task_fair+0x5ab/0x1300 [ 0.000000] [] ? f2fs_gc+0x15f/0x4b0 [ 0.000000] [] ? gc_thread_func+0x287/0x360 [ 0.000000] [] ? __schedule+0x173/0x5f0 [ 0.000000] [] ? wake_atomic_t_function+0x50/0x50 [ 0.000000] [] ? f2fs_gc+0x4b0/0x4b0 [ 0.000000] [] ? do_group_exit+0x2e/0xa0 [ 0.000000] [] ? kthread+0xb9/0xd0 [ 0.000000] [] ? kthread_park+0x50/0x50 [ 0.000000] [] ? ret_from_fork+0x22/0x30 [ 0.000000] ---[ end trace c7ec9ea0d14d95b4 ]--- I had this on kernel 4.8 and 4.9. I have another system, where I also use f2fs over dmcrypt, but on ssd not microSD card and I see no problem there. Could you please comment on this? -- Piotr. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot