[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <9BACA2F2-D306-46BA-ACBE-E06460E11FA0@linux.dev>
Date: Thu, 1 May 2025 22:08:16 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Alan Huang <mmpgouride@...il.com>
Cc: kent.overstreet@...ux.dev,
Kees Cook <kees@...nel.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
linux-bcachefs@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH 1/2] bcachefs: Remove incorrect __counted_by annotation
On 1. May 2025, at 22:01, Alan Huang wrote:
> + /*
> + * x_name contains the name and value counted by
> + * x_name_len + x_val_len. The introduction of
> + * __counted_by(x_name_len) caused a false positive
> + * detection of an out of bounds write.
> + */
Instead of removing it, would __counted_by(x_name_len + x_val_len) work?
Best,
Thorsten
Powered by blists - more mailing lists