Re: [PATCH v2 05/11] mtd: cfi: reduce stack size with KASAN

2017-08-04 Thread Boris Brezillon
On Wed, 14 Jun 2017 23:15:40 +0200 Arnd Bergmann wrote: > When CONFIG_KASAN is used, we consume a lot of extra stack space: > > drivers/mtd/chips/cfi_cmdset_0020.c: In function 'do_write_buffer': > drivers/mtd/chips/cfi_cmdset_0020.c:603:1: error: the frame size of 2184 > bytes is larger than 1

Re: [PATCH v2 05/11] mtd: cfi: reduce stack size with KASAN

2017-08-04 Thread Boris Brezillon
On Fri, 4 Aug 2017 11:09:53 +0200 Arnd Bergmann wrote: > On Fri, Aug 4, 2017 at 9:42 AM, Boris Brezillon > wrote: > > On Wed, 14 Jun 2017 23:15:40 +0200 > > Arnd Bergmann wrote: > > > >> When CONFIG_KASAN is used, we consume a lot of extra stack space: > >> > >> drivers/mtd/chips/cfi_cmdset_0

Re: [PATCH v2 05/11] mtd: cfi: reduce stack size with KASAN

2017-08-04 Thread Arnd Bergmann
On Fri, Aug 4, 2017 at 9:42 AM, Boris Brezillon wrote: > On Wed, 14 Jun 2017 23:15:40 +0200 > Arnd Bergmann wrote: > >> When CONFIG_KASAN is used, we consume a lot of extra stack space: >> >> drivers/mtd/chips/cfi_cmdset_0020.c: In function 'do_write_buffer': >> drivers/mtd/chips/cfi_cmdset_0020.

Re: [PATCH v2 05/11] mtd: cfi: reduce stack size with KASAN

2017-08-04 Thread Boris Brezillon
On Wed, 14 Jun 2017 23:15:40 +0200 Arnd Bergmann wrote: > When CONFIG_KASAN is used, we consume a lot of extra stack space: > > drivers/mtd/chips/cfi_cmdset_0020.c: In function 'do_write_buffer': > drivers/mtd/chips/cfi_cmdset_0020.c:603:1: error: the frame size of 2184 > bytes is larger than 1

[PATCH v2 05/11] mtd: cfi: reduce stack size with KASAN

2017-06-14 Thread Arnd Bergmann
When CONFIG_KASAN is used, we consume a lot of extra stack space: drivers/mtd/chips/cfi_cmdset_0020.c: In function 'do_write_buffer': drivers/mtd/chips/cfi_cmdset_0020.c:603:1: error: the frame size of 2184 bytes is larger than 1536 bytes [-Werror=frame-larger-than=] drivers/mtd/chips/cfi_cmdset_