Re: [PATCH -mm 1/3] proc: randomize "struct pde_opener"

From: Alexey Dobriyan
Date: Thu Feb 15 2018 - 23:48:48 EST


On Fri, Feb 16, 2018 at 12:13:17AM +0000, Al Viro wrote:
> On Fri, Feb 16, 2018 at 12:41:13AM +0300, Alexey Dobriyan wrote:
> > On Thu, Feb 15, 2018 at 07:07:13PM +0000, Al Viro wrote:
> > > On Wed, Feb 14, 2018 at 11:19:35AM +0300, Alexey Dobriyan wrote:
> > >
> > > > The more the merrier.
> > >
> > > ITYM "Sanity is overrated anyway."
> >
> > If you view annotations as debugging option the thing is not that bad.
>
> Yes, if your goal is to debug gcc. Look, randomize_layout is a bad idea,
> with worse implementation. It's security theatre with no real benefits,
> it makes for much harder kernel debugging, it buggers cachelines without
> noticing *AND* it triggers gcc version-dependent miscompiles that
> cheerfully cause memory corruption.

So at least gcc people should all enable it. :^)