Re: [f2fs-dev] [RFC PATCH] f2fs: don't set SBI_QUOTA_NEED_REPAIR flag if receive SIGKILL

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/27 14:22, wangzijie wrote: Thread A -dquot_initialize -dqget -f2fs_dquot_acquire -v2_read_dquot -qtree_read_dquot -find_tree_dqentry -f2fs_quota_read -read_cache_page_gfp -do_read_cache_folio -fiemap_read_folio -folio_wait

Re: [f2fs-dev] [PATCH v2] f2fs: Do not check the FI_DIRTY_INODE flag when umounting a ro fs.

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/29 0:54, Julian Sun wrote: Hi, all. Recently syzbot reported a bug as following: kernel BUG at fs/f2fs/inode.c:896! CPU: 1 UID: 0 PID: 5217 Comm: syz-executor605 Not tainted 6.11.0-rc4-syzkaller-00033-g872cf28b8df9 #0 RIP: 0010:f2fs_evict_inode+0x1598/0x15c0 fs/f2fs/inode.c:896 Call

[f2fs-dev] [PATCH v6.1] f2fs: fix to truncate preallocated blocks in f2fs_file_open()

2024-09-02 Thread Shivani Agarwal via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 298b1e4182d657c3e388adcc29477904e9600ed5 ] chenyuwen reports a f2fs bug as below: Unable to handle kernel NULL pointer dereference at virtual address 0011 fscrypt_set_bio_crypt_ctx+0x78/0x1e8 f2fs_grab_read_bio+0x78/0x208 f2fs_submit_page_read+0x4

Re: [f2fs-dev] [PATCH] f2fs: prevent atomic file from being dirtied before commit

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
On 2024/8/27 4:23, Daeho Jeong wrote: From: Daeho Jeong Keep atomic file clean while updating and make it dirtied during commit in order to avoid unnecessary and excessive inode updates in the previous fix. Fixes: 4bf78322346f ("f2fs: mark inode dirty for FI_ATOMIC_COMMITTED flag") Signed-off-

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

2024-09-02 Thread Chao Yu via Linux-f2fs-devel
The bug related to this regression testcase has been fixed by commit b40a2b003709 ("f2fs: use meta inode for GC of 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/003 | 3 +++ 1 file changed,

[f2fs-dev] [PATCH v6.1] f2fs: fix to truncate preallocated blocks in f2fs_file_open()

2024-09-02 Thread Shivani Agarwal via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 298b1e4182d657c3e388adcc29477904e9600ed5 ] chenyuwen reports a f2fs bug as below: Unable to handle kernel NULL pointer dereference at virtual address 0011 fscrypt_set_bio_crypt_ctx+0x78/0x1e8 f2fs_grab_read_bio+0x78/0x208 f2fs_submit_page_read+0x4

Re: [f2fs-dev] [PATCH v2] f2fs: Do not check the FI_DIRTY_INODE flag when umounting a ro fs.

2024-09-02 Thread Julian Sun
On Mon, 2024-09-02 at 16:13 +0800, Chao Yu wrote: > > On 2024/8/29 0:54, Julian Sun wrote: > > > > Hi, all. > > > > > > > > Recently syzbot reported a bug as following: > > > > > > > > kernel BUG at fs/f2fs/inode.c:896! > > > > CPU: 1 UID: 0 PID: 5217 Comm: syz-executor605 Not tainted > > > > 6.1

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

2024-09-02 Thread Zorro Lang
On Mon, Sep 02, 2024 at 06:18:44PM +0800, Chao Yu wrote: > The bug related to this regression testcase has been fixed by commit > b40a2b003709 ("f2fs: use meta inode for GC of atomic file"), let's > add missing _fixed_by_kernel_commit line for this testcase. > > Cc: Jaegeuk Kim > Cc: Daeho Jeong