Files
Gustavo A. R. Silva 1c0782d67a gcc-plugins: randstruct: Update code comment in relayout_struct()
Mainline: d71f22365a9caca82d424f3a33445de46567e198
From: v6.7-rc4
Severity: Moderate

task: 189525

commit d71f22365a9caca82d424f3a33445de46567e198 upstream.

Update code comment to clarify that the only element whose layout is
not randomized is a proper C99 flexible-array member. This update is
complementary to commit 1ee60356c2dc ("gcc-plugins: randstruct: Only
warn about true flexible arrays")

Signed-off-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZWJr2MWDjXLHE8ap@work
Fixes: 1ee60356c2dc ("gcc-plugins: randstruct: Only warn about true flexible arrays")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

(backported from commit b79210fa10)

K2CI-Arch: None
Signed-off-by: k2ci <kernel-bot@kylinos.cn>
Change-Id: Ide609cac193e18620fc5c93ece1ed005053c6d35
Reviewed-on: http://gerrit.kylin.com/c/klinux/+/88548
Reviewed-by: Jackie Liu <liuyun01@kylinos.cn>
2023-12-25 09:37:51 +08:00
..