From: kernel test robot <lkp@intel.com>
To: Yang Li <yang.lee@linux.alibaba.com>, viro@zeniv.linux.org.uk
Cc: kbuild-all@lists.01.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org,
Yang Li <yang.lee@linux.alibaba.com>
Subject: Re: [PATCH] xattr: switch to vmemdup_user()
Date: Thu, 30 Sep 2021 06:38:29 +0800 [thread overview]
Message-ID: <202109300611.gyjBiLXg-lkp@intel.com> (raw)
In-Reply-To: <1614666741-16796-1-git-send-email-yang.lee@linux.alibaba.com>
[-- Attachment #1: Type: text/plain, Size: 2942 bytes --]
Hi Yang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc3 next-20210922]
[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/Yang-Li/xattr-switch-to-vmemdup_user/20210929-221309
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a4e6f95a891ac08bd09d62e3e6dae239b150f4c1
config: x86_64-randconfig-c001-20210929 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/c26396dd8ad04ac32a6dee98d97706c53432ee2f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yang-Li/xattr-switch-to-vmemdup_user/20210929-221309
git checkout c26396dd8ad04ac32a6dee98d97706c53432ee2f
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
fs/xattr.c: In function 'setxattr':
>> fs/xattr.c:566:4: error: 'r' undeclared (first use in this function)
566 | r = PTR_ERR(kvalue);
| ^
fs/xattr.c:566:4: note: each undeclared identifier is reported only once for each function it appears in
vim +/r +566 fs/xattr.c
538
539 /*
540 * Extended attribute SET operations
541 */
542 static long
543 setxattr(struct user_namespace *mnt_userns, struct dentry *d,
544 const char __user *name, const void __user *value, size_t size,
545 int flags)
546 {
547 int error;
548 void *kvalue = NULL;
549 char kname[XATTR_NAME_MAX + 1];
550
551 if (flags & ~(XATTR_CREATE|XATTR_REPLACE))
552 return -EINVAL;
553
554 error = strncpy_from_user(kname, name, sizeof(kname));
555 if (error == 0 || error == sizeof(kname))
556 error = -ERANGE;
557 if (error < 0)
558 return error;
559
560 if (size) {
561 if (size > XATTR_SIZE_MAX)
562 return -E2BIG;
563 kvalue = vmemdup_user(value, size);
564
565 if (IS_ERR(kvalue)) {
> 566 r = PTR_ERR(kvalue);
567 goto out;
568 }
569 if ((strcmp(kname, XATTR_NAME_POSIX_ACL_ACCESS) == 0) ||
570 (strcmp(kname, XATTR_NAME_POSIX_ACL_DEFAULT) == 0))
571 posix_acl_fix_xattr_from_user(mnt_userns, kvalue, size);
572 }
573
574 error = vfs_setxattr(mnt_userns, d, kname, kvalue, size, flags);
575 out:
576 kvfree(kvalue);
577
578 return error;
579 }
580
---
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: 32918 bytes --]
prev parent reply other threads:[~2021-09-29 22:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 6:32 [PATCH] xattr: switch to vmemdup_user() Yang Li
2021-03-04 12:17 ` Matthew Wilcox
2021-09-29 21:20 ` kernel test robot
2021-09-29 22:38 ` kernel test robot [this message]
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=202109300611.gyjBiLXg-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=yang.lee@linux.alibaba.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;
as well as URLs for NNTP newsgroup(s).