From: Ernie Petrides <petrides@redhat.com>
To: Jim Keniston <jkenisto@us.ibm.com>
Cc: "Frank Ch. Eigler" <fche@redhat.com>,
Linda Wang <lwang@redhat.com>,
systemtap@sources.redhat.com
Subject: Re: [RFC][PATCH 2/2] uprobes: single-step out of line
Date: Fri, 11 May 2007 22:31:00 -0000 [thread overview]
Message-ID: <200705112206.l4BM6P9Z013621@pasta.boston.redhat.com> (raw)
In-Reply-To: Your message of "Thu, 10 May 2007 15:17:44 PDT." <1178835464.3753.18.camel@ibm-ni9dztukfq8.beaverton.ibm.com>
On Thursday, 10-May-2007 at 15:17 PDT, Jim Keniston wrote:
> On Tue, 2007-05-08 at 21:34 -0400, Ernie Petrides wrote:
>
> > I'm not sure what the best solution is. Maybe what you've already
> > got here is reasonable. I'd need to study mm_struct compatibility
> > issues for a while to determine if this would be a deal-breaker in
> > terms of the kABI issue. (We have this "#ifndef __GENKSYMS__" hack
> > that can sometimes be used to accommodate these sorts of structure
> > additions in a RHEL update to avoid the symbol checksum change, but
> > it's only viable if there's no true underlying compatibility problem.)
>
>
> Yes, I'd appreciate it if you confirm the need for a change here, since
> the effort/implications for this change are non-trivial.
I've researched "mm_struct" usage in the latest RHEL5 kernel sources,
specifically looking for dependencies on the structure size and on the
offsets to the fields beyond the "mm_context_t".
As far as I can see, all of these dependencies are in the base part of
the kernel (as opposed to modules). This suggest that the __GENKSYMS__
hack could be used to hide your new "uprobes_ssol_area" field being
added to the "mm_context_t" (to preserve exported symbol versioning)
without causing a true binary compatibility problem.
That being said, I don't represent views of the RHEL5 kernel maintainer
nor any other senior developers who might have to sign off on such a
change in the hypothetical scenario of a uprobes back-port to RHEL5.
But using __GENKSYMS__ for this situation looks safe to me.
Obviously, this is a non-issue for upstream acceptance, since all
sources are expected to be recompiled (and thus there is no attempt
to preserve kABI). I did notice, however, that the "dumpable" field
of the "mm_struct" comes after the "mm_context_t" upstream in 2.6.21
(unlike in RHEL5). Some other distro based on a more recent upstream
version could conceivably have an issue with this field, since it's
remotely possible (though unlikely) that a 3rd-party exec format
handler or security module might access "dumpable" (whose field
offset would change with an "mm_context_t" addition). But this is
a somewhat far-fetched example, so all in all, you're probably okay.
Cheers. -ernie
next prev parent reply other threads:[~2007-05-11 22:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 1:07 Ernie Petrides
2007-05-07 22:02 ` Jim Keniston
2007-05-09 1:32 ` Ernie Petrides
2007-05-10 23:17 ` Jim Keniston
2007-05-11 22:31 ` Ernie Petrides [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-20 23:10 Jim Keniston
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=200705112206.l4BM6P9Z013621@pasta.boston.redhat.com \
--to=petrides@redhat.com \
--cc=fche@redhat.com \
--cc=jkenisto@us.ibm.com \
--cc=lwang@redhat.com \
--cc=systemtap@sources.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).