Re: [PATCH] jffs2: Fix use-after-free bug in jffs2_iget()'s error handling path

2017-09-21 Thread Richard Weinberger
On Thu, Sep 21, 2017 at 6:00 PM, Jake Daryll Obina wrote: > If jffs2_iget() fails for a newly-allocated inode, jffs2_do_clear_inode() > can get called twice in the error handling path, the first call in > jffs2_iget() itself and the second through iget_failed(). This can result > to a use-after-fr

[PATCH] jffs2: Fix use-after-free bug in jffs2_iget()'s error handling path

2017-09-21 Thread Jake Daryll Obina
If jffs2_iget() fails for a newly-allocated inode, jffs2_do_clear_inode() can get called twice in the error handling path, the first call in jffs2_iget() itself and the second through iget_failed(). This can result to a use-after-free error in the second jffs2_do_clear_inode() call, such as shown b