]> git.neil.brown.name Git - history.git/commit
[PATCH] ext3 use-after-free bugfix
authorAndrew Morton <akpm@digeo.com>
Sat, 21 Dec 2002 09:08:07 +0000 (01:08 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Dec 2002 09:08:07 +0000 (01:08 -0800)
commitdd2f11609f29465b4bd5b4ed638e0fe7875c1e96
treea782a0731efcf284f7e9868ba92534058b8a5f0e
parent02d0c3dfd000b45e0bc18a0ed5e2c010b7289f0d
[PATCH] ext3 use-after-free bugfix

If ext3_add_nondir() fails it will do an iput() of the inode.  But we
continue to run ext3_mark_inode_dirty() against the potentially-freed
inode.  This oopses when slab poisoning is enabled.

Fix it so that we only run ext3_mark_inode_dirty() if the inode was
successfully instantiated.
fs/ext3/namei.c