[Drbd-dev] [PATCH] [v2] drbd: dynamically allocate shash descriptor

Jens Axboe axboe at kernel.dk
Tue Jul 23 15:35:41 CEST 2019


On 7/22/19 6:26 AM, Arnd Bergmann wrote:
> Building with clang and KASAN, we get a warning about an overly large
> stack frame on 32-bit architectures:
> 
> drivers/block/drbd/drbd_receiver.c:921:31: error: stack frame size of 1280 bytes in function 'conn_connect'
>        [-Werror,-Wframe-larger-than=]
> 
> We already allocate other data dynamically in this function, so
> just do the same for the shash descriptor, which makes up most of
> this memory.

Applied, thanks.

-- 
Jens Axboe



More information about the drbd-dev mailing list