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: <202111190957.44Cb7w33-lkp@intel.com>
Date:   Fri, 19 Nov 2021 09:44:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Xiaoming Ni <nixiaoming@...wei.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luis Chamberlain <mcgrof@...nel.org>,
        Kees Cook <keescook@...omium.org>
Subject: [mcgrof-next:20211118-sysctl-cleanups-set-04-v2 1/36]
 fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function
 'kmemleak_not_leak'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head:   3110d41a56792588bd2f64621080948b0fceb6ab
commit: 0de3e8b302495fb40dbdeec425d577618b3be169 [1/36] sysctl: add a new register_sysctl_init() interface
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.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/mcgrof/linux-next.git/commit/?id=0de3e8b302495fb40dbdeec425d577618b3be169
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
        git checkout 0de3e8b302495fb40dbdeec425d577618b3be169
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32 

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 >>):

   fs/proc/proc_sysctl.c: In function '__register_sysctl_init':
>> fs/proc/proc_sysctl.c:1415:9: error: implicit declaration of function 'kmemleak_not_leak' [-Werror=implicit-function-declaration]
    1415 |         kmemleak_not_leak(hdr);
         |         ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/kmemleak_not_leak +1415 fs/proc/proc_sysctl.c

  1386	
  1387	/**
  1388	 * __register_sysctl_init() - register sysctl table to path
  1389	 * @path: path name for sysctl base
  1390	 * @table: This is the sysctl table that needs to be registered to the path
  1391	 * @table_name: The name of sysctl table, only used for log printing when
  1392	 *              registration fails
  1393	 *
  1394	 * The sysctl interface is used by userspace to query or modify at runtime
  1395	 * a predefined value set on a variable. These variables however have default
  1396	 * values pre-set. Code which depends on these variables will always work even
  1397	 * if register_sysctl() fails. If register_sysctl() fails you'd just loose the
  1398	 * ability to query or modify the sysctls dynamically at run time. Chances of
  1399	 * register_sysctl() failing on init are extremely low, and so for both reasons
  1400	 * this function does not return any error as it is used by initialization code.
  1401	 *
  1402	 * Context: Can only be called after sysctl base path has been registered
  1403	 *          It is recommended to call this interface in core_initcall() and
  1404	 *          later initcall(), not in early_initcall() and earlier stages.
  1405	 */
  1406	void __init __register_sysctl_init(const char *path, struct ctl_table *table,
  1407					 const char *table_name)
  1408	{
  1409		struct ctl_table_header *hdr = register_sysctl(path, table);
  1410	
  1411		if (unlikely(!hdr)) {
  1412			pr_err("failed when register_sysctl %s to %s\n", table_name, path);
  1413			return;
  1414		}
> 1415		kmemleak_not_leak(hdr);
  1416	}
  1417	

---
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" (6136 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ