tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 1075cf3343daaea3174e6916049acc89471bf9bd
commit: 3e8f32790d5812acc9368eea31901a862bb5a85f [1/5] UPSTREAM: lib/stackdepot.c: fix
global out-of-bounds in stack_slabs
config: x86_64-randconfig-a006-20200807 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
aa57cabae2fc5abc08ab3e17b45f2890fc7c9e42)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 3e8f32790d5812acc9368eea31901a862bb5a85f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/infiniband/core/umem.c:37:
In file included from include/linux/sched.h:62:
In file included from include/linux/cgroup-defs.h:16:
include/linux/percpu-refcount.h:177:3: warning: comparison of integers of different
signs: 'unsigned long' and 'int' [-Wsign-compare]
this_cpu_add(*percpu_count, nr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:526:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:397:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:280:1: note: expanded from here
this_cpu_add_8
^
arch/x86/include/asm/percpu.h:478:35: note: expanded from macro
'this_cpu_add_8'
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro
'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/infiniband/core/umem.c:37:
In file included from include/linux/sched.h:62:
In file included from include/linux/cgroup-defs.h:16:
include/linux/percpu-refcount.h:276:3: warning: comparison of integers of different
signs: 'unsigned long' and 'int' [-Wsign-compare]
this_cpu_sub(*percpu_count, nr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:536:33: note: expanded from macro 'this_cpu_sub'
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:526:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:397:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:91:1: note: expanded from here
this_cpu_add_8
^
arch/x86/include/asm/percpu.h:478:35: note: expanded from macro
'this_cpu_add_8'
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro
'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/infiniband/core/umem.c:39:
In file included from include/linux/hugetlb.h:18:
In file included from include/linux/mempolicy.h:14:
In file included from include/linux/pagemap.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different
signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/infiniband/core/umem.c:39:
In file included from include/linux/hugetlb.h:18:
In file included from include/linux/mempolicy.h:14:
In file included from include/linux/pagemap.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different
signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/infiniband/core/umem.c:42:
include/rdma/ib_umem_odp.h:143:36: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if (item->odp_data->notifiers_seq != mmu_seq)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~
drivers/infiniband/core/umem.c:357:15: warning: comparison of integers of different
signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
else if (ret != length)
~~~ ^ ~~~~~~
6 warnings generated.
/tmp/umem-526223.s: Assembler messages:
> /tmp/umem-526223.s:168: Warning: no instruction mnemonic suffix
given and no register operands; using default for `bts'
--
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro
'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/input/touchscreen/atmel_mxt_ts.c:15:
In file included from include/linux/acpi.h:26:
In file included from include/linux/resource_ext.h:19:
In file included from include/linux/slab.h:113:
In file included from include/linux/kasan.h:4:
In file included from include/linux/sched.h:62:
In file included from include/linux/cgroup-defs.h:16:
include/linux/percpu-refcount.h:276:3: warning: comparison of integers of different
signs: 'unsigned long' and 'int' [-Wsign-compare]
this_cpu_sub(*percpu_count, nr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:536:33: note: expanded from macro 'this_cpu_sub'
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:526:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:397:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:123:1: note: expanded from here
this_cpu_add_8
^
arch/x86/include/asm/percpu.h:478:35: note: expanded from macro
'this_cpu_add_8'
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro
'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/input/touchscreen/atmel_mxt_ts.c:24:
In file included from include/linux/interrupt.h:12:
In file included from include/linux/hardirq.h:8:
In file included from arch/x86/include/asm/hardirq.h:5:
In file included from include/linux/irq.h:418:
In file included from arch/x86/include/asm/hw_irq.h:26:
In file included from arch/x86/include/asm/sections.h:5:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different
signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/input/touchscreen/atmel_mxt_ts.c:24:
In file included from include/linux/interrupt.h:12:
In file included from include/linux/hardirq.h:8:
In file included from arch/x86/include/asm/hardirq.h:5:
In file included from include/linux/irq.h:418:
In file included from arch/x86/include/asm/hw_irq.h:26:
In file included from arch/x86/include/asm/sections.h:5:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different
signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
drivers/input/touchscreen/atmel_mxt_ts.c:528:15: warning: comparison of integers of
different signs: 'int' and 'unsigned long' [-Wsign-compare]
return event < ARRAY_SIZE(str) ? str[event] : "UNKNOWN ";
~~~~~ ^ ~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:707:18: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (id = 0; id < data->num_touchids; id++) {
~~ ^ ~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:726:18: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (id = 0; id < data->num_touchids; id++) {
~~ ^ ~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:758:10: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
if (ret == count) {
~~~ ^ ~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:760:17: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
} else if (ret != count) {
~~~ ^ ~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:773:10: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
if (ret == count) {
~~~ ^ ~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:775:17: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
} else if (ret != count) {
~~~ ^ ~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:789:10: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
if (ret == count) {
~~~ ^ ~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:1619:20: warning: comparison of integers of
different signs: 'int' and 'const size_t' (aka 'const unsigned
long') [-Wsign-compare]
if (index + size > pdata->config_length) {
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:3027:10: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (ret != len)
~~~ ^ ~~~
drivers/input/touchscreen/atmel_mxt_ts.c:3047:16: warning: comparison of integers of
different signs: 'int' and 'size_t' (aka 'unsigned long')
[-Wsign-compare]
for (i = 0; i < mxt_obj_size(object); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:3185:12: warning: comparison of integers of
different signs: 'loff_t' (aka 'long long') and 'size_t' (aka
'unsigned long') [-Wsign-compare]
if (*ppos >= mxt->T37_buf_size)
~~~~~ ^ ~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/atmel_mxt_ts.c:3257:12: warning: comparison of integers of
different signs: 'loff_t' (aka 'long long') and 'size_t' (aka
'unsigned long') [-Wsign-compare]
if (*ppos >= mxt->object_str_size)
~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
17 warnings generated.
/tmp/atmel_mxt_ts-758632.s: Assembler messages:
> /tmp/atmel_mxt_ts-758632.s:8328: Warning: no instruction mnemonic
suffix given and no register operands; using default for `bts'
/tmp/atmel_mxt_ts-758632.s:8335: Warning: no instruction mnemonic suffix given and no
register operands; using default for `bts'
/tmp/atmel_mxt_ts-758632.s:8360: Warning: no instruction mnemonic suffix given and no
register operands; using default for `bts'
/tmp/atmel_mxt_ts-758632.s:8367: Warning: no instruction mnemonic suffix given and no
register operands; using default for `bts'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org