Messages in this thread | | | Date | Tue, 23 May 2023 19:55:28 -0700 | From | Eric Biggers <> | Subject | Re: [PATCH v2] fscrypt: Replace 1-element array with flexible array |
| |
On Tue, May 23, 2023 at 09:55:02AM -0700, Kees Cook wrote: > 1-element arrays are deprecated and are being replaced with C99 > flexible arrays[1]. > > As sizes were being calculated with the extra byte intentionally, > propagate the difference so there is no change in binary output. > > [1] https://github.com/KSPP/linux/issues/79 > > Cc: Eric Biggers <ebiggers@kernel.org> > Cc: "Theodore Y. Ts'o" <tytso@mit.edu> > Cc: Jaegeuk Kim <jaegeuk@kernel.org> > Cc: Gustavo A. R. Silva <gustavoars@kernel.org> > Cc: linux-fscrypt@vger.kernel.org > Signed-off-by: Kees Cook <keescook@chromium.org> > --- > v2: update commit log to avoid mentioning "len" member. > v1: https://lore.kernel.org/lkml/20230522213924.never.119-kees@kernel.org/ > --- > fs/crypto/fscrypt_private.h | 2 +- > fs/crypto/hooks.c | 10 +++++----- > 2 files changed, 6 insertions(+), 6 deletions(-)
Thanks, applied to https://git.kernel.org/pub/scm/fs/fscrypt/linux.git/log/?h=for-next
- Eric
| |