From: kernel test robot <lkp@intel.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [amir73il:pdirops 12/19] fs/overlayfs/dir.c:582:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
Date: Sat, 15 Nov 2025 22:06:50 +0800 [thread overview]
Message-ID: <202511152248.uA0YA4CD-lkp@intel.com> (raw)
tree: https://github.com/amir73il/linux pdirops
head: 3c4028c13414cb58cd674b839b8faec6afbcad51
commit: b1f61c4156d084ae5f2532f87fd31e1bb74579cf [12/19] ovl: add prepare_creds_ovl cleanup guard
config: powerpc-randconfig-r123-20251115 (https://download.01.org/0day-ci/archive/20251115/202511152248.uA0YA4CD-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251115/202511152248.uA0YA4CD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511152248.uA0YA4CD-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/overlayfs/dir.c:582:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/overlayfs/dir.c:582:13: sparse: struct cred const [noderef] __rcu *
fs/overlayfs/dir.c:582:13: sparse: struct cred const *
vim +582 fs/overlayfs/dir.c
577
578 static const struct cred *ovl_prepare_creds(struct dentry *dentry, struct inode *inode, umode_t mode)
579 {
580 int err;
581
> 582 if (WARN_ON_ONCE(current->cred != ovl_creds(dentry->d_sb)))
583 return ERR_PTR(-EINVAL);
584
585 CLASS(prepare_creds, override_cred)();
586 if (!override_cred)
587 return ERR_PTR(-ENOMEM);
588
589 override_cred->fsuid = inode->i_uid;
590 override_cred->fsgid = inode->i_gid;
591
592 err = security_dentry_create_files_as(dentry, mode, &dentry->d_name,
593 current->cred, override_cred);
594 if (err)
595 return ERR_PTR(err);
596
597 return override_creds(no_free_ptr(override_cred));
598 }
599
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-15 14:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202511152248.uA0YA4CD-lkp@intel.com \
--to=lkp@intel.com \
--cc=amir73il@gmail.com \
--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.