linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* default 0 if KASAN expression not working in kbuild
@ 2016-12-15 18:09 Nikolay Borisov
  2016-12-15 21:32 ` Randy Dunlap
  2016-12-19 10:57 ` Michal Marek
  0 siblings, 2 replies; 5+ messages in thread
From: Nikolay Borisov @ 2016-12-15 18:09 UTC (permalink / raw)
  To: linux-kbuild; +Cc: LKML, yann.morin.1998, mmarek

Hello,

I was doing some kasan-related debugging and when I enabled it I started
getting warnings for large stackframes. So CONFIG_FRAME_WARN has :

int "Warn for stack frames larger than (needs gcc 4.4)"
    range 0 8192
    default 0 if KASAN
    default 2048 if GCC_PLUGIN_LATENT_ENTROPY
    default 1024 if !64BIT
    default 2048 if 64BIT

This means that frame_warns should effectively be disabled when kasan is
enabled. However in my case this is not the situation.
http://sprunge.us/FiGf here is the config file. It does have
CONFIG_KASAN=y and CONFIG_FRAME_WARN=1024 . And even this is erroneous
since it's a 64bit kernel, so it should be 2k. I haven't manually set
the limit to 1k either.

Regards,
Nikolay

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-19 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15 18:09 default 0 if KASAN expression not working in kbuild Nikolay Borisov
2016-12-15 21:32 ` Randy Dunlap
2016-12-16  7:50   ` Nikolay Borisov
2016-12-16  7:53     ` Nikolay Borisov
2016-12-19 10:57 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).