From: Ralf Baechle <ralf@linux-mips.org>
To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Subject: Re: [RFC] User stack pointer randomisation
Date: Thu, 19 Jul 2007 12:14:40 +0100 [thread overview]
Message-ID: <20070719111440.GA19916@linux-mips.org> (raw)
In-Reply-To: <469F0E5F.4050005@innova-card.com>
On Thu, Jul 19, 2007 at 09:10:23AM +0200, Franck Bui-Huu wrote:
> This patch adds a page size range randomisation to the user
> stack pointer.
Looks fine to me aside of the issue Nigel raised.
There is a constant defining the ABI-specific alignment in <asm/asm.h>:
#if (_MIPS_SIM == _MIPS_SIM_ABI32)
#define ALSZ 7
#define ALMASK ~7
#endif
#if (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64)
#define ALSZ 15
#define ALMASK ~15
#endif
This will unnecessarily increase the alignment of the stack wasting a few
bytes of memory for O32 binaries running on 64-bit kernels but I'd just
ignore this artefact; the cure would be uglier than the disease ;-)
Ralf
next prev parent reply other threads:[~2007-07-19 11:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 7:10 [RFC] User stack pointer randomisation Franck Bui-Huu
2007-07-19 9:43 ` Nigel Stephens
2007-07-19 11:36 ` Franck Bui-Huu
2007-07-19 11:14 ` Ralf Baechle [this message]
2007-07-19 11:47 ` Franck Bui-Huu
2007-07-19 12:01 ` Ralf Baechle
2007-07-19 12:19 ` Franck Bui-Huu
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=20070719111440.GA19916@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=vagabon.xyz@gmail.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