From: kbuild test robot <fengguang.wu@intel.com>
To: Paul Lawrence <paullawrence@google.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Greg Hackmann <ghackmann@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 156/234] lib/test_kasan.c:478:27: sparse: Variable length array is used.
Date: Sat, 23 Dec 2017 20:49:46 +0800 [thread overview]
Message-ID: <201712232003.uOAMlAaO%fengguang.wu@intel.com> (raw)
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>
reply other threads:[~2017-12-23 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201712232003.uOAMlAaO%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=ghackmann@google.com \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=paullawrence@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox