From: kernel test robot <lkp@intel.com>
To: NeilBrown <neilb@suse.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH/RFC] VFS: LOOKUP_MOUNTPOINT should used cached info whenever possible.
Date: Mon, 17 Apr 2023 09:08:09 +0800 [thread overview]
Message-ID: <202304170850.Rq25PWLS-lkp@intel.com> (raw)
In-Reply-To: <168168683217.24821.6260957092725278201@noble.neil.brown.name>
Hi NeilBrown,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on viro-vfs/for-next]
[also build test WARNING on vfs-idmapping/for-next linus/master v6.3-rc7]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/NeilBrown/VFS-LOOKUP_MOUNTPOINT-should-used-cached-info-whenever-possible/20230417-071435
base: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-next
patch link: https://lore.kernel.org/r/168168683217.24821.6260957092725278201%40noble.neil.brown.name
patch subject: [PATCH/RFC] VFS: LOOKUP_MOUNTPOINT should used cached info whenever possible.
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230417/202304170850.Rq25PWLS-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
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
# https://github.com/intel-lab-lkp/linux/commit/7084d22d194837a61c41fb56ab65999c32b143bd
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review NeilBrown/VFS-LOOKUP_MOUNTPOINT-should-used-cached-info-whenever-possible/20230417-071435
git checkout 7084d22d194837a61c41fb56ab65999c32b143bd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304170850.Rq25PWLS-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/namei.c:501:5: warning: no previous prototype for 'inode_permission_mp' [-Wmissing-prototypes]
501 | int inode_permission_mp(struct mnt_idmap *idmap,
| ^~~~~~~~~~~~~~~~~~~
--
fs/namei.c:503: warning: Function parameter or member 'mp' not described in 'inode_permission_mp'
>> fs/namei.c:503: warning: expecting prototype for inode_permission(). Prototype was for inode_permission_mp() instead
fs/namei.c:675: warning: Function parameter or member 'mnt' not described in 'path_connected'
fs/namei.c:675: warning: Function parameter or member 'dentry' not described in 'path_connected'
fs/namei.c:1124: warning: Function parameter or member 'inode' not described in 'may_follow_link'
vim +/inode_permission_mp +501 fs/namei.c
488
489 /**
490 * inode_permission - Check for access rights to a given inode
491 * @idmap: idmap of the mount the inode was found from
492 * @inode: Inode to check permission on
493 * @mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)
494 *
495 * Check for read/write/execute permissions on an inode. We use fs[ug]id for
496 * this, letting us set arbitrary permissions for filesystem access without
497 * changing the "normal" UIDs which are used for other things.
498 *
499 * When checking for MAY_APPEND, MAY_WRITE must also be set in @mask.
500 */
> 501 int inode_permission_mp(struct mnt_idmap *idmap,
502 struct inode *inode, int mask, bool mp)
> 503 {
504 int retval;
505
506 retval = sb_permission(inode->i_sb, inode, mask);
507 if (retval)
508 return retval;
509
510 if (unlikely(mask & MAY_WRITE)) {
511 /*
512 * Nobody gets write access to an immutable file.
513 */
514 if (IS_IMMUTABLE(inode))
515 return -EPERM;
516
517 /*
518 * Updating mtime will likely cause i_uid and i_gid to be
519 * written back improperly if their true value is unknown
520 * to the vfs.
521 */
522 if (HAS_UNMAPPED_ID(idmap, inode))
523 return -EACCES;
524 }
525
526 if (mp)
527 /* We are looking for a mountpoint and so don't
528 * want to interact with the filesystem at all, just
529 * the dcache and icache.
530 */
531 retval = generic_permission(idmap, inode, mask);
532 else
533 retval = do_inode_permission(idmap, inode, mask);
534 if (retval)
535 return retval;
536
537 retval = devcgroup_inode_permission(inode, mask);
538 if (retval)
539 return retval;
540
541 return security_inode_permission(inode, mask);
542 }
543
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-04-17 1:08 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 22:00 allowing for a completely cached umount(2) pathwalk Jeff Layton
2023-04-13 22:25 ` Andreas Dilger
2023-04-13 22:41 ` NeilBrown
2023-04-14 2:43 ` Al Viro
2023-04-14 3:28 ` Trond Myklebust
2023-04-14 3:51 ` Al Viro
2023-04-14 4:06 ` Trond Myklebust
2023-04-14 4:21 ` Al Viro
2023-04-14 9:41 ` Christian Brauner
2023-04-14 10:09 ` Jeff Layton
2023-04-14 11:16 ` Christian Brauner
2023-04-14 12:33 ` Jeff Layton
2023-04-14 12:51 ` Christian Brauner
2023-04-15 9:51 ` Amir Goldstein
2023-04-14 10:06 ` Jeff Layton
2023-04-14 13:41 ` Christian Brauner
2023-04-14 14:21 ` Trond Myklebust
2023-04-14 15:13 ` Christian Brauner
2023-04-14 15:30 ` Trond Myklebust
2023-04-14 15:57 ` Trond Myklebust
2023-04-14 16:22 ` Al Viro
2023-04-14 16:41 ` Trond Myklebust
2023-04-14 19:01 ` Benjamin Coddington
2023-04-17 8:22 ` Christian Brauner
2023-04-14 16:32 ` Christian Brauner
2023-04-14 2:32 ` Al Viro
2023-04-14 10:01 ` Jeff Layton
2023-04-14 12:18 ` Christian Brauner
2023-04-14 14:57 ` Al Viro
2023-04-14 13:16 ` David Wysochanski
2023-04-16 23:13 ` [PATCH/RFC] VFS: LOOKUP_MOUNTPOINT should used cached info whenever possible NeilBrown
2023-04-17 1:08 ` kernel test robot [this message]
2023-04-17 3:51 ` kernel test robot
2023-04-17 11:55 ` Christian Brauner
2023-04-17 12:25 ` Jeff Layton
2023-04-17 14:24 ` Christian Brauner
2023-04-17 15:21 ` Jeff Layton
2023-04-17 21:34 ` NeilBrown
2023-04-18 8:10 ` Christian Brauner
2023-04-18 3:25 ` Andreas Dilger
2023-04-18 8:04 ` Christian Brauner
2023-04-20 13:05 ` Jeff Layton
2023-04-20 15:41 ` Christian Brauner
2023-04-17 21:26 ` NeilBrown
2023-04-20 21:35 ` Al Viro
2023-04-20 22:01 ` NeilBrown
2023-04-20 22:27 ` Al Viro
2023-04-17 12:09 ` Jeff Layton
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=202304170850.Rq25PWLS-lkp@intel.com \
--to=lkp@intel.com \
--cc=neilb@suse.de \
--cc=oe-kbuild-all@lists.linux.dev \
/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.