Files
twx-linux/fs
Alan Huang 6b6cd38910 bcachefs: Remove incorrect __counted_by annotation
commit 6846100b00 upstream.

This actually reverts 86e92eeeb2 ("bcachefs: Annotate struct bch_xattr
with __counted_by()").

After the x_name, there is a value. According to the disscussion[1],
__counted_by assumes that the flexible array member contains exactly
the amount of elements that are specified. Now there are users came across
a false positive detection of an out of bounds write caused by
the __counted_by here[2], so revert that.

[1] https://lore.kernel.org/lkml/Zv8VDKWN1GzLRT-_@archlinux/T/#m0ce9541c5070146320efd4f928cc1ff8de69e9b2
[2] https://privatebin.net/?a0d4e97d590d71e1#9bLmp2Kb5NU6X6cZEucchDcu88HzUQwHUah8okKPReEt

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-09 09:50:49 +02:00
..
2024-10-17 00:28:06 -07:00
2024-12-14 20:04:14 +01:00
2025-04-25 10:47:53 +02:00
2025-02-08 09:56:51 +01:00
2025-01-23 17:22:55 +01:00
2025-04-20 10:15:43 +02:00
2025-03-22 12:54:15 -07:00
2025-05-02 07:59:29 +02:00
2024-12-05 14:02:47 +01:00
2025-01-17 13:40:50 +01:00