lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 2 Oct 2022 10:53:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Youling Tang <tangyouling@...ngson.cn>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Huacai Chen <chenhuacai@...nel.org>
Subject: [chenhuacai-loongson:loongarch-next 16/21]
 arch/loongarch/kernel/crash_dump.c:15:17: error: implicit declaration of
 function 'copy_to_iter'; did you mean 'copy_to_user'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git loongarch-next
head:   c145c62399b789b70f8730e0e73f6dc4c2f9d320
commit: f35d1714098e4385732a3a6137bec6e6796e923b [16/21] LoongArch: Add kdump support
config: loongarch-randconfig-r033-20221002
compiler: loongarch64-linux-gcc (GCC) 12.1.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/chenhuacai/linux-loongson.git/commit/?id=f35d1714098e4385732a3a6137bec6e6796e923b
        git remote add chenhuacai-loongson https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git
        git fetch --no-tags chenhuacai-loongson loongarch-next
        git checkout f35d1714098e4385732a3a6137bec6e6796e923b
        # save the config file
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 ARCH=loongarch 

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   arch/loongarch/kernel/crash_dump.c: In function 'copy_oldmem_page':
>> arch/loongarch/kernel/crash_dump.c:15:17: error: implicit declaration of function 'copy_to_iter'; did you mean 'copy_to_user'? [-Werror=implicit-function-declaration]
      15 |         csize = copy_to_iter(vaddr + offset, csize, iter);
         |                 ^~~~~~~~~~~~
         |                 copy_to_user
   cc1: some warnings being treated as errors


vim +15 arch/loongarch/kernel/crash_dump.c

     5	
     6	ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn,
     7				 size_t csize, unsigned long offset)
     8	{
     9		void *vaddr;
    10	
    11		if (!csize)
    12			return 0;
    13	
    14		vaddr = kmap_local_pfn(pfn);
  > 15		csize = copy_to_iter(vaddr + offset, csize, iter);

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (141737 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ