linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer
@ 2021-11-25 15:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-25 15:05 UTC (permalink / raw)
  To: Sven Schnelle; +Cc: kbuild-all, linux-kernel, Vasily Gorbik

Hi Sven,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5f53fa508db098c9d372423a6dac31c8a5679cdf
commit: 56e62a73702836017564eaacd5212e4d0fa1c01d s390: convert to generic entry
date:   10 months ago
config: s390-randconfig-s031-20211116 (https://download.01.org/0day-ci/archive/20211125/202111252321.A2S8SwOA-lkp@intel.com/config)
compiler: s390-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/torvalds/linux.git/commit/?id=56e62a73702836017564eaacd5212e4d0fa1c01d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 56e62a73702836017564eaacd5212e4d0fa1c01d
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
>> arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer
>> arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer

vim +56 arch/s390/kernel/syscall.c

^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  55  
a4679373cf4ee0e arch/s390/kernel/sys_s390.c Christoph Hellwig 2010-03-10 @56  SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg)
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  57  {
a4679373cf4ee0e arch/s390/kernel/sys_s390.c Christoph Hellwig 2010-03-10  58  	struct s390_mmap_arg_struct a;
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  59  	int error = -EFAULT;
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  60  
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  61  	if (copy_from_user(&a, arg, sizeof(a)))
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  62  		goto out;
a90f590a1bee36f arch/s390/kernel/sys_s390.c Dominik Brodowski 2018-03-11  63  	error = ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset);
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  64  out:
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  65  	return error;
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  66  }
^1da177e4c3f415 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  67  

:::::: The code at line 56 was first introduced by commit
:::::: a4679373cf4ee0e7792dc56205365732b725c2c1 Add generic sys_old_mmap()

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

* arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer
@ 2022-03-02 10:58 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-03-02 10:58 UTC (permalink / raw)
  To: Sven Schnelle; +Cc: kbuild-all, linux-kernel, Vasily Gorbik

Hi Sven,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fb184c4af9b9f4563e7a126219389986a71d5b5b
commit: 56e62a73702836017564eaacd5212e4d0fa1c01d s390: convert to generic entry
date:   1 year, 1 month ago
config: s390-randconfig-s031-20220302 (https://download.01.org/0day-ci/archive/20220302/202203021808.beYRnzDb-lkp@intel.com/config)
compiler: s390-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/torvalds/linux.git/commit/?id=56e62a73702836017564eaacd5212e4d0fa1c01d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 56e62a73702836017564eaacd5212e4d0fa1c01d
        # 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=s390 SHELL=/bin/bash arch/s390/kernel/

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


sparse warnings: (new ones prefixed by >>)
>> arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer
>> arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer

vim +56 arch/s390/kernel/syscall.c

^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  55  
a4679373cf4ee0 arch/s390/kernel/sys_s390.c Christoph Hellwig 2010-03-10 @56  SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg)
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  57  {
a4679373cf4ee0 arch/s390/kernel/sys_s390.c Christoph Hellwig 2010-03-10  58  	struct s390_mmap_arg_struct a;
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  59  	int error = -EFAULT;
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  60  
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  61  	if (copy_from_user(&a, arg, sizeof(a)))
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  62  		goto out;
a90f590a1bee36 arch/s390/kernel/sys_s390.c Dominik Brodowski 2018-03-11  63  	error = ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, a.offset);
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  64  out:
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  65  	return error;
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  66  }
^1da177e4c3f41 arch/s390/kernel/sys_s390.c Linus Torvalds    2005-04-16  67  

:::::: The code at line 56 was first introduced by commit
:::::: a4679373cf4ee0e7792dc56205365732b725c2c1 Add generic sys_old_mmap()

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

end of thread, other threads:[~2022-03-02 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 15:05 arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer kernel test robot
2022-03-02 10:58 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).