fork.c (0464ac9ebd90cfd5792d3c1158af848281b7eb09) | fork.c (04ec93fe9bc98e3bd8560f79f56fed66dfae40d5) |
---|---|
1/* 2 * linux/kernel/fork.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 */ 6 7/* 8 * 'fork.c' contains the help-routines for the 'fork' system call --- 991 unchanged lines hidden (view full) --- 1000 if (retval < 0) 1001 goto bad_fork_free; 1002 1003 /* 1004 * If multiple threads are within copy_process(), then this check 1005 * triggers too late. This doesn't hurt, the check is only there 1006 * to stop root fork bombs. 1007 */ | 1/* 2 * linux/kernel/fork.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 */ 6 7/* 8 * 'fork.c' contains the help-routines for the 'fork' system call --- 991 unchanged lines hidden (view full) --- 1000 if (retval < 0) 1001 goto bad_fork_free; 1002 1003 /* 1004 * If multiple threads are within copy_process(), then this check 1005 * triggers too late. This doesn't hurt, the check is only there 1006 * to stop root fork bombs. 1007 */ |
1008 retval = -EAGAIN; |
|
1008 if (nr_threads >= max_threads) 1009 goto bad_fork_cleanup_count; 1010 1011 if (!try_module_get(task_thread_info(p)->exec_domain->module)) 1012 goto bad_fork_cleanup_count; 1013 1014 if (p->binfmt && !try_module_get(p->binfmt->module)) 1015 goto bad_fork_cleanup_put_domain; --- 715 unchanged lines hidden --- | 1009 if (nr_threads >= max_threads) 1010 goto bad_fork_cleanup_count; 1011 1012 if (!try_module_get(task_thread_info(p)->exec_domain->module)) 1013 goto bad_fork_cleanup_count; 1014 1015 if (p->binfmt && !try_module_get(p->binfmt->module)) 1016 goto bad_fork_cleanup_put_domain; --- 715 unchanged lines hidden --- |