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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 11 Mar 2022 20:30:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Linus Walleij <linus.walleij@...aro.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.17-rc1 6/8]
 drivers/xen/xenfs/xenstored.c:42:20: warning: incompatible pointer to
 integer conversion passing 'struct xenstore_domain_interface *' to parameter
 of type 'unsigned long'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.17-rc1
head:   66e9038ef48dc66c07b12443b73e2d1f3f12cbab
commit: 5976b9fa0b76bace6d7b038a7e1941175da8f5c5 [6/8] ARM: Compile the kernel into VMALLOC
config: arm-randconfig-r036-20220310 (https://download.01.org/0day-ci/archive/20220311/202203112032.czFw7ztl-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=5976b9fa0b76bace6d7b038a7e1941175da8f5c5
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.17-rc1
        git checkout 5976b9fa0b76bace6d7b038a7e1941175da8f5c5
        # 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=arm SHELL=/bin/bash drivers/xen/xenfs/

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

All warnings (new ones prefixed by >>):

>> drivers/xen/xenfs/xenstored.c:42:20: warning: incompatible pointer to integer conversion passing 'struct xenstore_domain_interface *' to parameter of type 'unsigned long' [-Wint-conversion]
                               virt_to_pfn(xen_store_interface),
                                           ^~~~~~~~~~~~~~~~~~~
   arch/arm/include/asm/memory.h:323:55: note: passing argument to parameter 'kaddr' here
   static inline unsigned long virt_to_pfn(unsigned long kaddr)
                                                         ^
   1 warning generated.


vim +42 drivers/xen/xenfs/xenstored.c

655d406a7c80bf Ian Campbell 2009-02-06  33  
655d406a7c80bf Ian Campbell 2009-02-06  34  static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma)
655d406a7c80bf Ian Campbell 2009-02-06  35  {
655d406a7c80bf Ian Campbell 2009-02-06  36  	size_t size = vma->vm_end - vma->vm_start;
655d406a7c80bf Ian Campbell 2009-02-06  37  
655d406a7c80bf Ian Campbell 2009-02-06  38  	if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0))
655d406a7c80bf Ian Campbell 2009-02-06  39  		return -EINVAL;
655d406a7c80bf Ian Campbell 2009-02-06  40  
655d406a7c80bf Ian Campbell 2009-02-06  41  	if (remap_pfn_range(vma, vma->vm_start,
655d406a7c80bf Ian Campbell 2009-02-06 @42  			    virt_to_pfn(xen_store_interface),
655d406a7c80bf Ian Campbell 2009-02-06  43  			    size, vma->vm_page_prot))
655d406a7c80bf Ian Campbell 2009-02-06  44  		return -EAGAIN;
655d406a7c80bf Ian Campbell 2009-02-06  45  
655d406a7c80bf Ian Campbell 2009-02-06  46  	return 0;
655d406a7c80bf Ian Campbell 2009-02-06  47  }
655d406a7c80bf Ian Campbell 2009-02-06  48  

:::::: The code at line 42 was first introduced by commit
:::::: 655d406a7c80bffc03263d071b6ba1e0fcf548f9 xen: add /proc/xen/xsd_{kva,port} to xenfs

:::::: TO: Ian Campbell <ian.campbell@...rix.com>
:::::: CC: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ