Re: [PATCH] scsi: target: tcmu: Annotate struct tcmu_tmr with __counted_by

From: Martin K. Petersen
Date: Wed Sep 27 2023 - 11:29:52 EST



Kees,

> Prepare for the coming implementation by GCC and Clang of the
> __counted_by attribute. Flexible array members annotated with
> __counted_by can have their accesses bounds-checked at run-time
> checking via CONFIG_UBSAN_BOUNDS (for array indexing) and
> CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions).

Applied to 6.7/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering