Files
linux/drivers/block/drbd
Arnd Bergmann dfaf368e67 drbd: dynamically allocate shash descriptor
[ Upstream commit 77ce56e2bf ]

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.

Link: https://lore.kernel.org/lkml/20190617132440.2721536-1-arnd@arndb.de/
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Roland Kammerer <roland.kammerer@linbit.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-25 10:51:30 +02:00
..
2014-04-30 13:46:54 -06:00
2016-08-07 14:41:02 -06:00
2016-06-13 21:43:07 -06:00
2011-03-31 11:26:23 -03:00
2018-07-11 16:26:43 +02:00
2014-07-10 18:35:16 +02:00