Re: [PATCH] scsi: megaraid: reduce stack usage in megaraid_cmm_register()

From: Martin K. Petersen

Date: Mon Jun 01 2026 - 22:18:00 EST


On Tue, 19 May 2026 22:21:24 +0200, Arnd Bergmann wrote:

> The megaraid_cmm_register() function has a local copy of mraid_mmadp_t on
> the stack that gets copied into the actual structure used at runtime. When
> -fsanitize=thread is enabled, this causes the per-function stack frame
> to grow beyond the warning limit:
>
> megaraid_mbox.c: In function 'megaraid_cmm_register':
> megaraid_mbox.c:3472:1: error: the frame size of 1312 bytes is larger than 1280 bytes [-Werror=frame-larger-than=]
>
> [...]

Applied to 7.2/scsi-queue, thanks!

[1/1] scsi: megaraid: reduce stack usage in megaraid_cmm_register()
https://git.kernel.org/mkp/scsi/c/c1f7275b613b

--
Martin K. Petersen