mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: David Howells <dhowells@redhat.com>,
	Roland McGrath <roland@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] coredump: binfmt_elf_fdpic: don't use sub-thread's ->mm
Date: Wed, 16 Jul 2008 17:53:58 +0400	[thread overview]
Message-ID: <20080716135358.GA1216@tv-sign.ru> (raw)

Change binfmt_elf_fdpic.c:fill_prstatus() to use current->mm instead of p->mm.
They are equal, but with the next patch p->mm == NULL.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

 binfmt_elf_fdpic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- 26-rc2/fs/binfmt_elf_fdpic.c~6_DONT_USE_MM	2008-07-13 21:18:31.000000000 +0400
+++ 26-rc2/fs/binfmt_elf_fdpic.c	2008-07-15 21:48:48.000000000 +0400
@@ -1374,8 +1374,8 @@ static void fill_prstatus(struct elf_prs
 	cputime_to_timeval(p->signal->cutime, &prstatus->pr_cutime);
 	cputime_to_timeval(p->signal->cstime, &prstatus->pr_cstime);
 
-	prstatus->pr_exec_fdpic_loadmap = p->mm->context.exec_fdpic_loadmap;
-	prstatus->pr_interp_fdpic_loadmap = p->mm->context.interp_fdpic_loadmap;
+	prstatus->pr_exec_fdpic_loadmap = current->mm->context.exec_fdpic_loadmap;
+	prstatus->pr_interp_fdpic_loadmap = current->mm->context.interp_fdpic_loadmap;
 }
 
 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,


                 reply	other threads:[~2008-07-16 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080716135358.GA1216@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.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

all inboxes | Powered by JetHome®