Thanks a lot for your testing on Linux Kernel. Will work on the version 3 of this patch soon.
Qing > On Aug 2, 2022, at 11:30 AM, Kees Cook <keesc...@chromium.org> wrote: > > On Tue, Jul 19, 2022 at 02:11:19PM +0000, Qing Zhao wrote: >> From a09f39ded462611286a44d9e8273de8342673ba2 Mon Sep 17 00:00:00 2001 >> From: Qing Zhao <qing.z...@oracle.com> >> Date: Mon, 18 Jul 2022 18:12:26 +0000 >> Subject: [PATCH 2/2] Use new flag DECL_NOT_FLEXARRAY in __builtin_object_size >> [PR101836] >> >> Use new flag DECL_NOT_FLEXARRAY to determine whether the trailing array >> of a structure is flexible array member in __builtin_object_size. > > FWIW, with these patches I've done builds of the Linux kernel using > the ...=3 level, and things are looking correct on our end. (There are, > as expected, many places in Linux that need to be fixed, and that work > is on-going, guided by this option's results.) > > -Kees > > -- > Kees Cook