Re: [f2fs-dev] [PATCH] f2fs: fix to avoid NULL pointer dereference in f2fs_issue_flush()

From: Yuwei Guan
Date: Tue Jan 03 2023 - 20:54:16 EST


<patchwork-bot+f2fs@xxxxxxxxxx> 于2023年1月4日周三 01:04写道:
>
> Hello:
>
> This patch was applied to jaegeuk/f2fs.git (dev)
> by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:
>
> On Fri, 30 Dec 2022 23:43:32 +0800 you wrote:
> > With below two cases, it will cause NULL pointer dereference when
> > accessing SM_I(sbi)->fcc_info in f2fs_issue_flush().
> >
> > a) If kthread_run() fails in f2fs_create_flush_cmd_control(), it will
> > release SM_I(sbi)->fcc_info,
> >
> > - mount -o noflush_merge /dev/vda /mnt/f2fs
> > - mount -o remount,flush_merge /dev/vda /mnt/f2fs -- kthread_run() fails
> > - dd if=/dev/zero of=/mnt/f2fs/file bs=4k count=1 conv=fsync
> >
> > [...]
>
> Here is the summary with links:
> - [f2fs-dev] f2fs: fix to avoid NULL pointer dereference in f2fs_issue_flush()
> https://git.kernel.org/jaegeux/f2fs/c/b3d83066cbeb
>

Hi jeageuk,
There is a character error in patchwork configuration, :).
:s/jaegeux/jeageuk/g

> You are awesome, thank you!
> --
> Deet-doot-dot, I am a bot.
> https://korg.docs.kernel.org/patchwork/pwbot.html
>
>
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel