Re: [PATCH] scsi: hpsa: Make buff allocation type unsigned

From: Martin K. Petersen (Oracle)

Date: Mon Oct 05 2026 - 22:45:19 EST


On Thu, 17 Sep 2026 14:11:38 -0700, Kees Cook wrote:

> In preparation for converting the kmalloc family of allocators to the
> type-aware kmalloc_obj family, we need to make sure that the returned
> type from the allocation matches the type of the variable being
> assigned. (The kmalloc family returns "void *", which can be implicitly
> cast to any pointer type.)
>
> The assigned type is "unsigned char **", but the converted allocation
> type would be "char **", whose elements point to a character type of a
> different signedness, so the two pointer types are not compatible. Take
> the size from the assignment target instead. No change in allocation
> size results.
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: hpsa: Make buff allocation type unsigned
https://git.kernel.org/mkp/scsi/c/d0105247ca7e

--
Martin K. Petersen