[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250220173325.0349e913@kernel.org>
Date: Thu, 20 Feb 2025 17:33:25 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Simon Horman
<horms@...nel.org>, Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Xin Long <lucien.xin@...il.com>, Kees Cook <kees@...nel.org>,
linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH] sctp: Replace zero-length array with flexible
array member
On Wed, 19 Feb 2025 12:26:36 +0100 Thorsten Blum wrote:
> Replace the deprecated zero-length array with a modern flexible array
> member in the struct sctp_idatahdr.
>
> Link: https://github.com/KSPP/linux/issues/78
> Reviewed-by: Kees Cook <kees@...nel.org>
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
> ---
> include/linux/sctp.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/sctp.h b/include/linux/sctp.h
> index 836a7e200f39..19eaaf3948ed 100644
> --- a/include/linux/sctp.h
> +++ b/include/linux/sctp.h
> @@ -239,7 +239,7 @@ struct sctp_idatahdr {
> __u32 ppid;
> __be32 fsn;
> };
> - __u8 payload[0];
> + __u8 payload[];
> };
>
> struct sctp_idata_chunk {
Builds for me with this field completely delete...
I think we should prefer deleting when possible.
--
pw-bot: cr
Powered by blists - more mailing lists