Re: [PATCH] string.h: work around for increased stack usage

2017-12-05 Thread Andrew Morton
On Tue, 5 Dec 2017 22:51:19 +0100 Arnd Bergmann wrote: > The hardened strlen() function causes rather large stack usage in at > least one file in the kernel, in particular when CONFIG_KASAN is enabled: > > drivers/media/usb/em28xx/em28xx-dvb.c: In function 'em28xx_dvb_init': > drivers/media/usb

[PATCH] string.h: work around for increased stack usage

2017-12-05 Thread Arnd Bergmann
The hardened strlen() function causes rather large stack usage in at least one file in the kernel, in particular when CONFIG_KASAN is enabled: drivers/media/usb/em28xx/em28xx-dvb.c: In function 'em28xx_dvb_init': drivers/media/usb/em28xx/em28xx-dvb.c:2062:1: error: the frame size of 3256 bytes is

Re: [PATCH] string.h: work around for increased stack usage

2017-10-03 Thread kbuild test robot
Hi Arnd, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc3 next-20170929] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/string-h-work-around-for-increase

Re: [PATCH] string.h: work around for increased stack usage

2017-10-02 Thread Andrey Ryabinin
On 10/02/2017 11:40 AM, Arnd Bergmann wrote: > The hardened strlen() function causes rather large stack usage > in at least one file in the kernel when CONFIG_KASAN is enabled: > > drivers/media/usb/em28xx/em28xx-dvb.c: In function 'em28xx_dvb_init': > drivers/media/usb/em28xx/em28xx-dvb.c:2062:1:

Re: [PATCH] string.h: work around for increased stack usage

2017-10-02 Thread Arnd Bergmann
On Mon, Oct 2, 2017 at 10:40 AM, Arnd Bergmann wrote: > > void fortify_panic(const char *name) __noreturn __cold; > + > +/* work around GCC PR82365 */ > +#if defined(CONFIG_KASAN) && !defined(__clang__) && GCC_VERSION <= 8 > +#define fortify_panic(x) \ > + do { \ > + asm v

[PATCH] string.h: work around for increased stack usage

2017-10-02 Thread Arnd Bergmann
The hardened strlen() function causes rather large stack usage in at least one file in the kernel when CONFIG_KASAN is enabled: drivers/media/usb/em28xx/em28xx-dvb.c: In function 'em28xx_dvb_init': drivers/media/usb/em28xx/em28xx-dvb.c:2062:1: error: the frame size of 3256 bytes is larger than 20