Re: [f2fs-dev] [syzbot] [f2fs?] WARNING in rcu_sync_dtor

2024-08-01 Thread Dave Chinner via Linux-f2fs-devel
On Mon, Jul 29, 2024 at 03:27:21PM +0200, Jan Kara wrote: > Also as the "filesystem shutdown" is spreading across multiple filesystems, > I'm playing with the idea that maybe we could lift a flag like this to VFS > so that we can check it in VFS paths and abort some operations early. I've been th

[f2fs-dev] [PATCH] f2fs-tools: reduce overprov_segment_count set times

2024-08-01 Thread zhangxirui via Linux-f2fs-devel
If overprov_segment_count < rsvd_segment_count will set_cp(overprov_segment_count) twice, reduce it. Signed-off-by: zhangxirui --- mkfs/f2fs_format.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index e26a513..794ced5 100

[f2fs-dev] [PATCH] f2fs: avoid unused block when dio write in LFS mode

2024-08-01 Thread Daejun Park
This patch addresses the problem that when using LFS mode, unused blocks may occur in f2fs_map_blocks() during block allocation for dio writes. If a new section is allocated during block allocation, it will not be included in the map struct by map_is_mergeable() if the LBA of the allocated block i

[f2fs-dev] [PATCH] f2fs: file: add checks to f2fs_ioc_flush_device()

2024-08-01 Thread Roman Smirnov
If invalid data is copied from user space and if GET_SEGNO() returns NULL_SEGNO an overflow is possible. Add checks for invalid values. Found by Linux Verification Center (linuxtesting.org) with Svace. Signed-off-by: Roman Smirnov --- fs/f2fs/file.c | 3 +++ 1 file changed, 3 insertions(+) di