public inbox for linux-f2fs-devel@lists.sourceforge.net
 help / color / mirror / Atom feed
* [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
@ 2024-02-08  9:09 bugzilla-daemon
  2024-02-08  9:11 ` [f2fs-dev] [Bug 218471] " bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-08  9:09 UTC (permalink / raw)
  To: linux-f2fs-devel

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

            Bug ID: 218471
           Summary: F2FS fails to mount rw at boot with "invalid zstd
                    compress level: 6"
           Product: File System
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: high
          Priority: P3
         Component: f2fs
          Assignee: filesystem_f2fs@kernel-bugs.kernel.org
          Reporter: dhya@picorealm.net
        Regression: No

Using Debian 12.5 "Bookworm" and updated to most-recent stable release kernel
"linux-image-6.1.0-18-amd64" which changelog says:
  linux-signed-amd64 (6.1.76+1) bookworm; urgency=medium
  * Sign kernel from linux 6.1.76-1

When it boots the f2fs filesystem fails to mount read-write and the boot
journal shows:
  kernel: F2FS-fs (nvme0n1p6): invalid zstd compress level: 6

This is the fstab entry for the corresponding partition:
  UUID=XXXXXXXXXXX   /   f2fs   
compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime   0       1

Under the previous kernel the partition correctly mounts and the 'mount'
command shows:
  /dev/nvme0n1p6 on / type f2fs
(rw,relatime,lazytime,background_gc=on,gc_merge,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,compress_algorithm=zstd:6,compress_log_size=2,compress_chksum,compress_mode=fs,atgc,discard_unit=block,memory=normal)

I was able to remount the filesystem read-write with:
  sudo mount -o
remount,rw,relatime,lazytime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,compress_algorithm=lz4,compress_log_size=2,compress_mode=fs,atgc,discard_unit=block,memory=normal
/dev/nvme0n1p6 /

and from there was able to update /etc/default/grub to boot the previous
kernel:
  GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with
Linux 6.1.0-17-amd64"

I believe this bug may have been introduced with this patch: 
  https://www.spinics.net/lists/stable-commits/msg329957.html

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [f2fs-dev] [Bug 218471] F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
  2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
@ 2024-02-08  9:11 ` bugzilla-daemon
  2024-02-08 16:41 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-08  9:11 UTC (permalink / raw)
  To: linux-f2fs-devel

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

--- Comment #1 from Dhya Pacifica (dhya@picorealm.net) ---
The changelog for the Debian linux-image-6.1.0-18-amd64 kernel package lists:

    - f2fs: clean up i_compress_flag and i_compress_level usage
    - f2fs: convert to use bitmap API
    - f2fs: assign default compression level
    - f2fs: set the default compress_level on ioctl

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [f2fs-dev] [Bug 218471] F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
  2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
  2024-02-08  9:11 ` [f2fs-dev] [Bug 218471] " bugzilla-daemon
@ 2024-02-08 16:41 ` bugzilla-daemon
  2024-02-08 20:58 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-08 16:41 UTC (permalink / raw)
  To: linux-f2fs-devel

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

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Kernel Version|                            |6.1.76
         Regression|No                          |Yes

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [f2fs-dev] [Bug 218471] F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
  2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
  2024-02-08  9:11 ` [f2fs-dev] [Bug 218471] " bugzilla-daemon
  2024-02-08 16:41 ` bugzilla-daemon
@ 2024-02-08 20:58 ` bugzilla-daemon
  2024-02-09  1:42 ` bugzilla-daemon
  2024-02-13 13:52 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-08 20:58 UTC (permalink / raw)
  To: linux-f2fs-devel

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

--- Comment #2 from Salvatore Bonaccorso (carnil@debian.org) ---
regressions list report:
https://lore.kernel.org/regressions/ZcU3VCrt9VOpuFUq@eldamar.lan/T/#u

Debian downstream bugreport: https://bugs.debian.org/1063422

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [f2fs-dev] [Bug 218471] F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
  2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
                   ` (2 preceding siblings ...)
  2024-02-08 20:58 ` bugzilla-daemon
@ 2024-02-09  1:42 ` bugzilla-daemon
  2024-02-13 13:52 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-09  1:42 UTC (permalink / raw)
  To: linux-f2fs-devel

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

Jaegeuk Kim (jaegeuk@kernel.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaegeuk@kernel.org

--- Comment #3 from Jaegeuk Kim (jaegeuk@kernel.org) ---
Thanks. Let me check.

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [f2fs-dev] [Bug 218471] F2FS fails to mount rw at boot with "invalid zstd compress level: 6"
  2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
                   ` (3 preceding siblings ...)
  2024-02-09  1:42 ` bugzilla-daemon
@ 2024-02-13 13:52 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2024-02-13 13:52 UTC (permalink / raw)
  To: linux-f2fs-devel

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

Chao Yu (chao@kernel.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chao@kernel.org

--- Comment #4 from Chao Yu (chao@kernel.org) ---
(In reply to Dhya Pacifica from comment #0)
> Using Debian 12.5 "Bookworm" and updated to most-recent stable release
> kernel "linux-image-6.1.0-18-amd64" which changelog says:
>   linux-signed-amd64 (6.1.76+1) bookworm; urgency=medium
>   * Sign kernel from linux 6.1.76-1
> 
> When it boots the f2fs filesystem fails to mount read-write and the boot
> journal shows:
>   kernel: F2FS-fs (nvme0n1p6): invalid zstd compress level: 6
> 
> This is the fstab entry for the corresponding partition:
>   UUID=XXXXXXXXXXX   /   f2fs   
> compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime   0       1
> 
> Under the previous kernel the partition correctly mounts and the 'mount'
> command shows:
>   /dev/nvme0n1p6 on / type f2fs
> (rw,relatime,lazytime,background_gc=on,gc_merge,discard,no_heap,user_xattr,
> inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,
> mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,
> fsync_mode=posix,compress_algorithm=zstd:6,compress_log_size=2,
> compress_chksum,compress_mode=fs,atgc,discard_unit=block,memory=normal)
> 
> I was able to remount the filesystem read-write with:
>   sudo mount -o
> remount,rw,relatime,lazytime,background_gc=on,discard,no_heap,user_xattr,
> inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,
> active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,
> compress_algorithm=lz4,compress_log_size=2,compress_mode=fs,atgc,
> discard_unit=block,memory=normal /dev/nvme0n1p6 /
> 
> and from there was able to update /etc/default/grub to boot the previous
> kernel:
>   GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with
> Linux 6.1.0-17-amd64"
> 
> I believe this bug may have been introduced with this patch: 
>   https://www.spinics.net/lists/stable-commits/msg329957.html

Can you please try below fixes:

[PATCH 6.1] f2fs: add helper to check compression level
https://lore.kernel.org/linux-f2fs-devel/20240212160530.1017205-1-chao@kernel.org/T/#u

[PATCH] f2fs: compress: fix to check zstd compress level correctly in mount
option
https://lore.kernel.org/linux-f2fs-devel/20240212160818.1020903-1-chao@kernel.org/T/#u

-- 
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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-13 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-08  9:09 [f2fs-dev] [Bug 218471] New: F2FS fails to mount rw at boot with "invalid zstd compress level: 6" bugzilla-daemon
2024-02-08  9:11 ` [f2fs-dev] [Bug 218471] " bugzilla-daemon
2024-02-08 16:41 ` bugzilla-daemon
2024-02-08 20:58 ` bugzilla-daemon
2024-02-09  1:42 ` bugzilla-daemon
2024-02-13 13:52 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox