[f2fs-dev] [PATCH] f2fs: fix deadlock in f2f2_add_dentry

2023-08-24 Thread Lizhi Xu via Linux-f2fs-devel
There are two paths: 1. f2fs_add_dentry->f2fs_down_read->f2fs_add_inline_entry->down_write-> up_write->f2fs_up_read 2. f2fs_add_dentry->f2fs_add_regular_entry->down_write-> f2fs_init_inode_metadata->f2fs_down_read->f2fs_up_read->up_write Force order lock to read->write. Signed-off-by: Lizhi

Re: [f2fs-dev] [PATCH] f2fs: fix deadlock in f2f2_add_dentry

2023-08-25 Thread Lizhi Xu via Linux-f2fs-devel
On Fri, 25 Aug 2023 18:41:38, [email protected] wrote: > Can you please check below patch? it has fixed reported issue. > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev&id=5c13e2388bf3426fd69a89eb46e50469e9624e56 > > Feedback from syzbot: > > https://lore.kernel.or