Re: [f2fs-dev] A null-ptr-deref bug in f2fs_write_end_io

2023-05-22 Thread Chao Yu
On 2023/5/22 22:20, butt3rflyh4ck wrote: I have tested the patch, it works fine. Thank you, I'd like to add below tag in the patch if you don't mind. Tested-by: butt3rflyh4ck Thanks, Regards, butt3rflyh4ck. On Mon, May 22, 2023 at 8:44 PM Chao Yu wrote: On 2023/5/22 11:58,

Re: [f2fs-dev] A null-ptr-deref bug in f2fs_write_end_io

2023-05-22 Thread butt3rflyh4ck
I have tested the patch, it works fine. Regards, butt3rflyh4ck. On Mon, May 22, 2023 at 8:44 PM Chao Yu wrote: > > On 2023/5/22 11:58, butt3rflyh4ck wrote: > > OK, the attachment is a reproducer. > > Thank you! > > I've figured out a patch, could you please have a try w/ this patch? > >

Re: [f2fs-dev] A null-ptr-deref bug in f2fs_write_end_io

2023-05-22 Thread Chao Yu
On 2023/5/22 11:58, butt3rflyh4ck wrote: OK, the attachment is a reproducer. Thank you! I've figured out a patch, could you please have a try w/ this patch? https://lore.kernel.org/linux-f2fs-devel/20230522124203.3838360-1-c...@kernel.org/ Thanks, Regards. butt3rflyh4ck. On Fri, May

Re: [f2fs-dev] A null-ptr-deref bug in f2fs_write_end_io

2023-05-19 Thread Chao Yu
Hi, Thanks for the report, it will be helpful if you can provide a reproducer. On 2023/5/19 15:13, butt3rflyh4ck wrote: Hi, there is a null-ptr-deref bug in f2fs_write_end_io in fs/f2fs/data.c, I reproduce it in the latest kernel too. #Quick description When a thread always calls

[f2fs-dev] A null-ptr-deref bug in f2fs_write_end_io

2023-05-19 Thread butt3rflyh4ck
Hi, there is a null-ptr-deref bug in f2fs_write_end_io in fs/f2fs/data.c, I reproduce it in the latest kernel too. #Quick description When a thread always calls F2FS_IOC_RESIZE_FS to resize fs, if resize fs is failed, f2fs kernel thread would invoke callback function to update f2fs io info, it