search for: ext3_add_nondir

Displaying 1 result from an estimated 1 matches for "ext3_add_nondir".

2002 Dec 15
0
[patch] ext3 use-after-free bugfix
...a new file/directory to the filesystem and encounters space or inode exhaustion. The results of this are unpredictable. Usually, nothing happens. But it can cause random memory corruption on SMP, and the kernel will crash if compiled for "debug memory allocations". The problem is that ext3_add_nondir() will do an iput() of the inode on error (which frees the inode) but we then run ext3_mark_inode_dirty() against it. Fix it so that we only run ext3_mark_inode_dirty() if the inode was successfully instantiated. fs/ext3/namei.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions...