Skip to contentSkip to conversation

New: fsck seems unable to solve corruption

f2fs-dev [email protected] 2 participants 18 messages Apr 24, 2024 – May 28, 2024 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=218770

Bug ID: 218770
Summary: fsck seems unable to solve corruption
Product: File System
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: high
Priority: P3
Component: f2fs
Assignee: [email protected]
Reporter: [email protected]
Regression: No

After installing kernel 6.9rc5 it seems that all my f2fs partitions are corrupted, according to fsck. On boot the check-repair is always performed. I also tried running f2fs from a live usb (with kernel 6.6) but the problem is not solved. Even running fsck several times always finds problems.

I attach the output of fsck -f -d 1 on one of the partitions.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#1 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #1 from Guido ([email protected]) --- Created attachment 306205
--> https://bugzilla.kernel.org/attachment.cgi?id=306205&action=edit
fsck

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#2 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #2 from Artem S. Tashkinov ([email protected]) --- *** Bug 218769 has been marked as a duplicate of this bug. ***

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#3 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

Artem S. Tashkinov ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |ANSWERED

--- Comment #3 from Artem S. Tashkinov ([email protected]) ---

Quoted 1 line

Even running fsck several times always finds problems.

This looks like a f2fs fsck issue, not the kernel issue.

Please post here:

https://github.com/jaegeuk/f2fs-tools

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#4 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

Artem S. Tashkinov ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|ANSWERED                    |CODE_FIX
         Regression|No                          |Yes

--- Comment #4 from Artem S. Tashkinov ([email protected]) ---

Quoted 6 lines · Tor Vic

I can confirm the constant fsck issue, and it was fixed in my case by the following patch:

https://lore.kernel.org/linux-f2fs-devel/[email protected]/

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#5 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #5 from Guido ([email protected]) --- (In reply to Artem S. Tashkinov from comment #4)

Quoted 8 lines · Tor Vic
Quoted 6 lines

I can confirm the constant fsck issue, and it was fixed in my case by the following patch:

https://lore.kernel.org/linux-f2fs-devel/[email protected]/

I have 6.9.rc5 (dated 2024-04-21 on kernel.org) Is that patch already applied to it? If yes, it doesn't solve the bug.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#6 lore raw

Re: [f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

Quoted 11 lines · On 4/24/24 14:30, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #5 from Guido ([email protected]) --- (In reply to Artem S. Tashkinov from comment #4)

Quoted 7 lines · Tor Vic
Quoted 6 lines

I can confirm the constant fsck issue, and it was fixed in my case by the following patch:

Quoted 5 lines
Quoted 1 line

https://lore.kernel.org/linux-f2fs-devel/[email protected]/

I have 6.9.rc5 (dated 2024-04-21 on kernel.org) Is that patch already applied to it? If yes, it doesn't solve the bug.

No, not applied yet.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#8 lore raw

Re: [f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to a message not in the archive
Quoted 4 lines · guido iodice

Thank you.

For clarity, can you confirm that this is a false alarm and in fact there should be no corruption?

I'm not a developer, but my computer runs just fine with this patch applied since a week or so.

I didn't notice any data corruption or error messages in the log.

Quoted 36 lines

Best

------------------------
Guido Iodice

Il giorno mer 24 apr 2024 alle ore 14:40 Tor Vic <[email protected]> ha scritto:

Quoted 24 lines · On 4/24/24 14:30, [email protected] wrote:
Quoted 12 lines

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #5 from Guido ([email protected]) --- (In reply to Artem S. Tashkinov from comment #4)

Quoted 8 lines · Tor Vic
Quoted 6 lines

I can confirm the constant fsck issue, and it was fixed in my case by the following patch:

https://lore.kernel.org/linux-f2fs-devel/[email protected]/

Quoted 2 lines

I have 6.9.rc5 (dated 2024-04-21 on kernel.org) Is that patch already

applied

Quoted 2 lines

to it? If yes, it doesn't solve the bug.

No, not applied yet.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#9 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

Jaegeuk Kim ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Jaegeuk Kim ([email protected]) --- Thank you for the report. It seems I need to reapply that patch indeed.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#10 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #7 from Guido ([email protected]) --- (In reply to Jaegeuk Kim from comment #6)

Quoted 1 line

Thank you for the report. It seems I need to reapply that patch indeed.

Does rc6 contain the reapplied patch?

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#11 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #8 from Guido ([email protected]) --- The problem persists in the released version of kernel 6.9

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#12 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #9 from Jaegeuk Kim ([email protected]) ---
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev&id=b864ddb57eb00c4ea1e6801c7b2f70f1db2a7f4b

is going to be merged in upcoming weeks and LTS probably will pick up later given the tag.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#13 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #10 from Guido ([email protected]) ---
I applied the patch to 6.9 and it works fine. I am a bit surprised that it is not already applied to 6.9.1.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#14 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #11 from Jaegeuk Kim ([email protected]) --- The patch is in the next pull request.
https://patchwork.kernel.org/project/f2fs/patch/[email protected]/

Once Linus pulled it, I can ask Greg to queue it in -stable.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#15 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #12 from Guido ([email protected]) --- (In reply to Jaegeuk Kim from comment #11)

Quoted 4 lines

The patch is in the next pull request.
https://patchwork.kernel.org/project/f2fs/patch/[email protected]/

Once Linus pulled it, I can ask Greg to queue it in -stable.

Thank you!

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#16 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #13 from Jaegeuk Kim ([email protected]) --- 6.9.2 will have the fix.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/?id=b863827181d80ae33f822dc74d32e377737858c2

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#17 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #14 from Guido ([email protected]) --- Thank you!

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#18 lore raw

[f2fs-dev] [Bug 218770] fsck seems unable to solve corruption

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=218770

--- Comment #15 from Jaegeuk Kim ([email protected]) --- correction; 6.9.3-rc1 has the fix.

Signature · 9 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel