Commit 661d9067 authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

WARNING: suspect code indent for conditional statements (16, 25)

#48: FILE: fs/exec.c:1796:
+		if (core_limit == 0) {
+			 /*

WARNING: line over 80 characters
#57: FILE: fs/exec.c:1805:
+			  * but it runs as root, and can do lots of stupid things

WARNING: line over 80 characters
#58: FILE: fs/exec.c:1806:
+			  * Note that we use task_tgid_vnr here to grab the pid of the

WARNING: line over 80 characters
#59: FILE: fs/exec.c:1807:
+			  * process group leader.  That way we get the right pid if a thread

total: 0 errors, 4 warnings, 59 lines checked

./patches/exec-make-do_coredump-more-resilient-to-recursive-crashes-v9.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 0f7c9b6f
...@@ -1816,11 +1816,13 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs) ...@@ -1816,11 +1816,13 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
* way to catch recursive crashes. We can still crash * way to catch recursive crashes. We can still crash
* if the core_pattern binary sets RLIM_CORE = !0 * if the core_pattern binary sets RLIM_CORE = !0
* but it runs as root, and can do lots of stupid things * but it runs as root, and can do lots of stupid things
* Note that we use task_tgid_vnr here to grab the pid of the * Note that we use task_tgid_vnr here to grab the pid
* process group leader. That way we get the right pid if a thread * of the process group leader. That way we get the
* in a multi-threaded core_pattern process dies. * right pid if a thread in a multi-threaded
* core_pattern process dies.
*/ */
printk(KERN_WARNING "Process %d(%s) has RLIMIT_CORE set to 0\n", printk(KERN_WARNING
"Process %d(%s) has RLIMIT_CORE set to 0\n",
task_tgid_vnr(current), current->comm); task_tgid_vnr(current), current->comm);
printk(KERN_WARNING "Aborting core\n"); printk(KERN_WARNING "Aborting core\n");
goto fail_unlock; goto fail_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment