[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230518-jemand-ehrte-80f8b538ca03@brauner>
Date: Thu, 18 May 2023 17:07:09 +0200
From: Christian Brauner <brauner@...nel.org>
To: Kees Cook <keescook@...omium.org>
Cc: Christian Brauner <brauner@...nel.org>, Jan Kara <jack@...e.cz>,
Andreas Gruenbacher <agruenba@...hat.com>,
Daniel Verkamp <dverkamp@...omium.org>,
"Paul E. McKenney" <paulmck@...nel.org>,
Jeff Xu <jeffxu@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Boqun Feng <boqun.feng@...il.com>,
Luis Chamberlain <mcgrof@...nel.org>,
Frederic Weisbecker <frederic@...nel.org>,
syzbot+ac3b41786a2d0565b6d5@...kaller.appspotmail.com,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] pid: Replace struct pid 1-element array with flex-array
On Wed, 17 May 2023 15:58:42 -0700, Kees Cook wrote:
> For pid namespaces, struct pid uses a dynamically sized array member,
> "numbers". This was implemented using the ancient 1-element fake flexible
> array, which has been deprecated for decades. Replace it with a C99
> flexible array, refactor the array size calculations to use struct_size(),
> and address elements via indexes. Note that the static initializer (which
> defines a single element) works as-is, and requires no special handling.
>
> [...]
Applied to the kernel.fork branch of the brauner/linux.git tree.
Patches in the kernel.fork branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git
branch: kernel.fork
[1/1] pid: Replace struct pid 1-element array with flex-array
https://git.kernel.org/brauner/linux/c/ad0ff58dc959
Powered by blists - more mailing lists