Arnd Bergmann f3848952e0 fs/select: avoid clang stack usage warning
commit ad312f95d41c9de19313c51e388c4984451c010f upstream.

The select() implementation is carefully tuned to put a sensible amount
of data on the stack for holding a copy of the user space fd_set, but
not too large to risk overflowing the kernel stack.

When building a 32-bit kernel with clang, we need a little more space
than with gcc, which often triggers a warning:

  fs/select.c:619:5: error: stack frame size of 1048 bytes in function 'core_sys_select' [-Werror,-Wframe-larger-than=]
  int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,

I experimentally found that for 32-bit ARM, reducing the maximum stack
usage by 64 bytes keeps us reliably under the warning limit again.

Link: http://lkml.kernel.org/r/20190307090146.1874906-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:45:41 +01:00
..
2019-12-17 20:39:59 +01:00
2019-12-05 15:38:25 +01:00
2017-09-22 16:16:41 -10:00
2018-04-24 09:36:39 +02:00
2017-09-07 21:11:05 -07:00
2018-02-22 15:42:23 +01:00
2018-08-03 07:50:38 +02:00
2019-03-23 14:35:28 +01:00
2017-10-03 08:57:07 -07:00
2019-11-24 08:22:48 +01:00
2019-12-05 15:38:28 +01:00
2018-06-21 04:02:49 +09:00
2018-02-22 15:42:24 +01:00
2019-12-17 20:38:50 +01:00
2017-09-12 13:21:00 -07:00
2017-09-07 11:53:11 +02:00
2019-12-31 12:37:21 +01:00
2018-02-22 15:42:23 +01:00
2017-09-25 08:56:05 -06:00
2019-06-11 12:21:48 +02:00
2019-12-05 15:38:28 +01:00
2017-09-12 13:21:00 -07:00
2019-04-17 08:37:44 +02:00
2018-11-13 11:15:11 -08:00
2019-06-17 19:52:43 +02:00