[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2ysy6s2on7ae24j7tiwpwp6vp33gqvn2apqhprnvip6lzqxdao@p73c3ukzvcjd>
Date: Sat, 24 Feb 2024 19:52:18 -0500
From: Kent Overstreet <kent.overstreet@...ux.dev>
To: Erick Archer <erick.archer@....com>
Cc: Brian Foster <bfoster@...hat.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>, Kees Cook <keescook@...omium.org>,
linux-bcachefs@...r.kernel.org, linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] bcachefs: Prefer struct_size over open coded arithmetic
On Sat, Feb 24, 2024 at 04:16:58PM +0100, Erick Archer wrote:
> This is an effort to get rid of all multiplications from allocation
> functions in order to prevent integer overflows [1][2].
>
> As the "t" variable is a pointer to "struct journal_seq_blacklist_table"
> and this structure ends in a flexible array:
there's no reason to break these out into multiple patches, just send me
a single patch when you're done - thanks!
Powered by blists - more mailing lists