tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head: 13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: 61ee9fde51c156f6af5609f475f16748a07b69ed [9/44] virtiofs fix leak in setup
config: x86_64-randconfig-a012-20210323 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a4fb88669cd98db6fef7dcac88e3ec425d40c00d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable tmp
git checkout 61ee9fde51c156f6af5609f475f16748a07b69ed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> fs/fuse/virtio_fs.c:1230:4: error: implicit declaration of
function 'fuse_mount_put' [-Werror,-Wimplicit-function-declaration]
fuse_mount_put(fm);
^
fs/fuse/virtio_fs.c:1230:4: note: did you mean 'fuse_conn_put'?
fs/fuse/fuse_i.h:971:6: note: 'fuse_conn_put' declared here
void fuse_conn_put(struct fuse_conn *fc);
^
> fs/fuse/virtio_fs.c:1230:19: error: use of undeclared identifier
'fm'
fuse_mount_put(fm);
^
2 errors generated.
vim +/fuse_mount_put +1230 fs/fuse/virtio_fs.c
1190
1191 static int virtio_fs_get_tree(struct fs_context *fsc)
1192 {
1193 struct virtio_fs *fs;
1194 struct super_block *sb;
1195 struct fuse_conn *fc;
1196 int err;
1197
1198 /* This gets a reference on virtio_fs object. This ptr gets installed
1199 * in fc->iq->priv. Once fuse_conn is going away, it calls ->put()
1200 * to drop the reference to this object.
1201 */
1202 fs = virtio_fs_find_instance(fsc->source);
1203 if (!fs) {
1204 pr_info("virtio-fs: tag <%s> not found\n", fsc->source);
1205 return -EINVAL;
1206 }
1207
1208 fc = kzalloc(sizeof(struct fuse_conn), GFP_KERNEL);
1209 if (!fc) {
1210 mutex_lock(&virtio_fs_mutex);
1211 virtio_fs_put(fs);
1212 mutex_unlock(&virtio_fs_mutex);
1213 return -ENOMEM;
1214 }
1215
1216 fuse_conn_init(fc, get_user_ns(current_user_ns()), &virtio_fs_fiq_ops,
1217 fs);
1218 fc->release = fuse_free_conn;
1219 fc->delete_stale = true;
1220
1221 fsc->s_fs_info = fc;
1222 sb = sget_fc(fsc, virtio_fs_test_super, virtio_fs_set_super);
1223 fuse_conn_put(fc);
1224 if (IS_ERR(sb))
1225 return PTR_ERR(sb);
1226
1227 if (!sb->s_root) {
1228 err = virtio_fs_fill_super(sb);
1229 if (err) {
1230 fuse_mount_put(fm);
1231 sb->s_fs_info = NULL;
1232 deactivate_locked_super(sb);
1233 return err;
1234 }
1235
1236 sb->s_flags |= SB_ACTIVE;
1237 }
1238
1239 WARN_ON(fsc->root);
1240 fsc->root = dget(sb->s_root);
1241 return 0;
1242 }
1243
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org