tree:
https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git
review/kasan-vmalloc-tagging
head: bd2110728a4d621f8a26a266ae1bd6ea2b8a1efa
commit: d045c20eea99e4c9ca4a5bee4907f728fa9181f2 [23/34] kasan, vmalloc: add vmalloc
support to SW_TAGS
config: arm64-randconfig-r025-20211207
(
https://download.01.org/0day-ci/archive/20211208/202112080320.leXso0Ch-lk...)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git/commit/?...
git remote add melver
https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git
git fetch --no-tags melver review/kasan-vmalloc-tagging
git checkout d045c20eea99e4c9ca4a5bee4907f728fa9181f2
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> kernel/scs.c:35:38: error: too few arguments to function call,
expected 3, have 2
kasan_unpoison_vmalloc(s, SCS_SIZE);
~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/kasan.h:458:21: note: 'kasan_unpoison_vmalloc' declared here
static inline void *kasan_unpoison_vmalloc(const void *start,
^
kernel/scs.c:81:36: error: too few arguments to function call, expected 3, have 2
kasan_unpoison_vmalloc(s, SCS_SIZE);
~~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/kasan.h:458:21: note: 'kasan_unpoison_vmalloc' declared here
static inline void *kasan_unpoison_vmalloc(const void *start,
^
2 errors generated.
vim +35 kernel/scs.c
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 26
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 27 static void *__scs_alloc(int node)
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 28 {
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 29 int i;
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 30 void *s;
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 31
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 32 for (i = 0; i < NR_CACHED_SCS; i++) {
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 33 s = this_cpu_xchg(scs_cache[i], NULL);
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 34 if (s) {
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 @35 kasan_unpoison_vmalloc(s, SCS_SIZE);
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 36 memset(s, 0, SCS_SIZE);
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 37 return s;
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 38 }
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 39 }
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 40
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 41 return __vmalloc_node_range(SCS_SIZE, 1,
VMALLOC_START, VMALLOC_END,
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 42 GFP_SCS, PAGE_KERNEL, 0, node,
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 43 __builtin_return_address(0));
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 44 }
a2abe7cbd8fe2d Sami Tolvanen 2020-11-30 45
:::::: The code at line 35 was first introduced by commit
:::::: a2abe7cbd8fe2db5ff386c968e2273d9dc6c468d scs: switch to vmapped shadow stacks
:::::: TO: Sami Tolvanen <samitolvanen(a)google.com>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org