mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anoop <acv@linux.vnet.ibm.com>
To: Roland McGrath <roland@redhat.com>
Cc: linux-kernel@vger.kernel.org, andi@firstfloor.org,
	mtk.manpages@googlemail.com
Subject: Re: ptrace PTRACE_PEEKUSER behavior
Date: Thu,  8 May 2008 02:51:01 -0400	[thread overview]
Message-ID: <20080508025101.a9177nongg4kgg4g@imap.linux.ibm.com> (raw)


Quoting Roland McGrath <roland@redhat.com>:

> 'struct user' is really a virtual structure layout, and never exists
> anywhere as an actual struct.  It's really just defining the argument
> values that can be used in PEEKUSR/POKEUSR calls.

But the powerpc ptrace code returns the FPRs & FPSCR though they are  
not part of user struct.

CHECK_FULL_REGS(child->thread.regs);
if (index < PT_FPR0) {
		tmp = ptrace_get_reg(child, (int) index);
} else { <=============
		flush_fp_to_thread(child);
		tmp = ((unsigned long *)child->thread.fpr)[index - PT_FPR0];
}
ret = put_user(tmp,(unsigned long __user *) data);

Does this mandate inclusion of floating point set in powerpc user struct?

Regards,
- Anoop


             reply	other threads:[~2008-05-08  6:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  6:51 Anoop [this message]
2008-05-08 19:44 ` Roland McGrath
  -- strict thread matches above, loose matches on Subject: below --
2008-05-05 11:01 Anoop
2008-05-05 11:55 ` Andi Kleen
2008-05-05 12:45   ` Michael Kerrisk
2008-05-05 19:04 ` Roland McGrath

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=20080508025101.a9177nongg4kgg4g@imap.linux.ibm.com \
    --to=acv@linux.vnet.ibm.com \
    --cc=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtk.manpages@googlemail.com \
    --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®