All of lore.kernel.org
 help / color / mirror / Atom feed
* KASAN can't change FRAME_WARN
@ 2016-04-19 17:48 Shi, Yang
  2016-04-20 16:03 ` Andrey Ryabinin
  0 siblings, 1 reply; 2+ messages in thread
From: Shi, Yang @ 2016-04-19 17:48 UTC (permalink / raw)
  To: aryabinin; +Cc: linux-kernel@vger.kernel.org >> LKML

Hi Andrey,

When I enable KASAN for 4.5 and 4.6 (I didn't try with older versions), 
I got FRAME_WARN warning for frame size exceeds 2048 bytes.

Then I found the kconfig looks like:

range 0 8192
default 0 if KASAN
default 1024 if !64BIT
default 2048 if 64BIT

In my understanding, FRAME_WARN should be 0 once KASAN is enabled, but 
it is still 2048. I tried a couple of fixes, i.e.

default 0 if KASAN
default 1024 if (!KASAN && !64BIT)
default 2048 if (!KASAN && 64BIT)

But, nothing works, so I have to add "depends on !KASAN" to disable 
FRAME_WARN completely, but it causes the kernel image size increased.

Any hint is appreciated.

Thanks,
Yang

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

end of thread, other threads:[~2016-04-20 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 17:48 KASAN can't change FRAME_WARN Shi, Yang
2016-04-20 16:03 ` Andrey Ryabinin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.