From: Oleg Nesterov <oleg@redhat.com>
To: naveen yadav <yad.naveen@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Vaibhav Shinde <v.bhav.shinde@gmail.com>,
Ajeet Yadav <ajeet.yadav.77@gmail.com>, Tejun Heo <tj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] secure unlock_task_sighand() call
Date: Mon, 23 Dec 2013 15:26:36 +0100 [thread overview]
Message-ID: <20131223142636.GA24504@redhat.com> (raw)
In-Reply-To: <CAJ8eaTxq5tL1WT_2rsDg5nKwW4xxW_Md6ZTgk9f5DX75cN=pRg@mail.gmail.com>
On 12/23, naveen yadav wrote:
>
> Happy Christmas !!!
Thanks, the same to you ;)
> We are facing OOPS during core dump on kernel 3.8.x on ARM target.
Do you have any traces? Any additional info?
Can you try the fresh kernels?
Not that I can recall any change in this area which could help, but
perhaps this is arm specific...
> So we were doing core review and found this.
Do you mean that with this patch the kernel doesn't crash?
> Also I think in zap_process() there is no need to send SIGKILL to
> ZOMBIE or DEAD process.
Yes, it would be very wrong to account a zombie, but:
> --- a/fs/coredump.c
> +++ b/fs/coredump.c
> @@ -271,17 +271,19 @@ static int zap_process(struct task_struct
> *start, int exit_code)
>
> - if (t != current && t->mm) {
> + if (t->exit_state) {
> + nr++;
> + } else if (t != current && t->mm) {
This change adds no harm, but it is misleading and unneeded. Please note
that t->mm != NULL && t->exit_state != 0 is not possible, exit_mm() is
called before exit_notify(). IOW, a zombie thread can't have ->mm.
Oleg.
next prev parent reply other threads:[~2013-12-23 14:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-21 9:55 [PATCH] secure unlock_task_sighand() call naveen yadav
2013-12-21 17:41 ` Linus Torvalds
2013-12-21 18:27 ` Oleg Nesterov
2013-12-22 14:34 ` Oleg Nesterov
2013-12-23 12:29 ` naveen yadav
2013-12-23 14:26 ` Oleg Nesterov [this message]
2013-12-23 18:17 ` Linus Torvalds
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=20131223142636.GA24504@redhat.com \
--to=oleg@redhat.com \
--cc=ajeet.yadav.77@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=v.bhav.shinde@gmail.com \
--cc=yad.naveen@gmail.com \
/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