param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f8fbb47c6e86c0b75f8df864db702c3e3f757361
commit: f166b111e0491486fca0d105f09655ab718bd1c8 rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
date: 11 months ago
config: x86_64-randconfig-r031-20210811 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d39ebdae674c8efc84ebe8dc32716ec353220530)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f166b111e0491486fca0d105f09655ab718bd1c8
# 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 errors (new ones prefixed by >>):
>> param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
while (!atomic_load(&args->percpu_list_ptr)) {}
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1228:2: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
>> param_test.c:1230:10: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
while (!atomic_load(&args->stop)) {
^ ~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1237:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
if (expect_b != atomic_load(&list_b.c[cpu_b].head->data)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1243:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_b);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1254:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
expect_a = atomic_load(&list_a.c[cpu_a].head->data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1261:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
if (expect_a != atomic_load(&list_a.c[cpu_a].head->data)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1267:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1275:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
expect_b = atomic_load(&list_b.c[cpu_b].head->data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1334:2: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
atomic_store(&thread_args.stop, 1);
^ ~~~~~~~~~~~~~~~~~
/opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
10 errors generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: h8300-randconfig-s032-20210812 (attached as .config)
compiler: h8300-linux-gcc (GCC) 10.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd7...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/crypto/keembay/ drivers/dma/dw-axi-dmac/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:53: sparse: sparse: shift too big (32) for type unsigned long
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
224 dma_addr_t addr, size_t len)
225 {
> 226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
227 return -EINVAL;
228
229 if (!len)
230 return 0;
231
232 rctx->dma_list_tail->src_adr = (u32)addr;
233 rctx->dma_list_tail->src_len = (u32)len;
234 rctx->dma_list_tail->ll_flags = 0;
235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
236 (virt_to_phys(rctx->dma_list_tail) -
237 virt_to_phys(rctx->dma_list_head)) +
238 sizeof(*rctx->dma_list_tail);
239
240 rctx->dma_list_tail++;
241
242 return 0;
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[block:for-5.15/io_uring 43/45] kernel/exit.c:780:24: error: too few arguments to function call, single argument 'files' was not specified
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.15/io_uring
head: 22ec865ddfba31ddf26b9d2b4a01e8437ca1f727
commit: 6a32aa46fa0b531970581d5b425514da7f9f8e46 [43/45] io_uring: remove files pointer in cancellation functions
config: s390-randconfig-r044-20210812 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 767496d19cb9a1fbba57ff08095faa161998ee36)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.15/io_uring
git checkout 6a32aa46fa0b531970581d5b425514da7f9f8e46
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=s390 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 >>):
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> kernel/exit.c:780:24: error: too few arguments to function call, single argument 'files' was not specified
io_uring_files_cancel();
~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/io_uring.h:36:20: note: 'io_uring_files_cancel' declared here
static inline void io_uring_files_cancel(struct files_struct *files)
^
12 warnings and 1 error generated.
vim +/files +780 kernel/exit.c
726
727 void __noreturn do_exit(long code)
728 {
729 struct task_struct *tsk = current;
730 int group_dead;
731
732 /*
733 * We can get here from a kernel oops, sometimes with preemption off.
734 * Start by checking for critical errors.
735 * Then fix up important state like USER_DS and preemption.
736 * Then do everything else.
737 */
738
739 WARN_ON(blk_needs_flush_plug(tsk));
740
741 if (unlikely(in_interrupt()))
742 panic("Aiee, killing interrupt handler!");
743 if (unlikely(!tsk->pid))
744 panic("Attempted to kill the idle task!");
745
746 /*
747 * If do_exit is called because this processes oopsed, it's possible
748 * that get_fs() was left as KERNEL_DS, so reset it to USER_DS before
749 * continuing. Amongst other possible reasons, this is to prevent
750 * mm_release()->clear_child_tid() from writing to a user-controlled
751 * kernel address.
752 */
753 force_uaccess_begin();
754
755 if (unlikely(in_atomic())) {
756 pr_info("note: %s[%d] exited with preempt_count %d\n",
757 current->comm, task_pid_nr(current),
758 preempt_count());
759 preempt_count_set(PREEMPT_ENABLED);
760 }
761
762 profile_task_exit(tsk);
763 kcov_task_exit(tsk);
764
765 ptrace_event(PTRACE_EVENT_EXIT, code);
766
767 validate_creds_for_do_exit(tsk);
768
769 /*
770 * We're taking recursive faults here in do_exit. Safest is to just
771 * leave this task alone and wait for reboot.
772 */
773 if (unlikely(tsk->flags & PF_EXITING)) {
774 pr_alert("Fixing recursive fault but reboot is needed!\n");
775 futex_exit_recursive(tsk);
776 set_current_state(TASK_UNINTERRUPTIBLE);
777 schedule();
778 }
779
> 780 io_uring_files_cancel();
781 exit_signals(tsk); /* sets PF_EXITING */
782
783 /* sync mm's RSS info before statistics gathering */
784 if (tsk->mm)
785 sync_mm_rss(tsk->mm);
786 acct_update_integrals(tsk);
787 group_dead = atomic_dec_and_test(&tsk->signal->live);
788 if (group_dead) {
789 /*
790 * If the last thread of global init has exited, panic
791 * immediately to get a useable coredump.
792 */
793 if (unlikely(is_global_init(tsk)))
794 panic("Attempted to kill init! exitcode=0x%08x\n",
795 tsk->signal->group_exit_code ?: (int)code);
796
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[block:for-5.15/io_uring 43/45] kernel/exit.c:780:24: error: too few arguments to function call, single argument 'files' was not specified
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.15/io_uring
head: 22ec865ddfba31ddf26b9d2b4a01e8437ca1f727
commit: 6a32aa46fa0b531970581d5b425514da7f9f8e46 [43/45] io_uring: remove files pointer in cancellation functions
config: s390-randconfig-r014-20210812 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 767496d19cb9a1fbba57ff08095faa161998ee36)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.15/io_uring
git checkout 6a32aa46fa0b531970581d5b425514da7f9f8e46
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=s390 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 >>):
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from kernel/exit.c:51:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> kernel/exit.c:780:24: error: too few arguments to function call, single argument 'files' was not specified
io_uring_files_cancel();
~~~~~~~~~~~~~~~~~~~~~ ^
include/linux/io_uring.h:36:20: note: 'io_uring_files_cancel' declared here
static inline void io_uring_files_cancel(struct files_struct *files)
^
12 warnings and 1 error generated.
vim +/files +780 kernel/exit.c
726
727 void __noreturn do_exit(long code)
728 {
729 struct task_struct *tsk = current;
730 int group_dead;
731
732 /*
733 * We can get here from a kernel oops, sometimes with preemption off.
734 * Start by checking for critical errors.
735 * Then fix up important state like USER_DS and preemption.
736 * Then do everything else.
737 */
738
739 WARN_ON(blk_needs_flush_plug(tsk));
740
741 if (unlikely(in_interrupt()))
742 panic("Aiee, killing interrupt handler!");
743 if (unlikely(!tsk->pid))
744 panic("Attempted to kill the idle task!");
745
746 /*
747 * If do_exit is called because this processes oopsed, it's possible
748 * that get_fs() was left as KERNEL_DS, so reset it to USER_DS before
749 * continuing. Amongst other possible reasons, this is to prevent
750 * mm_release()->clear_child_tid() from writing to a user-controlled
751 * kernel address.
752 */
753 force_uaccess_begin();
754
755 if (unlikely(in_atomic())) {
756 pr_info("note: %s[%d] exited with preempt_count %d\n",
757 current->comm, task_pid_nr(current),
758 preempt_count());
759 preempt_count_set(PREEMPT_ENABLED);
760 }
761
762 profile_task_exit(tsk);
763 kcov_task_exit(tsk);
764
765 ptrace_event(PTRACE_EVENT_EXIT, code);
766
767 validate_creds_for_do_exit(tsk);
768
769 /*
770 * We're taking recursive faults here in do_exit. Safest is to just
771 * leave this task alone and wait for reboot.
772 */
773 if (unlikely(tsk->flags & PF_EXITING)) {
774 pr_alert("Fixing recursive fault but reboot is needed!\n");
775 futex_exit_recursive(tsk);
776 set_current_state(TASK_UNINTERRUPTIBLE);
777 schedule();
778 }
779
> 780 io_uring_files_cancel();
781 exit_signals(tsk); /* sets PF_EXITING */
782
783 /* sync mm's RSS info before statistics gathering */
784 if (tsk->mm)
785 sync_mm_rss(tsk->mm);
786 acct_update_integrals(tsk);
787 group_dead = atomic_dec_and_test(&tsk->signal->live);
788 if (group_dead) {
789 /*
790 * If the last thread of global init has exited, panic
791 * immediately to get a useable coredump.
792 */
793 if (unlikely(is_global_init(tsk)))
794 panic("Attempted to kill init! exitcode=0x%08x\n",
795 tsk->signal->group_exit_code ?: (int)code);
796
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[block:for-5.15/io_uring 43/45] kernel/exit.c:780:2: error: too few arguments to function 'io_uring_files_cancel'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.15/io_uring
head: 22ec865ddfba31ddf26b9d2b4a01e8437ca1f727
commit: 6a32aa46fa0b531970581d5b425514da7f9f8e46 [43/45] io_uring: remove files pointer in cancellation functions
config: s390-randconfig-r031-20210812 (attached as .config)
compiler: s390-linux-gcc (GCC) 10.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.15/io_uring
git checkout 6a32aa46fa0b531970581d5b425514da7f9f8e46
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=s390 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/exit.c: In function 'do_exit':
>> kernel/exit.c:780:2: error: too few arguments to function 'io_uring_files_cancel'
780 | io_uring_files_cancel();
| ^~~~~~~~~~~~~~~~~~~~~
In file included from kernel/exit.c:66:
include/linux/io_uring.h:36:20: note: declared here
36 | static inline void io_uring_files_cancel(struct files_struct *files)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/exit.c: At top level:
kernel/exit.c:1810:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
1810 | __weak void abort(void)
| ^~~~~
vim +/io_uring_files_cancel +780 kernel/exit.c
726
727 void __noreturn do_exit(long code)
728 {
729 struct task_struct *tsk = current;
730 int group_dead;
731
732 /*
733 * We can get here from a kernel oops, sometimes with preemption off.
734 * Start by checking for critical errors.
735 * Then fix up important state like USER_DS and preemption.
736 * Then do everything else.
737 */
738
739 WARN_ON(blk_needs_flush_plug(tsk));
740
741 if (unlikely(in_interrupt()))
742 panic("Aiee, killing interrupt handler!");
743 if (unlikely(!tsk->pid))
744 panic("Attempted to kill the idle task!");
745
746 /*
747 * If do_exit is called because this processes oopsed, it's possible
748 * that get_fs() was left as KERNEL_DS, so reset it to USER_DS before
749 * continuing. Amongst other possible reasons, this is to prevent
750 * mm_release()->clear_child_tid() from writing to a user-controlled
751 * kernel address.
752 */
753 force_uaccess_begin();
754
755 if (unlikely(in_atomic())) {
756 pr_info("note: %s[%d] exited with preempt_count %d\n",
757 current->comm, task_pid_nr(current),
758 preempt_count());
759 preempt_count_set(PREEMPT_ENABLED);
760 }
761
762 profile_task_exit(tsk);
763 kcov_task_exit(tsk);
764
765 ptrace_event(PTRACE_EVENT_EXIT, code);
766
767 validate_creds_for_do_exit(tsk);
768
769 /*
770 * We're taking recursive faults here in do_exit. Safest is to just
771 * leave this task alone and wait for reboot.
772 */
773 if (unlikely(tsk->flags & PF_EXITING)) {
774 pr_alert("Fixing recursive fault but reboot is needed!\n");
775 futex_exit_recursive(tsk);
776 set_current_state(TASK_UNINTERRUPTIBLE);
777 schedule();
778 }
779
> 780 io_uring_files_cancel();
781 exit_signals(tsk); /* sets PF_EXITING */
782
783 /* sync mm's RSS info before statistics gathering */
784 if (tsk->mm)
785 sync_mm_rss(tsk->mm);
786 acct_update_integrals(tsk);
787 group_dead = atomic_dec_and_test(&tsk->signal->live);
788 if (group_dead) {
789 /*
790 * If the last thread of global init has exited, panic
791 * immediately to get a useable coredump.
792 */
793 if (unlikely(is_global_init(tsk)))
794 panic("Attempted to kill init! exitcode=0x%08x\n",
795 tsk->signal->group_exit_code ?: (int)code);
796
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[norov:demotion-final 5/6] mm/mempolicy.c:3074: undefined reference to `set_demotion_target'
by kernel test robot
tree: https://github.com/norov/linux demotion-final
head: f669201ff5142089471efbff9844cfc8b83522cc
commit: f2d905fe922bde5baddb485d6152a431b7954e50 [5/6] sysfs: add /sys/kernel/mm/numa/demotion_list
config: x86_64-randconfig-c022-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/norov/linux/commit/f2d905fe922bde5baddb485d6152a431b79...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov demotion-final
git checkout f2d905fe922bde5baddb485d6152a431b7954e50
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 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 >>):
ld: mm/mempolicy.o: in function `numa_demotion_list_store':
>> mm/mempolicy.c:3074: undefined reference to `set_demotion_target'
vim +3074 mm/mempolicy.c
3050
3051 static ssize_t numa_demotion_list_store(struct kobject *kobj,
3052 struct kobj_attribute *attr,
3053 const char *buf, size_t count)
3054 {
3055 nodemask_t nodes;
3056 char *nodelist;
3057 int from, to, ret;
3058
3059 nodelist = strnchr(buf, count, '>');
3060 if (!nodelist)
3061 return -EINVAL;
3062
3063 *nodelist++ = 0;
3064
3065 ret = kstrtoint(buf, 0, &to);
3066 if (ret)
3067 return ret;
3068
3069 ret = nodelist_parse(nodelist, nodes);
3070 if (ret)
3071 return ret;
3072
3073 for_each_node_mask(from, nodes) {
> 3074 ret = set_demotion_target(from, to);
3075 if (ret == -EXDEV)
3076 pr_warn("Cross-node loop for demotion: %d>%d\n", to, from);
3077 else if (ret)
3078 return ret;
3079 }
3080
3081 return count;
3082 }
3083
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [RFC PATCH v7 1/4] arm64: Make all stack walking functions use arch_stack_walk()
by kernel test robot
Hi,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on v5.14-rc5]
[also build test ERROR on next-20210812]
[cannot apply to arm64/for-next/core tip/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/madvenka-linux-microsoft-com/arm...
base: 36a21d51725af2ce0700c6ebcb6b9594aac658a6
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.3.0
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
# https://github.com/0day-ci/linux/commit/560d91e019f24a55c3d254f967eb27e4e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review madvenka-linux-microsoft-com/arm64-Make-all-stack-walking-functions-use-arch_stack_walk/20210812-222448
git checkout 560d91e019f24a55c3d254f967eb27e4ed4992e1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm64
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 >>):
arch/arm64/kernel/perf_callchain.c: In function 'perf_callchain_kernel':
>> arch/arm64/kernel/perf_callchain.c:155:2: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration]
155 | arch_stack_walk(callchain_trace, entry, current, regs);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
arch/arm64/kernel/process.c: In function 'get_wchan':
>> arch/arm64/kernel/process.c:578:2: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration]
578 | arch_stack_walk(get_wchan_cb, &wchan_info, p, NULL);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
arch/arm64/kernel/stacktrace.c:66:13: warning: no previous prototype for 'unwind_frame' [-Wmissing-prototypes]
66 | int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame)
| ^~~~~~~~~~~~
arch/arm64/kernel/stacktrace.c:139:14: warning: no previous prototype for 'walk_stackframe' [-Wmissing-prototypes]
139 | void notrace walk_stackframe(struct task_struct *tsk, struct stackframe *frame,
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/stacktrace.c: In function 'dump_backtrace':
>> arch/arm64/kernel/stacktrace.c:178:2: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration]
178 | arch_stack_walk(dump_backtrace_entry, (void *)loglvl, tsk, regs);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
arch/arm64/kernel/time.c: In function 'profile_pc':
>> arch/arm64/kernel/time.c:52:2: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration]
52 | arch_stack_walk(profile_pc_cb, &prof_pc, current, regs);
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/time.c: At top level:
arch/arm64/kernel/time.c:58:13: warning: no previous prototype for 'time_init' [-Wmissing-prototypes]
58 | void __init time_init(void)
| ^~~~~~~~~
cc1: some warnings being treated as errors
--
arch/arm64/kernel/return_address.c: In function 'return_address':
>> arch/arm64/kernel/return_address.c:42:2: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration]
42 | arch_stack_walk(save_return_addr, &data, current, NULL);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/arch_stack_walk +155 arch/arm64/kernel/perf_callchain.c
146
147 void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry,
148 struct pt_regs *regs)
149 {
150 if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) {
151 /* We don't support guest os callchain now */
152 return;
153 }
154
> 155 arch_stack_walk(callchain_trace, entry, current, regs);
156 }
157
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[android-common:android12-5.4 4/9] drivers/dma-buf/heaps/page_pool.c:236:17: sparse: sparse: symbol 'pool_shrinker' was not declared. Should it be static?
by kernel test robot
Hi John,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 82c67a98c7494b4e71dcbea03335509e9ccecfa5
commit: 44008f99d9ca0793e2562967e1da01fa74ee4a41 [4/9] ANDROID: dma-buf: system_heap: Add pagepool support to system heap
config: i386-randconfig-s001-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout 44008f99d9ca0793e2562967e1da01fa74ee4a41
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/dma-buf/heaps/ kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/dma-buf/heaps/page_pool.c:236:17: sparse: sparse: symbol 'pool_shrinker' was not declared. Should it be static?
drivers/dma-buf/heaps/page_pool.c:243:5: sparse: sparse: symbol 'dmabuf_page_pool_init_shrinker' was not declared. Should it be static?
vim +/pool_shrinker +236 drivers/dma-buf/heaps/page_pool.c
bd4db96bfc247a John Stultz 2020-10-02 235
bd4db96bfc247a John Stultz 2020-10-02 @236 struct shrinker pool_shrinker = {
bd4db96bfc247a John Stultz 2020-10-02 237 .count_objects = dmabuf_page_pool_shrink_count,
bd4db96bfc247a John Stultz 2020-10-02 238 .scan_objects = dmabuf_page_pool_shrink_scan,
bd4db96bfc247a John Stultz 2020-10-02 239 .seeks = DEFAULT_SEEKS,
bd4db96bfc247a John Stultz 2020-10-02 240 .batch = 0,
bd4db96bfc247a John Stultz 2020-10-02 241 };
bd4db96bfc247a John Stultz 2020-10-02 242
:::::: The code at line 236 was first introduced by commit
:::::: bd4db96bfc247afdaf7a4cfde85fd8147522f3e6 ANDROID: dma-buf: heaps: Add a shrinker controlled page pool
:::::: TO: John Stultz <john.stultz(a)linaro.org>
:::::: CC: John Stultz <john.stultz(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linuxppc:next-test 18/70] arch/powerpc/platforms/pseries/hotplug-cpu.c:1022:8: error: 'node_to_cpumask_map' undeclared
by kernel test robot
tree: https://github.com/linuxppc/linux next-test
head: aaf01a9f507c108cc8e86f420b0a81e21354be1b
commit: bd1dd4c5f5286df0148b5b316f37c583b8f55fa1 [18/70] powerpc/pseries: Prevent free CPU ids being reused on another node
config: powerpc-randconfig-r005-20210812 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
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
# https://github.com/linuxppc/linux/commit/bd1dd4c5f5286df0148b5b316f37c583...
git remote add linuxppc https://github.com/linuxppc/linux
git fetch --no-tags linuxppc next-test
git checkout bd1dd4c5f5286df0148b5b316f37c583b8f55fa1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/platforms/pseries/
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 >>):
arch/powerpc/platforms/pseries/hotplug-cpu.c: In function 'pseries_cpu_hotplug_init':
>> arch/powerpc/platforms/pseries/hotplug-cpu.c:1022:8: error: 'node_to_cpumask_map' undeclared (first use in this function)
1022 | node_to_cpumask_map[node]);
| ^~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/pseries/hotplug-cpu.c:1022:8: note: each undeclared identifier is reported only once for each function it appears in
vim +/node_to_cpumask_map +1022 arch/powerpc/platforms/pseries/hotplug-cpu.c
999
1000 rtas_stop_self_token = rtas_token("stop-self");
1001 qcss_tok = rtas_token("query-cpu-stopped-state");
1002
1003 if (rtas_stop_self_token == RTAS_UNKNOWN_SERVICE ||
1004 qcss_tok == RTAS_UNKNOWN_SERVICE) {
1005 printk(KERN_INFO "CPU Hotplug not supported by firmware "
1006 "- disabling.\n");
1007 return 0;
1008 }
1009
1010 smp_ops->cpu_offline_self = pseries_cpu_offline_self;
1011 smp_ops->cpu_disable = pseries_cpu_disable;
1012 smp_ops->cpu_die = pseries_cpu_die;
1013
1014 /* Processors can be added/removed only on LPAR */
1015 if (firmware_has_feature(FW_FEATURE_LPAR)) {
1016 for_each_node(node) {
1017 alloc_bootmem_cpumask_var(&node_recorded_ids_map[node]);
1018
1019 /* Record ids of CPU added at boot time */
1020 cpumask_or(node_recorded_ids_map[node],
1021 node_recorded_ids_map[node],
> 1022 node_to_cpumask_map[node]);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month