All of
 help / color / mirror / Atom feed
From: Andrew Morton <>
To: Kees Cook <>
Cc: Peter Zijlstra <>,
	Ingo Molnar <>,
	Linus Torvalds <>,,
Subject: Re: [PATCH] task_struct: Only use anon struct under randstruct plugin
Date: Tue, 27 Mar 2018 16:03:42 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20180327213609.GA2964@beast>

On Tue, 27 Mar 2018 14:36:09 -0700 Kees Cook <> wrote:

> The original intent for always adding the anonymous struct in task_struct
> was to make sure we had compiler coverage. However, this caused
> pathological padding of 40 bytes at the start of task_struct.

Why?  What caused this padding?  It happens in all configs?

> Instead,
> move the anonymous struct to being only used when struct layout
> randomization is enabled.

So the mysterious 40 byte bloat is still present in this case?

> Reported-by: Peter Zijlstra <>
> Fixes: 29e48ce87f1e ("task_struct: Allow randomized")
> Cc:

Why cc:stable?

  reply	other threads:[~2018-03-27 23:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 21:36 Kees Cook
2018-03-27 23:03 ` Andrew Morton [this message]
2018-03-28  0:22   ` Linus Torvalds
2018-03-28  9:51     ` Peter Zijlstra
2018-03-28  0:30   ` Kees Cook
2018-03-28  1:34     ` Andrew Morton

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] task_struct: Only use anon struct under randstruct plugin' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.