From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Chua Subject: Re: f2fs issue on linux-5.0.0-rc2 Date: Fri, 18 Jan 2019 22:47:19 +0800 Message-ID: References: <4ffd83a1-8599-5f39-1114-4f878dbfcc4e@huawei.com> <1ecee05b-4e6e-f916-514b-94d885670f39@codeaurora.org> <85fefeea-1ef3-fb32-6b54-923c1b79b174@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gkVQp-00073R-JG for linux-f2fs-devel@lists.sourceforge.net; Fri, 18 Jan 2019 14:47:39 +0000 Received: from mail-wm1-f51.google.com ([209.85.128.51]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1gkVQo-00FGQF-1b for linux-f2fs-devel@lists.sourceforge.net; Fri, 18 Jan 2019 14:47:39 +0000 Received: by mail-wm1-f51.google.com with SMTP id f188so4713202wmf.5 for ; Fri, 18 Jan 2019 06:47:37 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Chao Yu Cc: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net On Fri, Jan 18, 2019 at 10:21 PM Jeff Chua wrote: > > On Fri, Jan 18, 2019 at 4:56 PM Chao Yu wrote: > > > > On 2019/1/18 10:10, Ritesh Harjani wrote: > > > > > > On 1/17/2019 5:04 PM, Jeff Chua wrote: > > >> On Thu, Jan 17, 2019 at 7:33 PM Jeff Chua wrote: > > >>> On Thu, Jan 17, 2019 at 10:00 AM Chao Yu wrote: > > >>>> On 2019/1/16 20:57, Jeff Chua wrote: > > >>>>> This is on rpi3b+ running latest linux git pull, and root filesystem > > >>>>> is "read-only" ... > > >>>> Did you hit this issue after you upgrade kernel from lower one to 5.0? > > >>> No, it was ok. Works perfectly. > > >>> > > >>>> Why there are dirty data/node in readonly filesystem? > > >>> No idea. It's fresh boot up. > > >>> > > >>>> Could you try below commands to make sure where it actually crash? > > >>>> gdb f2fs.ko > > >>>> l *(f2fs_balance_fs_bg+0x26c/0x2a8) > > >>>> l *(f2fs_build_free_nids+0x394/0x510) > > >>> Ok, that will take a while. I'll need to revert back to pre-5.0 and > > >>> install gdb first and try to debug it. > > >> Oh, btw, there's no "f2fs.ko" ... f2fs is compiled as built-in instead > > >> of a module. > > > > > > you could also try using below script in kernel dir. > > > > > > ./scripts/faddr2line f2fs_balance_fs_bg+0x26c > > > > > > ./scripts/faddr2line f2fs_build_free_nids+0x394 > > > > That's correct, thanks for your help. ;) > > > PC is at f2fs_balance_fs_bg+0x26c/0x2a8 > LR is at f2fs_build_free_nids+0x394/0x510 > ./scripts/faddr2line vmlinux f2fs_balance_fs_bg+0x26c/0x2a8 > f2fs_balance_fs_bg+0x26c/0x2a8: > f2fs_balance_fs_bg at ??:? > ./scripts/faddr2line vmlinux f2fs_build_free_nids+0x394/0x510 > f2fs_build_free_nids+0x394/0x510: > f2fs_build_free_nids at ??:? > > Looks like I'm missing something. My rpi3 kernel is loaded zImage .. > # scripts/mkknlimg harch/arm/boot/zImage kernel7.img > > Or need to recompile kernel with debug symbols? recompiled with CONFIG_KALLSYMS=y CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y faddr2line still not showing any thing ... -- My best., Jeff