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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YlDbJSy4AI3/cODr@MiWiFi-R3L-srv>
Date:   Sat, 9 Apr 2022 09:02:29 +0800
From:   Baoquan He <bhe@...hat.com>
To:     kernel test robot <lkp@...el.com>
Cc:     akpm@...ux-foundation.org, willy@...radead.org,
        kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        kexec@...ts.infradead.org, hch@....de, yangtiezhu@...ngson.cn,
        amit.kachhap@....com, linux-fsdevel@...r.kernel.org,
        viro@...iv.linux.org.uk
Subject: Re: [PATCH v5 RESEND 1/3] vmcore: Convert copy_oldmem_page() to take
 an iov_iter

On 04/08/22 at 09:17pm, kernel test robot wrote:
> Hi Baoquan,
> 
> Thank you for the patch! Perhaps something to improve:
> 
> [auto build test WARNING on powerpc/next]
> [also build test WARNING on s390/features linus/master v5.18-rc1 next-20220408]
> [cannot apply to tip/x86/core hnaz-mm/master arm64/for-next/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/intel-lab-lkp/linux/commits/Baoquan-He/Convert-vmcore-to-use-an-iov_iter/20220408-170846
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
> config: sh-randconfig-s032-20220408 (https://download.01.org/0day-ci/archive/20220408/202204082128.JKXXDGpa-lkp@intel.com/config)
> compiler: sh4-linux-gcc (GCC) 11.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross

Thanks for reporting this, do I need to try this on ppc system?

I tried on x86_64 system, for the 1st step, I got this:

[ ~]# wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
/root/bin/make.cross: No such file or directory

What else should I do to proceed?

Thanks
Baoquan

>         chmod +x ~/bin/make.cross
>         # apt-get install sparse
>         # sparse version: v0.6.4-dirty
>         # https://github.com/intel-lab-lkp/linux/commit/a5e42962f5c0bea73aa382a2415094b4bd6c6c73
>         git remote add linux-review https://github.com/intel-lab-lkp/linux
>         git fetch --no-tags linux-review Baoquan-He/Convert-vmcore-to-use-an-iov_iter/20220408-170846
>         git checkout a5e42962f5c0bea73aa382a2415094b4bd6c6c73
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sh SHELL=/bin/bash arch/sh/kernel/
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
> 
> 
> sparse warnings: (new ones prefixed by >>)
> >> arch/sh/kernel/crash_dump.c:23:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *addr @@     got void [noderef] __iomem * @@
>    arch/sh/kernel/crash_dump.c:23:36: sparse:     expected void const *addr
>    arch/sh/kernel/crash_dump.c:23:36: sparse:     got void [noderef] __iomem *
> 
> vim +23 arch/sh/kernel/crash_dump.c
> 
>     13	
>     14	ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn,
>     15				 size_t csize, unsigned long offset)
>     16	{
>     17		void  __iomem *vaddr;
>     18	
>     19		if (!csize)
>     20			return 0;
>     21	
>     22		vaddr = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE);
>   > 23		csize = copy_to_iter(vaddr + offset, csize, iter);
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ