From: Oleg Nesterov <oleg@redhat.com>
To: bookjovi@gmail.com
Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org,
Neil Horman <nhorman@tuxdriver.com>
Subject: Re: [PATCH] coredump: fix wrong comments on core limits of pipe coredump case
Date: Mon, 22 Aug 2011 15:32:44 +0200 [thread overview]
Message-ID: <20110822133244.GA28449@redhat.com> (raw)
In-Reply-To: <1314048011-2824-1-git-send-email-bookjovi@gmail.com>
Ah, I thought you are going to re-do this patch...
On 08/22, bookjovi@gmail.com wrote:
>
> Only core limit 1 can skip dump in ispipe case, not 0.
Yes, but this is (almost) internal hack we use to avoid the recursive
crashes.
> --- a/fs/exec.c
> +++ b/fs/exec.c
> @@ -2163,7 +2163,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
> * we're not writing to the file system, but we use
> * cprm.limit of 1 here as a speacial value. Any
> * non-1 limit gets set to RLIM_INFINITY below, but
> - * a limit of 0 skips the dump. This is a consistent
> + * a limit of 1 skips the dump. This is a consistent
I'd suggest to simple remove the "skips the dump" part.
To me, we can also remove the "Note that we use task_tgid_vnr" part,
but feel free to ignore. Every user of task_tgid_vnr() could have the
same comment.
Oleg.
prev parent reply other threads:[~2011-08-22 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 21:20 bookjovi
2011-08-22 13:32 ` Oleg Nesterov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110822133244.GA28449@redhat.com \
--to=oleg@redhat.com \
--cc=bookjovi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome