linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 156/234] lib/test_kasan.c:478:27: sparse: Variable length array is used.
@ 2017-12-23 12:49 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-23 12:49 UTC (permalink / raw)
  To: Paul Lawrence
  Cc: kbuild-all, Johannes Weiner, Greg Hackmann, Andrew Morton,
	Linux Memory Management List

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   a4f20e3ed193cd4b2f742ce37f88112c7441146f
commit: e329261f769afff2744bfeaad6cb7e8c03048e27 [156/234] kasan: add tests for alloca poisoning
reproduce:
        # apt-get install sparse
        git checkout e329261f769afff2744bfeaad6cb7e8c03048e27
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +478 lib/test_kasan.c

   474	
   475	static noinline void __init kasan_alloca_oob_left(void)
   476	{
   477		volatile int i = 10;
 > 478		char alloca_array[i];
   479		char *p = alloca_array - 1;
   480	
   481		pr_info("out-of-bounds to left on alloca\n");
   482		*(volatile char *)p;
   483	}
   484	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-23 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-23 12:49 [mmotm:master 156/234] lib/test_kasan.c:478:27: sparse: Variable length array is used kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox