[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240730190616.84555-1-kuniyu@amazon.com>
Date: Tue, 30 Jul 2024 12:06:16 -0700
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <dmantipov@...dex.ru>
CC: <kees@...nel.org>, <linux-hardening@...r.kernel.org>,
<netdev@...r.kernel.org>, <pabeni@...hat.com>, Kuniyuki Iwashima
<kuniyu@...zon.com>
Subject: Re: [PATCH] net: core: use __counted_by for trailing VLA of struct sock_reuseport
From: Dmitry Antipov <dmantipov@...dex.ru>
Date: Tue, 30 Jul 2024 19:04:49 +0300
> According to '__reuseport_alloc()', annotate trailing VLA 'sock' of
> 'struct sock_reuseport' with '__counted_by()' and use convenient
> 'struct_size()' to simplify the math used in 'kzalloc()'.
>
> Signed-off-by: Dmitry Antipov <dmantipov@...dex.ru>
Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Powered by blists - more mailing lists