From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Mike Frysinger <vapier@gentoo.org>,
linux-kernel@vger.kernel.org,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
Hendrik Brueckner <brueckner@linux.vnet.ibm.com>,
"David S. Miller" <davem@davemloft.net>,
Paul Mundt <lethal@linux-sh.org>
Subject: Re: [PATCH] ftrace: unify arch_syscall_addr() implementations
Date: Fri, 22 Jan 2010 17:37:00 +0100 [thread overview]
Message-ID: <20100122163700.GD6412@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <1264170977.31321.382.camel@gandalf.stny.rr.com>
On Fri, Jan 22, 2010 at 09:36:17AM -0500, Steven Rostedt wrote:
> [ Added Heiko Carstens and Paul Mundt to Cc ]
>
> On Fri, 2010-01-22 at 08:43 -0500, Mike Frysinger wrote:
> > Every arch_syscall_addr() implementation thus far is the same, so unify
> > them as a default weak in common code so more arches don't have to waste
> > time copying & pasting this simple function. The Blackfin version is
> > going to be exactly the same.
> >
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> > ---
> > note: only thing that needs double checking is s390 and sparc where they
> > declared the sys_call_table as an array of ints. considering this table
> > is supposed to be an array of function pointers, this seems like more of
> > a typo to me ...
>
> I would not be too sure. s390 is very strange, and I would definitely
> want to get an Ack from the arch maintainers first.
It's not a typo. The syscall table on s390 contains always 32 bit pointers
since we know that the address of the function to be called is (way) below
4GB. So this saves us a few bytes.
In addition this makes syscall patching done by some security modules a
bit more difficult, since they would need to store a 64 bit pointer.
That's because we make sure that module addresses are always above 4GB.
next prev parent reply other threads:[~2010-01-22 16:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 13:43 Mike Frysinger
2010-01-22 14:36 ` Steven Rostedt
2010-01-22 16:37 ` Heiko Carstens [this message]
2010-01-22 19:32 ` Mike Frysinger
2010-01-23 1:38 ` David Miller
2010-01-23 1:36 ` David Miller
2010-01-26 3:03 ` Paul Mundt
2010-01-27 4:50 ` Mike Frysinger
2010-01-23 7:10 ` [PATCH v2] " Mike Frysinger
2010-01-23 8:28 ` David Miller
2010-01-23 19:13 ` Mike Frysinger
2010-01-26 9:40 ` [PATCH v3] " Mike Frysinger
2010-01-26 11:29 ` Heiko Carstens
2010-02-03 22:48 ` Frederic Weisbecker
2010-02-27 12:51 ` [tip:tracing/core] tracing: Unify " tip-bot for Mike Frysinger
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=20100122163700.GD6412@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=brueckner@linux.vnet.ibm.com \
--cc=davem@davemloft.net \
--cc=fweisbec@gmail.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=vapier@gentoo.org \
/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