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, 30 Jan 2022 10:52:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mickaël Salaün <mic@...ux.microsoft.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect
 type in argument 3 (different address spaces)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next
head:   e8a1a72b5883a6aa1480e0a46f1df1960e18fa3a
commit: c96303ec34ab5dffd825142d2c1b30484b6ca879 [1/4] printk: Move back proc_dointvec_minmax_sysadmin() to sysctl.c
config: sparc-randconfig-s032-20220130 (https://download.01.org/0day-ci/archive/20220130/202201301017.4PgkIeBv-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/commit/?id=c96303ec34ab5dffd825142d2c1b30484b6ca879
        git remote add mic git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git
        git fetch --no-tags mic next
        git checkout c96303ec34ab5dffd825142d2c1b30484b6ca879
        # 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=sparc SHELL=/bin/bash

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 >>)
>> kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void * @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:897:51: sparse:     expected void *
   kernel/sysctl.c:897:51: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:891:5: sparse: sparse: symbol 'proc_dointvec_minmax_sysadmin' redeclared with different type (incompatible argument 3 (different address spaces)):
>> kernel/sysctl.c:891:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )
   kernel/sysctl.c: note: in included file (through include/linux/umh.h, include/linux/kmod.h, include/linux/module.h):
   include/linux/sysctl.h:72:5: sparse: note: previously declared as:
>> include/linux/sysctl.h:72:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )

vim +897 kernel/sysctl.c

   890	
 > 891	int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
   892					void __user *buffer, size_t *lenp, loff_t *ppos)
   893	{
   894		if (write && !capable(CAP_SYS_ADMIN))
   895			return -EPERM;
   896	
 > 897		return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
   898	}
   899	

---
0-DAY CI Kernel Test Service, Intel Corporation
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