From: kernel test robot <lkp@intel.com>
To: Mark Salyzyn <salyzyn@android.com>, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, kernel-team@android.com,
Mark Salyzyn <salyzyn@android.com>,
Stephen Smalley <sds@tycho.nsa.gov>,
linux-security-module@vger.kernel.org,
Miklos Szeredi <miklos@szeredi.hu>,
Jonathan Corbet <corbet@lwn.net>, Vivek Goyal <vgoyal@redhat.com>,
"Eric W . Biederman" <ebiederm@xmission.com>,
Amir Goldstein <amir73il@gmail.com>
Subject: Re: [PATCH v17 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method
Date: Wed, 21 Oct 2020 06:38:35 +0800 [thread overview]
Message-ID: <202010210648.rXjRddFA-lkp@intel.com> (raw)
In-Reply-To: <20201020191732.4049987-3-salyzyn@android.com>
[-- Attachment #1: Type: text/plain, Size: 3277 bytes --]
Hi Mark,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on miklos-vfs/overlayfs-next]
[also build test ERROR on linus/master next-20201016]
[cannot apply to ext4/dev security/next-testing v5.9]
[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/Mark-Salyzyn/overlayfs-override_creds-off-nested-get-xattr-fix/20201021-031941
base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
config: sparc-randconfig-s031-20201020 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.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.3-dirty
# https://github.com/0day-ci/linux/commit/4db43126fb07e97fad2a0f2eda02fa73b8e07f21
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mark-Salyzyn/overlayfs-override_creds-off-nested-get-xattr-fix/20201021-031941
git checkout 4db43126fb07e97fad2a0f2eda02fa73b8e07f21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
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 >>):
In file included from fs/overlayfs/super.c:18:
fs/overlayfs/overlayfs.h: In function 'ovl_do_getxattr':
>> fs/overlayfs/overlayfs.h:187:25: error: initialization of 'struct ovl_inode *' from incompatible pointer type 'struct inode *' [-Werror=incompatible-pointer-types]
187 | struct ovl_inode *ip = d_inode(dentry);
| ^~~~~~~
>> fs/overlayfs/overlayfs.h:189:32: error: passing argument 2 of '__vfs_getxattr' from incompatible pointer type [-Werror=incompatible-pointer-types]
189 | return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY);
| ^~
| |
| struct ovl_inode *
In file included from fs/overlayfs/super.c:10:
include/linux/xattr.h:50:61: note: expected 'struct inode *' but argument is of type 'struct ovl_inode *'
50 | ssize_t __vfs_getxattr(struct dentry *dentry, struct inode *inode,
| ~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors
vim +187 fs/overlayfs/overlayfs.h
181
182 static inline ssize_t ovl_do_getxattr(struct ovl_fs *ofs, struct dentry *dentry,
183 enum ovl_xattr ox, void *value,
184 size_t size)
185 {
186 const char *name = ovl_xattr(ofs, ox);
> 187 struct ovl_inode *ip = d_inode(dentry);
188
> 189 return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY);
190 }
191
---
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: 30743 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 v17 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method
Date: Wed, 21 Oct 2020 06:38:35 +0800 [thread overview]
Message-ID: <202010210648.rXjRddFA-lkp@intel.com> (raw)
In-Reply-To: <20201020191732.4049987-3-salyzyn@android.com>
[-- Attachment #1: Type: text/plain, Size: 3344 bytes --]
Hi Mark,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on miklos-vfs/overlayfs-next]
[also build test ERROR on linus/master next-20201016]
[cannot apply to ext4/dev security/next-testing v5.9]
[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/Mark-Salyzyn/overlayfs-override_creds-off-nested-get-xattr-fix/20201021-031941
base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
config: sparc-randconfig-s031-20201020 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.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.3-dirty
# https://github.com/0day-ci/linux/commit/4db43126fb07e97fad2a0f2eda02fa73b8e07f21
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mark-Salyzyn/overlayfs-override_creds-off-nested-get-xattr-fix/20201021-031941
git checkout 4db43126fb07e97fad2a0f2eda02fa73b8e07f21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
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 >>):
In file included from fs/overlayfs/super.c:18:
fs/overlayfs/overlayfs.h: In function 'ovl_do_getxattr':
>> fs/overlayfs/overlayfs.h:187:25: error: initialization of 'struct ovl_inode *' from incompatible pointer type 'struct inode *' [-Werror=incompatible-pointer-types]
187 | struct ovl_inode *ip = d_inode(dentry);
| ^~~~~~~
>> fs/overlayfs/overlayfs.h:189:32: error: passing argument 2 of '__vfs_getxattr' from incompatible pointer type [-Werror=incompatible-pointer-types]
189 | return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY);
| ^~
| |
| struct ovl_inode *
In file included from fs/overlayfs/super.c:10:
include/linux/xattr.h:50:61: note: expected 'struct inode *' but argument is of type 'struct ovl_inode *'
50 | ssize_t __vfs_getxattr(struct dentry *dentry, struct inode *inode,
| ~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors
vim +187 fs/overlayfs/overlayfs.h
181
182 static inline ssize_t ovl_do_getxattr(struct ovl_fs *ofs, struct dentry *dentry,
183 enum ovl_xattr ox, void *value,
184 size_t size)
185 {
186 const char *name = ovl_xattr(ofs, ox);
> 187 struct ovl_inode *ip = d_inode(dentry);
188
> 189 return __vfs_getxattr(dentry, ip, name, value, size, XATTR_NOSECURITY);
190 }
191
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30743 bytes --]
next prev parent reply other threads:[~2020-10-20 22:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 19:17 [PATCH v17 0/4] overlayfs override_creds=off & nested get xattr fix Mark Salyzyn
2020-10-20 19:17 ` [PATCH v17 1/4] Add flags option to get xattr method paired to __vfs_getxattr Mark Salyzyn
2020-10-21 1:17 ` Paul Moore
2020-10-21 12:07 ` Mark Salyzyn
2020-10-23 0:46 ` Paul Moore
2020-10-20 19:17 ` [PATCH v17 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method Mark Salyzyn
2020-10-20 22:38 ` kernel test robot [this message]
2020-10-20 22:38 ` kernel test robot
2020-10-21 12:12 ` Mark Salyzyn
2020-10-20 19:17 ` [PATCH v17 3/4] overlayfs: override_creds=off option bypass creator_cred Mark Salyzyn
2020-10-20 19:17 ` [PATCH v17 4/4] overlayfs: inode_owner_or_capable called during execv Mark Salyzyn
2020-10-20 23:10 ` [PATCH v17 0/4] overlayfs override_creds=off & nested get xattr fix Paul Moore
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=202010210648.rXjRddFA-lkp@intel.com \
--to=lkp@intel.com \
--cc=amir73il@gmail.com \
--cc=corbet@lwn.net \
--cc=ebiederm@xmission.com \
--cc=kbuild-all@lists.01.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=salyzyn@android.com \
--cc=sds@tycho.nsa.gov \
--cc=vgoyal@redhat.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.