Files
linux/fs/ocfs2
Pan Bian 164f7e5867 ocfs2: fix potential use after free
ocfs2_get_dentry() calls iput(inode) to drop the reference count of
inode, and if the reference count hits 0, inode is freed.  However, in
this function, it then reads inode->i_generation, which may result in a
use after free bug.  Move the put operation later.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 781f200cb7a("ocfs2: Remove masklog ML_EXPORT.")
Signed-off-by: Pan Bian <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2018-11-30 14:56:15 -08:00
..
2017-09-06 17:27:24 -07:00
2018-10-26 16:25:18 -07:00
…
…
…
2018-11-30 14:56:15 -08:00
…
2018-01-31 17:18:35 -08:00
2018-01-31 17:18:35 -08:00
2018-08-17 16:20:27 -07:00
2018-06-07 17:34:33 -07:00
…
2015-12-29 17:45:49 -08:00
…
…
…
2018-06-12 16:19:22 -07:00
…
2016-05-12 15:52:50 -07:00