Bug 202495
Summary: | oops in fs/f2fs/checkpoint.c:150 f2fs_is_valid_blkaddr | ||
---|---|---|---|
Product: | File System | Reporter: | JWalker (jw7779) |
Component: | f2fs | Assignee: | Default virtual assignee for f2fs (filesystem_f2fs) |
Status: | RESOLVED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | chao, hacks+kernel, phiber2000 |
Priority: | P1 | ||
Hardware: | ARM | ||
OS: | Linux | ||
Kernel Version: | 4.14.97 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | attachment-6765-0.html |
Description
JWalker
2019-02-02 15:48:32 UTC
Hi, Do you pick up 4.14 kernel from AOSP, or just kernel.org? did you try fsck on this image? Hi Chao, The kernal code was taken from the raspberry pi git repo, and then the incremental patches applied. Yes, fsck has been applied. Please see below the output of the both volumes. Please let me know if you require any more info. Regards John sudo fsck -t f2fs /dev/sdc3 fsck from util-linux 2.31.1 Info: [/dev/sdc3] Disk Model: USB3.0 CRW -SD1.00 Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 4194304 (2048 MB) Info: MKFS version "Linux version 4.13.0-43-generic (buildd@lgw01-amd64-041) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #48~16.04.1-Ubuntu SMP Thu May 17 13:00:11 UTC 2018" Info: FSCK version from "Linux version 4.15.0-43-generic (buildd@lgw01-amd64-001) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018" to "Linux version 4.15.0-45-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019" Info: superblock features = 0 : Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000 Info: total FS sectors = 4194304 (2048 MB) Info: CKPT version = 15a2c Info: checkpoint state = 41 : crc unmount [FSCK] Unreachable nat entries [Ok..] [0x0] [FSCK] SIT valid block bitmap checking [Ok..] [FSCK] Hard link checking for regular file [Ok..] [0x1] [FSCK] valid_block_count matching with CP [Ok..] [0x87a0] [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x107b] [FSCK] valid_node_count matcing with CP (nat lookup) [Ok..] [0x107b] [FSCK] valid_inode_count matched with CP [Ok..] [0x1073] [FSCK] free segment_count matched with CP [Ok..] [0x296] [FSCK] next block offset is free [Ok..] [FSCK] fixing SIT types [FSCK] other corrupted bugs [Ok..] Done. sudo fsck -t f2fs /dev/sdc4 fsck from util-linux 2.31.1 Info: [/dev/sdc4] Disk Model: USB3.0 CRW -SD1.00 Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 3055616 (1492 MB) Info: MKFS version "Linux version 4.13.0-43-generic (buildd@lgw01-amd64-041) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #48~16.04.1-Ubuntu SMP Thu May 17 13:00:11 UTC 2018" Info: FSCK version from "Linux version 4.15.0-43-generic (buildd@lgw01-amd64-001) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018" to "Linux version 4.15.0-45-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019" Info: superblock features = 0 : Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000 Info: total FS sectors = 3055616 (1492 MB) Info: CKPT version = b Info: checkpoint state = 45 : crc compacted_summary unmount [FSCK] Unreachable nat entries [Ok..] [0x0] [FSCK] SIT valid block bitmap checking [Ok..] [FSCK] Hard link checking for regular file [Ok..] [0x0] [FSCK] valid_block_count matching with CP [Ok..] [0x2] [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x1] [FSCK] valid_node_count matcing with CP (nat lookup) [Ok..] [0x1] [FSCK] valid_inode_count matched with CP [Ok..] [0x1] [FSCK] free segment_count matched with CP [Ok..] [0x2d9] [FSCK] next block offset is free [Ok..] [FSCK] fixing SIT types [FSCK] other corrupted bugs [Ok..] Done. On Fri, 15 Feb 2019 at 08:28, <bugzilla-daemon@bugzilla.kernel.org> wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=202495 > > Chao Yu (chao@kernel.org) changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |chao@kernel.org > > --- Comment #1 from Chao Yu (chao@kernel.org) --- > Hi, > > Do you pick up 4.14 kernel from AOSP, or just kernel.org? did you try fsck on > this image? > > -- > You are receiving this mail because: > You reported the bug. (In reply to JWalker from comment #2) > Hi Chao, > > The kernal code was taken from the raspberry pi git repo, and then the > incremental patches applied. What patches do you applied? some fixing patches? > > Yes, fsck has been applied. Please see below the output of the both volumes. > > Please let me know if you require any more info. ... > [FSCK] Unreachable nat entries [Ok..] [0x0] > [FSCK] SIT valid block bitmap checking [Ok..] > [FSCK] Hard link checking for regular file [Ok..] [0x1] > [FSCK] valid_block_count matching with CP [Ok..] [0x87a0] > [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x107b] > [FSCK] valid_node_count matcing with CP (nat lookup) [Ok..] [0x107b] > [FSCK] valid_inode_count matched with CP [Ok..] [0x1073] > [FSCK] free segment_count matched with CP [Ok..] [0x296] > [FSCK] next block offset is free [Ok..] > [FSCK] fixing SIT types > [FSCK] other corrupted bugs [Ok..] I didn't see any corruption there, does this image still panic your kernel? Created attachment 281189 [details] attachment-6765-0.html Hi Chao, I’ve applied all incremental patches up to, including 4.14.101. I can also confirm that my build is a %100 match between the .xz file on kernel.org ( with respect to fs/* ). Yes , totally repeatable. Actually it appears to panic about 8 times on reboot. Also the panic is not kernel version specific as I’ve tried multiple kernel versions. Same result. I’ve also reformatted a new sdcard, tar’d up all the data on the old card, and transferred to the new one, and all is fine. One other separate issue, should the /sys/fs/f2fs/mmcblkXpY/lifetime_write_kbytes work in 4.14? Mine doesn’t, but I have seen it work in Ubuntu 18.4 with 4.15 kernel. On reboot values return to 0. Hope this helps John On Mon, 18 Feb 2019 at 01:30, <bugzilla-daemon@bugzilla.kernel.org> wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=202495 > > --- Comment #3 from Chao Yu (chao@kernel.org) --- > (In reply to JWalker from comment #2) > > Hi Chao, > > > > The kernal code was taken from the raspberry pi git repo, and then the > > incremental patches applied. > > What patches do you applied? some fixing patches? > > > > > Yes, fsck has been applied. Please see below the output of the both > volumes. > > > > Please let me know if you require any more info. > > ... > > > [FSCK] Unreachable nat entries [Ok..] [0x0] > > [FSCK] SIT valid block bitmap checking [Ok..] > > [FSCK] Hard link checking for regular file [Ok..] [0x1] > > [FSCK] valid_block_count matching with CP [Ok..] [0x87a0] > > [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x107b] > > [FSCK] valid_node_count matcing with CP (nat lookup) [Ok..] [0x107b] > > [FSCK] valid_inode_count matched with CP [Ok..] [0x1073] > > [FSCK] free segment_count matched with CP [Ok..] [0x296] > > [FSCK] next block offset is free [Ok..] > > [FSCK] fixing SIT types > > [FSCK] other corrupted bugs [Ok..] > > I didn't see any corruption there, does this image still panic your kernel? > > -- > You are receiving this mail because: > You reported the bug. The issue was observed in the kernel version 4.14.98 an is still present in 4.14.106. We successfully backported a commit of Chao Yu from 4.19 to resolve the issue. Maybe it should be considered to be done here in the kernel.org upstream, too. Further information: https://github.com/raspberrypi/linux/issues/2894 Was fixed with a backported patch ("f2fs: fix to skip verifying block address for non-regular inode") Close it. (In reply to Chao Yu from comment #6) > Was fixed with a backported patch ("f2fs: fix to skip verifying block > address for non-regular inode") Maybe my mistake, but I can't find the backported patch in the v4.14.y branch. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-4.14.y&qt=grep&q=f2fs Could you just check that? It's here, it should be merged in AOSP as well. :) https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git/commit/?h=linux-4.14.y&id=3cc9792fa1ea67bbfdaee28737e37f9045976b76 |