Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andrey Ryabinin
16 октября 2015 г. 19:47:00 GMT+03:00, Andi Kleen пишет: >On Fri, Oct 16, 2015 at 07:02:10PM +0300, Andrey Ryabinin wrote: >> When the kernel compiled with KASAN=y, GCC adds redzones >> for each variable on stack. This enlarges function's stack >> frame and causes: >> 'warning: the frame

Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andi Kleen
On Fri, Oct 16, 2015 at 07:02:10PM +0300, Andrey Ryabinin wrote: > When the kernel compiled with KASAN=y, GCC adds redzones > for each variable on stack. This enlarges function's stack > frame and causes: > 'warning: the frame size of X bytes is larger than Y bytes' > > The worst case I've

Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Abylay Ospan
Hello, Acked-by: Abylay Ospan 2015-10-16 19:02 GMT+03:00 Andrey Ryabinin : > When the kernel compiled with KASAN=y, GCC adds redzones > for each variable on stack. This enlarges function's stack > frame and causes: > 'warning: the frame size of X bytes is larger than Y bytes' > > The

[PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andrey Ryabinin
When the kernel compiled with KASAN=y, GCC adds redzones for each variable on stack. This enlarges function's stack frame and causes: 'warning: the frame size of X bytes is larger than Y bytes' The worst case I've seen for now is following: ../net/wireless/nl80211.c: In function

Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andrey Ryabinin
16 октября 2015 г. 19:47:00 GMT+03:00, Andi Kleen пишет: >On Fri, Oct 16, 2015 at 07:02:10PM +0300, Andrey Ryabinin wrote: >> When the kernel compiled with KASAN=y, GCC adds redzones >> for each variable on stack. This enlarges function's stack >> frame and causes: >>

Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Abylay Ospan
Hello, Acked-by: Abylay Ospan 2015-10-16 19:02 GMT+03:00 Andrey Ryabinin : > When the kernel compiled with KASAN=y, GCC adds redzones > for each variable on stack. This enlarges function's stack > frame and causes: > 'warning: the frame size

[PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andrey Ryabinin
When the kernel compiled with KASAN=y, GCC adds redzones for each variable on stack. This enlarges function's stack frame and causes: 'warning: the frame size of X bytes is larger than Y bytes' The worst case I've seen for now is following: ../net/wireless/nl80211.c: In function

Re: [PATCH] Disable -Wframe-larger-than warnings with KASAN=y

2015-10-16 Thread Andi Kleen
On Fri, Oct 16, 2015 at 07:02:10PM +0300, Andrey Ryabinin wrote: > When the kernel compiled with KASAN=y, GCC adds redzones > for each variable on stack. This enlarges function's stack > frame and causes: > 'warning: the frame size of X bytes is larger than Y bytes' > > The worst case I've