From: Ian Lance Taylor <ian@wasabisystems.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Elena Zannoni <ezannoni@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH/ezannoni_pie-20040323-branch] New branch and pie
Date: Wed, 24 Mar 2004 14:50:00 -0000 [thread overview]
Message-ID: <m3vfkul2nr.fsf@gossamer.airs.com> (raw)
In-Reply-To: <uzna6hhcu.fsf@elta.co.il>
Eli Zaretskii <eliz@elta.co.il> writes:
> > From: Elena Zannoni <ezannoni@redhat.com>
> > Date: Tue, 23 Mar 2004 23:03:22 -0500
> >
> > I gave up updating the old branch that I had created for PIE work.
> > I just created a new one: ezannoni_pie-20040323-branch.
>
> Thanks.
>
> Any pointers to previous discussions of the reason(s) for this? I
> cannot say I understand what is this supposed to do.
Are you asking about what PIE is supposed to do, or something abour
Elena's support for it?
PIE is a hack to make executables more secure. The theory is that
worms attack your system by causing a stack overrun on your program
and by controlling what they write onto the stack. In an ordinary
executable, the worm code can know precisely where the executable is
located in memory, and they can take advantage of that fact to let the
stack overrun code call into the executable directly. Using PIE means
that the worm can not successfully call into the executable, because
it doesn't know what location to call.
I think it's kind of a desperation move, personally. It's trivial for
a worm to make direct system calls.
I would be all for PIE if it were free or nearly free, but it's not.
It makes the executable larger, and it adds relocations which make the
executable slower to load.
This is in contract to exec-shield-randomize, for example, which
randomizes the sbrk and stack address so that worms can't rely on a
particular stack location when executing. As protection against worms
this is very nearly useless, but it's also pretty much free, so I
think it's a good idea.
Ian
next prev parent reply other threads:[~2004-03-24 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 4:10 Elena Zannoni
2004-03-24 6:45 ` Eli Zaretskii
2004-03-24 14:50 ` Ian Lance Taylor [this message]
2004-03-24 16:01 ` Eli Zaretskii
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=m3vfkul2nr.fsf@gossamer.airs.com \
--to=ian@wasabisystems.com \
--cc=eliz@gnu.org \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@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