2006-03-31 13:52:50

by Kirill Korotaev

[permalink] [raw]
Subject: [PATCH] wrong error path in dup_fd() leading to oopses in RCU

--- ./kernel/fork.c.fsfix 2006-03-29 11:42:01.000000000 +0400
+++ ./kernel/fork.c 2006-03-29 19:20:18.000000000 +0400
@@ -758,7 +758,7 @@ out_release:
free_fdset (new_fdt->open_fds, new_fdt->max_fdset);
free_fd_array(new_fdt->fd, new_fdt->max_fds);
kmem_cache_free(files_cachep, newf);
- goto out;
+ return NULL;
}

static int copy_files(unsigned long clone_flags, struct task_struct * tsk)


Attachments:
diff-ms-files-fix-20060329 (401.00 B)