From: kernel test robot <lkp@intel.com>
To: Sven Schnelle <svens@linux.ibm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Vasily Gorbik <gor@linux.ibm.com>
Subject: arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer
Date: Wed, 2 Mar 2022 18:58:17 +0800 [thread overview]
Message-ID: <202203021808.beYRnzDb-lkp@intel.com> (raw)
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
next reply other threads:[~2022-03-02 11:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 10:58 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-25 15:05 arch/s390/kernel/syscall.c:56:1: sparse: sparse: Using plain integer as NULL pointer kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202203021808.beYRnzDb-lkp@intel.com \
--to=lkp@intel.com \
--cc=gor@linux.ibm.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox