summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorArnd Bergmann2018-11-02 16:39:24 +0100
committerRichard Weinberger2018-12-13 22:07:56 +0100
commiteb66eff6636de0e83f74294447b47aec51e069fc (patch)
treef00ca5c053e880abbc8d0976812c40fa76b398e0 /fs/lockd
parentLinux 4.20-rc6 (diff)
downloadkernel-qcow2-linux-eb66eff6636de0e83f74294447b47aec51e069fc.tar.gz
kernel-qcow2-linux-eb66eff6636de0e83f74294447b47aec51e069fc.tar.xz
kernel-qcow2-linux-eb66eff6636de0e83f74294447b47aec51e069fc.zip
ubifs: replay: Fix high stack usage
Having two shash descriptors on the stack cause a very significant kernel stack usage that can cross the warning threshold: fs/ubifs/replay.c: In function 'authenticate_sleb': fs/ubifs/replay.c:633:1: error: the frame size of 1144 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Normally, gcc optimizes the out, but with CONFIG_CC_OPTIMIZE_FOR_DEBUGGING, it does not. Splitting the two stack allocations into separate functions means that they will use the same memory again. In normal configurations (optimizing for size or performance), those should get inlined and we get the same behavior as before. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions