Re: [f2fs-dev] [PATCH] f2fs: fix null-ptr-deref in f2fs_submit_page_bio()

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/12 0:44, Ye Bin wrote: From: Ye Bin There's issue as follows when concurrently installing the f2fs.ko module and mounting the f2fs file system: KASAN: null-ptr-deref in range [0x0020-0x0027] RIP: 0010:__bio_alloc+0x2fb/0x6c0 [f2fs] Call Trace: f2fs_submit

Re: [f2fs-dev] [PATCH] fs/writeback: convert wbc_account_cgroup_owner to take a folio

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/1 6:58, Jaegeuk Kim wrote: On 09/26, Matthew Wilcox wrote: On Thu, Sep 26, 2024 at 04:01:21PM +0200, Pankaj Raghav (Samsung) wrote: Convert wbc_account_cgroup_owner() to take a folio instead of a page, and convert all callers to pass a folio directly except f2fs. Convert the page to

[f2fs-dev] [PATCH] f2fs: fix null-ptr-deref in f2fs_submit_page_bio()

2024-10-11 Thread Ye Bin
From: Ye Bin There's issue as follows when concurrently installing the f2fs.ko module and mounting the f2fs file system: KASAN: null-ptr-deref in range [0x0020-0x0027] RIP: 0010:__bio_alloc+0x2fb/0x6c0 [f2fs] Call Trace: f2fs_submit_page_bio+0x126/0x8b0 [f2fs] __get_me

[f2fs-dev] [PATCH] f2fs_io: support fadvice for read

2024-10-11 Thread Jaegeuk Kim via Linux-f2fs-devel
This adds a way to boost read performance by giving fadvise. Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 8fbad3c8e563..5b67a92e0947

[f2fs-dev] [PATCH] f2fs/004: add missing _fixed_by_kernel_commit line

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
The bug related to this regression testcase has been fixed by commit b2c160f4f3cf ("f2fs: atomic: fix to forbid dio in atomic_file"), let's add missing _fixed_by_kernel_commit line for this testcase. Cc: Jaegeuk Kim Cc: Daeho Jeong Signed-off-by: Chao Yu --- tests/f2fs/004 | 3 +++ 1 file chan

Re: [f2fs-dev] [PATCH v2] libf2fs: Fix calculation of usable segments for single

2024-10-11 Thread Jaegeuk Kim via Linux-f2fs-devel
On 10/10, Yonggil Song wrote: > There was a problem that did not subtract the super block area when > calculating > the usable segments for a single zoned device with a conventional zone. > This resulted in incorrect the overprovision and reserved area. > > <256MiB legacy block + zoned bloc

Re: [f2fs-dev] [PATCH v5] f2fs: introduce device aliasing file

2024-10-11 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/11 3:26, Daeho Jeong wrote: From: Daeho Jeong F2FS should understand how the device aliasing file works and support deleting the file after use. A device aliasing file can be created by mkfs.f2fs tool and it can map the whole device with an extrent, not using node blocks. The file sp