Re: [f2fs-dev] [PATCH] f2fs: Require FMODE_WRITE for atomic write ioctls

2024-08-07 Thread Chao Yu
On 2024/8/6 22:07, Jann Horn wrote: The F2FS ioctls for starting and committing atomic writes check for inode_owner_or_capable(), but this does not give LSMs like SELinux or Landlock an opportunity to deny the write access - if the caller's FSUID matches the inode's UID, inode_owner_or_capable()

[f2fs-dev] [PATCH] f2fs:Add a threshold for the FG_GC of zone UFS

2024-08-07 Thread Liao Yuanhong via Linux-f2fs-devel
Right now, when a zone UFS device gets close to running out of space and starts FG_GC, the system continues to execute FG_GC even if there is a few dirty space available for reclamation. This can make everything else slow down or just hang. Since the function for calculating remaining space operat

[f2fs-dev] [PATCH v4 3/4] f2fs: atomic: fix to truncate pagecache before on-disk metadata truncation

2024-08-07 Thread Chao Yu
We should always truncate pagecache while truncating on-disk data. Fixes: a46bebd502fe ("f2fs: synchronize atomic write aborts") Signed-off-by: Chao Yu --- v4: - don't reset i_size to zero. fs/f2fs/file.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c ind

Re: [f2fs-dev] [linux-next:master] [fs] cdc4ad36a8: kernel_BUG_at_include/linux/page-flags.h

2024-08-07 Thread Christian Brauner
On Wed, Aug 07, 2024 at 04:46:15AM GMT, Matthew Wilcox wrote: > On Tue, Aug 06, 2024 at 10:26:17PM +0800, kernel test robot wrote: > > kernel test robot noticed "kernel_BUG_at_include/linux/page-flags.h" on: > > > > commit: cdc4ad36a871b7ac43fcc6b2891058d332ce60ce ("fs: Convert > > aops->write_be

Re: [f2fs-dev] [linux-next:master] [fs] cdc4ad36a8: kernel_BUG_at_include/linux/page-flags.h

2024-08-07 Thread Ryan Roberts
On 07/08/2024 04:46, Matthew Wilcox wrote: > On Tue, Aug 06, 2024 at 10:26:17PM +0800, kernel test robot wrote: >> kernel test robot noticed "kernel_BUG_at_include/linux/page-flags.h" on: >> >> commit: cdc4ad36a871b7ac43fcc6b2891058d332ce60ce ("fs: Convert >> aops->write_begin to take a folio") >>