* [amir73il:pdirops 12/19] fs/overlayfs/dir.c:582:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
@ 2025-11-15 14:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-15 14:06 UTC (permalink / raw)
To: Amir Goldstein; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-15 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 14:06 [amir73il:pdirops 12/19] fs/overlayfs/dir.c:582:13: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel test robot
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.