Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2008 12:20:34 +0200
From:      "Antoine Brodin" <antoine@FreeBSD.org>
To:        "Ed Schouten" <ed@80386.nl>
Cc:        Jeremie Le Hen <jeremie@le-hen.org>, freebsd-arch@freebsd.org
Subject:   Re: Integration of ProPolice in FreeBSD
Message-ID:  <f19c444a0804200320ifd64f85tbb19bcdbbb657dbb@mail.gmail.com>
In-Reply-To: <20080420095911.GT5934@hoeg.nl>
References:  <20080418132749.GB4840@obiwan.tataz.chchile.org> <200804181945.59189.max@love2party.net> <20080418204738.GE4840@obiwan.tataz.chchile.org> <20080419071400.GP73016@server.vk2pj.dyndns.org> <20080419074921.GI4840@obiwan.tataz.chchile.org> <20080420095911.GT5934@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 20, 2008 at 11:59 AM, Ed Schouten <ed@80386.nl> wrote:
> * Jeremie Le Hen <jeremie@le-hen.org> wrote:
>
> > If you want to look at the patch, this is the last file.
>  >     http://tataz.chchile.org/~tataz/FreeBSD/SSP/fbsd8-ssp.diff
>
>  Couldn't __stack_chk_init() be implemented like this:
>
>  | static void
>  | __stack_chk_init(void *dummy __unused)
>  | {
>  |       arc4rand(__stack_chk_guard, sizeof(__stack_chk_guard), 0);
>  | }

Hi Ed,

You can't do this because arc4rand will be protected and the guard
won't be same when you return from arc4rand.

Cheers,

Antoine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f19c444a0804200320ifd64f85tbb19bcdbbb657dbb>