All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ronnie Sahlberg <lsahlber@redhat.com>,
	linux-cifs <linux-cifs@vger.kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Steve French <smfrench@gmail.com>
Subject: Re: [PATCH] cifs: add support for FALLOC_FL_COLLAPSE_RANGE
Date: Fri, 26 Mar 2021 13:58:01 +0800	[thread overview]
Message-ID: <202103261335.d8nwtCTQ-lkp@intel.com> (raw)
In-Reply-To: <20210326013146.80962-1-lsahlber@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 3402 bytes --]

Hi Ronnie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on cifs/for-next]
[also build test WARNING on v5.12-rc4 next-20210325]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Ronnie-Sahlberg/cifs-add-support-for-FALLOC_FL_COLLAPSE_RANGE/20210326-093328
base:   git://git.samba.org/sfrench/cifs-2.6.git for-next
config: x86_64-randconfig-a015-20210325 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f490a5969bd52c8a48586f134ff8f02ccbb295b3)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/0536911dc253bdf2243c8054b5f6fbd256dcdb49
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ronnie-Sahlberg/cifs-add-support-for-FALLOC_FL_COLLAPSE_RANGE/20210326-093328
        git checkout 0536911dc253bdf2243c8054b5f6fbd256dcdb49
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   fs/cifs/smb2ops.c:3654:6: warning: expression result unused [-Wunused-value]
                   rc -EFBIG;
                   ~~ ^~~~~~
   fs/cifs/smb2ops.c:3660:6: warning: expression result unused [-Wunused-value]
                   rc -EINVAL;
                   ~~ ^~~~~~~
>> fs/cifs/smb2ops.c:3654:3: warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
                   rc -EFBIG;
                   ^~
   fs/cifs/smb2ops.c:3646:8: note: initialize the variable 'rc' to silence this warning
           int rc;
                 ^
                  = 0
   3 warnings generated.


vim +/rc +3654 fs/cifs/smb2ops.c

  3642	
  3643	static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon,
  3644				    loff_t off, loff_t len)
  3645	{
  3646		int rc;
  3647		unsigned int xid;
  3648		struct cifsFileInfo *cfile = file->private_data;
  3649		__le64 eof;
  3650	
  3651		xid = get_xid();
  3652	
  3653		if (off + len < off) {
> 3654			rc -EFBIG;
  3655			goto out;
  3656		}
  3657	
  3658		if (off >= i_size_read(file->f_inode) ||
  3659		    off + len >= i_size_read(file->f_inode)) {
  3660			rc -EINVAL;
  3661			goto out;
  3662		}
  3663	
  3664		rc = smb2_copychunk_range(xid, cfile, cfile, off + len,
  3665					  i_size_read(file->f_inode) - off - len, off);
  3666		if (rc < 0)
  3667			goto out;
  3668	
  3669		eof = i_size_read(file->f_inode) - len;
  3670		rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
  3671				  cfile->fid.volatile_fid, cfile->pid, &eof);
  3672		if (rc < 0)
  3673			goto out;
  3674	
  3675		rc = 0;
  3676	 out:
  3677		free_xid(xid);
  3678		return rc;
  3679	}
  3680	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29984 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] cifs: add support for FALLOC_FL_COLLAPSE_RANGE
Date: Fri, 26 Mar 2021 13:58:01 +0800	[thread overview]
Message-ID: <202103261335.d8nwtCTQ-lkp@intel.com> (raw)
In-Reply-To: <20210326013146.80962-1-lsahlber@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 3494 bytes --]

Hi Ronnie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on cifs/for-next]
[also build test WARNING on v5.12-rc4 next-20210325]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Ronnie-Sahlberg/cifs-add-support-for-FALLOC_FL_COLLAPSE_RANGE/20210326-093328
base:   git://git.samba.org/sfrench/cifs-2.6.git for-next
config: x86_64-randconfig-a015-20210325 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f490a5969bd52c8a48586f134ff8f02ccbb295b3)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/0536911dc253bdf2243c8054b5f6fbd256dcdb49
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ronnie-Sahlberg/cifs-add-support-for-FALLOC_FL_COLLAPSE_RANGE/20210326-093328
        git checkout 0536911dc253bdf2243c8054b5f6fbd256dcdb49
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   fs/cifs/smb2ops.c:3654:6: warning: expression result unused [-Wunused-value]
                   rc -EFBIG;
                   ~~ ^~~~~~
   fs/cifs/smb2ops.c:3660:6: warning: expression result unused [-Wunused-value]
                   rc -EINVAL;
                   ~~ ^~~~~~~
>> fs/cifs/smb2ops.c:3654:3: warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
                   rc -EFBIG;
                   ^~
   fs/cifs/smb2ops.c:3646:8: note: initialize the variable 'rc' to silence this warning
           int rc;
                 ^
                  = 0
   3 warnings generated.


vim +/rc +3654 fs/cifs/smb2ops.c

  3642	
  3643	static long smb3_collapse_range(struct file *file, struct cifs_tcon *tcon,
  3644				    loff_t off, loff_t len)
  3645	{
  3646		int rc;
  3647		unsigned int xid;
  3648		struct cifsFileInfo *cfile = file->private_data;
  3649		__le64 eof;
  3650	
  3651		xid = get_xid();
  3652	
  3653		if (off + len < off) {
> 3654			rc -EFBIG;
  3655			goto out;
  3656		}
  3657	
  3658		if (off >= i_size_read(file->f_inode) ||
  3659		    off + len >= i_size_read(file->f_inode)) {
  3660			rc -EINVAL;
  3661			goto out;
  3662		}
  3663	
  3664		rc = smb2_copychunk_range(xid, cfile, cfile, off + len,
  3665					  i_size_read(file->f_inode) - off - len, off);
  3666		if (rc < 0)
  3667			goto out;
  3668	
  3669		eof = i_size_read(file->f_inode) - len;
  3670		rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
  3671				  cfile->fid.volatile_fid, cfile->pid, &eof);
  3672		if (rc < 0)
  3673			goto out;
  3674	
  3675		rc = 0;
  3676	 out:
  3677		free_xid(xid);
  3678		return rc;
  3679	}
  3680	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29984 bytes --]

  reply	other threads:[~2021-03-26  5:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26  1:31 [PATCH] cifs: add support for FALLOC_FL_COLLAPSE_RANGE Ronnie Sahlberg
2021-03-26  5:58 ` kernel test robot [this message]
2021-03-26  5:58   ` kernel test robot
2021-03-26  8:35 ` Dan Carpenter
2021-03-26  8:35   ` Dan Carpenter
2021-03-26  8:35   ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2021-03-26  7:40 kernel test robot
2021-03-26 19:52 Ronnie Sahlberg
2021-03-30 14:21 ` Aurélien Aptel
2021-03-30 22:09   ` ronnie sahlberg
2021-03-30 22:15     ` Steve French
2021-04-01  5:41 ` Steve French

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=202103261335.d8nwtCTQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=lsahlber@redhat.com \
    --cc=smfrench@gmail.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 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.