All of lore.kernel.org
 help / color / mirror / Atom feed
* [opencloudos:next 13/98] kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2024-03-03 18:58 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-03-03 18:58 UTC (permalink / raw)
  To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
	aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   a4b2dc2ffad1810ebe7a86710aa1e5cc312aa2a1
commit: 95c98461d1dce7fd1d25f055c88ad639b0e3b7d7 [13/98] sysrq: add ALT+LEFTCTRL to trigger crash dump
config: x86_64-randconfig-122-20240303 (https://download.01.org/0day-ci/archive/20240304/202403040201.RbLZa9tB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240304/202403040201.RbLZa9tB-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403040201.RbLZa9tB-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void *buffer @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:1033:45: sparse:     expected void *buffer
   kernel/sysctl.c:1033:45: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:1791:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@     expected int ( [usertype] *proc_handler )( ... ) @@     got int ( * )( ... ) @@
   kernel/sysctl.c:1791:35: sparse:     expected int ( [usertype] *proc_handler )( ... )
   kernel/sysctl.c:1791:35: sparse:     got int ( * )( ... )
   kernel/sysctl.c:312:66: sparse: sparse: self-comparison always evaluates to false

vim +1033 kernel/sysctl.c

  1026	
  1027	static int sysrq_use_leftctrl_sysctl_handler(struct ctl_table *table, int write,
  1028			void __user *buffer, size_t *lenp,
  1029			loff_t *ppos)
  1030	{
  1031		int error;
  1032	
> 1033		error = proc_dointvec(table, write, buffer, lenp, ppos);
  1034		if (error)
  1035			return error;
  1036	
  1037		if (write)
  1038			sysrq_toggle_sysrq_key(__sysrq_use_leftctrl);
  1039	
  1040		return 0;
  1041	}
  1042	#endif
  1043	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [opencloudos:next 13/98] kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2024-03-04 10:48 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-03-04 10:48 UTC (permalink / raw)
  To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
	aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   a4b2dc2ffad1810ebe7a86710aa1e5cc312aa2a1
commit: 95c98461d1dce7fd1d25f055c88ad639b0e3b7d7 [13/98] sysrq: add ALT+LEFTCTRL to trigger crash dump
config: x86_64-randconfig-122-20240303 (https://download.01.org/0day-ci/archive/20240304/202403041847.TYnqZbBP-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240304/202403041847.TYnqZbBP-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403041847.TYnqZbBP-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void *buffer @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:1033:45: sparse:     expected void *buffer
   kernel/sysctl.c:1033:45: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:1791:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@     expected int ( [usertype] *proc_handler )( ... ) @@     got int ( * )( ... ) @@
   kernel/sysctl.c:1791:35: sparse:     expected int ( [usertype] *proc_handler )( ... )
   kernel/sysctl.c:1791:35: sparse:     got int ( * )( ... )
   kernel/sysctl.c:312:66: sparse: sparse: self-comparison always evaluates to false

vim +1033 kernel/sysctl.c

  1026	
  1027	static int sysrq_use_leftctrl_sysctl_handler(struct ctl_table *table, int write,
  1028			void __user *buffer, size_t *lenp,
  1029			loff_t *ppos)
  1030	{
  1031		int error;
  1032	
> 1033		error = proc_dointvec(table, write, buffer, lenp, ppos);
  1034		if (error)
  1035			return error;
  1036	
  1037		if (write)
  1038			sysrq_toggle_sysrq_key(__sysrq_use_leftctrl);
  1039	
  1040		return 0;
  1041	}
  1042	#endif
  1043	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [opencloudos:next 13/98] kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2024-10-29  3:09 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-10-29  3:09 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   ce9f9d823a41831d622fa11e29c3d620c044f51b
commit: 95c98461d1dce7fd1d25f055c88ad639b0e3b7d7 [13/98] sysrq: add ALT+LEFTCTRL to trigger crash dump
config: x86_64-randconfig-122-20241029 (https://download.01.org/0day-ci/archive/20241029/202410291137.RSSvrKAi-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241029/202410291137.RSSvrKAi-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410291137.RSSvrKAi-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void *buffer @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:1033:45: sparse:     expected void *buffer
   kernel/sysctl.c:1033:45: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:1791:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@     expected int ( [usertype] *proc_handler )( ... ) @@     got int ( * )( ... ) @@
   kernel/sysctl.c:1791:35: sparse:     expected int ( [usertype] *proc_handler )( ... )
   kernel/sysctl.c:1791:35: sparse:     got int ( * )( ... )
   kernel/sysctl.c:312:66: sparse: sparse: self-comparison always evaluates to false

vim +1033 kernel/sysctl.c

  1026	
  1027	static int sysrq_use_leftctrl_sysctl_handler(struct ctl_table *table, int write,
  1028			void __user *buffer, size_t *lenp,
  1029			loff_t *ppos)
  1030	{
  1031		int error;
  1032	
> 1033		error = proc_dointvec(table, write, buffer, lenp, ppos);
  1034		if (error)
  1035			return error;
  1036	
  1037		if (write)
  1038			sysrq_toggle_sysrq_key(__sysrq_use_leftctrl);
  1039	
  1040		return 0;
  1041	}
  1042	#endif
  1043	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [opencloudos:next 13/98] kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2024-10-30 12:39 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-10-30 12:39 UTC (permalink / raw)
  To: kaixuxia, frankjpliu, kasong, sagazchen, kernelxing, aurelianliu,
	deshengwu, flyingpeng, jingqunli, jason.zeng, wu.zheng,
	yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   ce9f9d823a41831d622fa11e29c3d620c044f51b
commit: 95c98461d1dce7fd1d25f055c88ad639b0e3b7d7 [13/98] sysrq: add ALT+LEFTCTRL to trigger crash dump
config: x86_64-randconfig-122-20241029 (https://download.01.org/0day-ci/archive/20241030/202410302050.XIoKsFjs-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410302050.XIoKsFjs-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410302050.XIoKsFjs-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void *buffer @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:1033:45: sparse:     expected void *buffer
   kernel/sysctl.c:1033:45: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:1791:35: sparse: sparse: incorrect type in initializer (incompatible argument 3 (different address spaces)) @@     expected int ( [usertype] *proc_handler )( ... ) @@     got int ( * )( ... ) @@
   kernel/sysctl.c:1791:35: sparse:     expected int ( [usertype] *proc_handler )( ... )
   kernel/sysctl.c:1791:35: sparse:     got int ( * )( ... )
   kernel/sysctl.c:312:66: sparse: sparse: self-comparison always evaluates to false

vim +1033 kernel/sysctl.c

  1026	
  1027	static int sysrq_use_leftctrl_sysctl_handler(struct ctl_table *table, int write,
  1028			void __user *buffer, size_t *lenp,
  1029			loff_t *ppos)
  1030	{
  1031		int error;
  1032	
> 1033		error = proc_dointvec(table, write, buffer, lenp, ppos);
  1034		if (error)
  1035			return error;
  1036	
  1037		if (write)
  1038			sysrq_toggle_sysrq_key(__sysrq_use_leftctrl);
  1039	
  1040		return 0;
  1041	}
  1042	#endif
  1043	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-30 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 12:39 [opencloudos:next 13/98] kernel/sysctl.c:1033:45: sparse: sparse: incorrect type in argument 3 (different address spaces) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-10-29  3:09 kernel test robot
2024-03-04 10:48 kernel test robot
2024-03-03 18:58 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.