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]
Message-ID: <202110201910.wEpEJgay-lkp@intel.com>
Date:   Wed, 20 Oct 2021 19:17:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mike Rapoport <rppt@...ux.ibm.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Mike Rapoport <rppt@...nel.org>, linux-kernel@...r.kernel.org
Subject: [rppt-memblock:for-kernelci 2/2] drivers/of/of_reserved_mem.c:49:3:
 error: implicit declaration of function 'kmemleak_free_part_phys'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git for-kernelci
head:   36add14f3a5924c220da8fd7f5d8763ef993bff8
commit: 36add14f3a5924c220da8fd7f5d8763ef993bff8 [2/2] memblock: exclude NOMAP regions from kmemleak
config: arm-buildonly-randconfig-r006-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
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/rppt/memblock.git/commit/?id=36add14f3a5924c220da8fd7f5d8763ef993bff8
        git remote add rppt-memblock git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git
        git fetch --no-tags rppt-memblock for-kernelci
        git checkout 36add14f3a5924c220da8fd7f5d8763ef993bff8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm 

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

All errors (new ones prefixed by >>):

>> drivers/of/of_reserved_mem.c:49:3: error: implicit declaration of function 'kmemleak_free_part_phys' [-Werror,-Wimplicit-function-declaration]
                   kmemleak_free_part_phys(base, size);
                   ^
   1 error generated.


vim +/kmemleak_free_part_phys +49 drivers/of/of_reserved_mem.c

    30	
    31	static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
    32		phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap,
    33		phys_addr_t *res_base)
    34	{
    35		phys_addr_t base;
    36		int err = 0;
    37	
    38		end = !end ? MEMBLOCK_ALLOC_ANYWHERE : end;
    39		align = !align ? SMP_CACHE_BYTES : align;
    40		base = memblock_phys_alloc_range(size, align, start, end);
    41		if (!base)
    42			return -ENOMEM;
    43	
    44		*res_base = base;
    45		if (nomap) {
    46			err = memblock_mark_nomap(base, size);
    47			if (err)
    48				memblock_free(base, size);
  > 49			kmemleak_free_part_phys(base, size);
    50		}
    51	
    52		return err;
    53	}
    54	

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

Download attachment ".config.gz" of type "application/gzip" (34499 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ