* Re: [PATCH] autofs: add: new_inode check in autofs_fill_super()
[not found] <20231116000746.7359-1-raven@themaw.net>
@ 2023-11-16 11:13 ` kernel test robot
2023-11-16 11:23 ` kernel test robot
1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-11-16 11:13 UTC (permalink / raw)
To: Ian Kent, Al Viro, Christian Brauner
Cc: oe-kbuild-all, Bill O'Donnell, Kernel Mailing List,
autofs mailing list, linux-fsdevel, Ian Kent,
syzbot+662f87a8ef490f45fa64
Hi Ian,
kernel test robot noticed the following build errors:
[auto build test ERROR on brauner-vfs/vfs.all]
[also build test ERROR on linus/master v6.7-rc1 next-20231116]
[cannot apply to vfs-idmapping/for-next]
[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/Ian-Kent/autofs-add-new_inode-check-in-autofs_fill_super/20231116-081017
base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
patch link: https://lore.kernel.org/r/20231116000746.7359-1-raven%40themaw.net
patch subject: [PATCH] autofs: add: new_inode check in autofs_fill_super()
config: i386-buildonly-randconfig-001-20231116 (https://download.01.org/0day-ci/archive/20231116/202311161857.bZMQmWsW-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311161857.bZMQmWsW-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/202311161857.bZMQmWsW-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
fs/autofs/inode.c: In function 'autofs_fill_super':
>> fs/autofs/inode.c:330:22: error: expected identifier or '*' before '-' token
330 | goto -ENOMEM;
| ^
>> fs/autofs/inode.c:349:25: error: 'ret' undeclared (first use in this function); did you mean 'net'?
349 | ret = invalf(fc, "Could not find process group %d",
| ^~~
| net
fs/autofs/inode.c:349:25: note: each undeclared identifier is reported only once for each function it appears in
>> fs/autofs/inode.c:312:24: warning: unused variable 'root' [-Wunused-variable]
312 | struct dentry *root;
| ^~~~
vim +330 fs/autofs/inode.c
306
307 static int autofs_fill_super(struct super_block *s, struct fs_context *fc)
308 {
309 struct autofs_fs_context *ctx = fc->fs_private;
310 struct autofs_sb_info *sbi = s->s_fs_info;
311 struct inode *root_inode;
> 312 struct dentry *root;
313 struct autofs_info *ino;
314
315 pr_debug("starting up, sbi = %p\n", sbi);
316
317 sbi->sb = s;
318 s->s_blocksize = 1024;
319 s->s_blocksize_bits = 10;
320 s->s_magic = AUTOFS_SUPER_MAGIC;
321 s->s_op = &autofs_sops;
322 s->s_d_op = &autofs_dentry_operations;
323 s->s_time_gran = 1;
324
325 /*
326 * Get the root inode and dentry, but defer checking for errors.
327 */
328 ino = autofs_new_ino(sbi);
329 if (!ino)
> 330 goto -ENOMEM;
331
332 root_inode = autofs_get_inode(s, S_IFDIR | 0755);
333 if (root_inode) {
334 root_inode->i_uid = ctx->uid;
335 root_inode->i_gid = ctx->gid;
336 root_inode->i_fop = &autofs_root_operations;
337 root_inode->i_op = &autofs_dir_inode_operations;
338 }
339 s->s_root = d_make_root(root_inode);
340 if (unlikely(!s->s_root)) {
341 autofs_free_ino(ino);
342 return -ENOMEM;
343 }
344 s->s_root->d_fsdata = ino;
345
346 if (ctx->pgrp_set) {
347 sbi->oz_pgrp = find_get_pid(ctx->pgrp);
348 if (!sbi->oz_pgrp) {
> 349 ret = invalf(fc, "Could not find process group %d",
350 ctx->pgrp);
351 return ret;
352 }
353 } else {
354 sbi->oz_pgrp = get_task_pid(current, PIDTYPE_PGID);
355 }
356
357 if (autofs_type_trigger(sbi->type))
358 /* s->s_root won't be contended so there's little to
359 * be gained by not taking the d_lock when setting
360 * d_flags, even when a lot mounts are being done.
361 */
362 managed_dentry_set_managed(s->s_root);
363
364 pr_debug("pipe fd = %d, pgrp = %u\n",
365 sbi->pipefd, pid_nr(sbi->oz_pgrp));
366
367 sbi->flags &= ~AUTOFS_SBI_CATATONIC;
368 return 0;
369 }
370
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] autofs: add: new_inode check in autofs_fill_super()
[not found] <20231116000746.7359-1-raven@themaw.net>
2023-11-16 11:13 ` [PATCH] autofs: add: new_inode check in autofs_fill_super() kernel test robot
@ 2023-11-16 11:23 ` kernel test robot
2023-11-19 10:23 ` Ian Kent
1 sibling, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-11-16 11:23 UTC (permalink / raw)
To: Ian Kent, Al Viro, Christian Brauner
Cc: llvm, oe-kbuild-all, Bill O'Donnell, Kernel Mailing List,
autofs mailing list, linux-fsdevel, Ian Kent,
syzbot+662f87a8ef490f45fa64
Hi Ian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on brauner-vfs/vfs.all]
[also build test WARNING on linus/master v6.7-rc1 next-20231116]
[cannot apply to vfs-idmapping/for-next]
[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/Ian-Kent/autofs-add-new_inode-check-in-autofs_fill_super/20231116-081017
base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
patch link: https://lore.kernel.org/r/20231116000746.7359-1-raven%40themaw.net
patch subject: [PATCH] autofs: add: new_inode check in autofs_fill_super()
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231116/202311161909.KHau6jEj-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311161909.KHau6jEj-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/202311161909.KHau6jEj-lkp@intel.com/
All warnings (new ones prefixed by >>):
fs/autofs/inode.c:330:8: error: expected identifier
goto -ENOMEM;
^
>> fs/autofs/inode.c:330:8: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
fs/autofs/inode.c:329:2: note: previous statement is here
if (!ino)
^
fs/autofs/inode.c:349:4: error: use of undeclared identifier 'ret'
ret = invalf(fc, "Could not find process group %d",
^
fs/autofs/inode.c:351:11: error: use of undeclared identifier 'ret'
return ret;
^
>> fs/autofs/inode.c:330:8: warning: expression result unused [-Wunused-value]
goto -ENOMEM;
^~~~~~~
2 warnings and 3 errors generated.
vim +/if +330 fs/autofs/inode.c
306
307 static int autofs_fill_super(struct super_block *s, struct fs_context *fc)
308 {
309 struct autofs_fs_context *ctx = fc->fs_private;
310 struct autofs_sb_info *sbi = s->s_fs_info;
311 struct inode *root_inode;
312 struct dentry *root;
313 struct autofs_info *ino;
314
315 pr_debug("starting up, sbi = %p\n", sbi);
316
317 sbi->sb = s;
318 s->s_blocksize = 1024;
319 s->s_blocksize_bits = 10;
320 s->s_magic = AUTOFS_SUPER_MAGIC;
321 s->s_op = &autofs_sops;
322 s->s_d_op = &autofs_dentry_operations;
323 s->s_time_gran = 1;
324
325 /*
326 * Get the root inode and dentry, but defer checking for errors.
327 */
328 ino = autofs_new_ino(sbi);
329 if (!ino)
> 330 goto -ENOMEM;
331
332 root_inode = autofs_get_inode(s, S_IFDIR | 0755);
333 if (root_inode) {
334 root_inode->i_uid = ctx->uid;
335 root_inode->i_gid = ctx->gid;
336 root_inode->i_fop = &autofs_root_operations;
337 root_inode->i_op = &autofs_dir_inode_operations;
338 }
339 s->s_root = d_make_root(root_inode);
340 if (unlikely(!s->s_root)) {
341 autofs_free_ino(ino);
342 return -ENOMEM;
343 }
344 s->s_root->d_fsdata = ino;
345
346 if (ctx->pgrp_set) {
347 sbi->oz_pgrp = find_get_pid(ctx->pgrp);
348 if (!sbi->oz_pgrp) {
349 ret = invalf(fc, "Could not find process group %d",
350 ctx->pgrp);
351 return ret;
352 }
353 } else {
354 sbi->oz_pgrp = get_task_pid(current, PIDTYPE_PGID);
355 }
356
357 if (autofs_type_trigger(sbi->type))
358 /* s->s_root won't be contended so there's little to
359 * be gained by not taking the d_lock when setting
360 * d_flags, even when a lot mounts are being done.
361 */
362 managed_dentry_set_managed(s->s_root);
363
364 pr_debug("pipe fd = %d, pgrp = %u\n",
365 sbi->pipefd, pid_nr(sbi->oz_pgrp));
366
367 sbi->flags &= ~AUTOFS_SBI_CATATONIC;
368 return 0;
369 }
370
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] autofs: add: new_inode check in autofs_fill_super()
2023-11-16 11:23 ` kernel test robot
@ 2023-11-19 10:23 ` Ian Kent
0 siblings, 0 replies; 3+ messages in thread
From: Ian Kent @ 2023-11-19 10:23 UTC (permalink / raw)
To: kernel test robot, Al Viro, Christian Brauner
Cc: llvm, oe-kbuild-all, Bill O'Donnell, Kernel Mailing List,
autofs mailing list, linux-fsdevel, syzbot+662f87a8ef490f45fa64
On 16/11/23 19:23, kernel test robot wrote:
> Hi Ian,
>
> kernel test robot noticed the following build warnings:
Crikey, how did this compile ... I think I need to just send a replacement
patch.
Ian
> [auto build test WARNING on brauner-vfs/vfs.all]
> [also build test WARNING on linus/master v6.7-rc1 next-20231116]
> [cannot apply to vfs-idmapping/for-next]
> [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/Ian-Kent/autofs-add-new_inode-check-in-autofs_fill_super/20231116-081017
> base:https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
> patch link:https://lore.kernel.org/r/20231116000746.7359-1-raven%40themaw.net
> patch subject: [PATCH] autofs: add: new_inode check in autofs_fill_super()
> config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231116/202311161909.KHau6jEj-lkp@intel.com/config)
> compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311161909.KHau6jEj-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/202311161909.KHau6jEj-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> fs/autofs/inode.c:330:8: error: expected identifier
> goto -ENOMEM;
> ^
>>> fs/autofs/inode.c:330:8: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
> fs/autofs/inode.c:329:2: note: previous statement is here
> if (!ino)
> ^
> fs/autofs/inode.c:349:4: error: use of undeclared identifier 'ret'
> ret = invalf(fc, "Could not find process group %d",
> ^
> fs/autofs/inode.c:351:11: error: use of undeclared identifier 'ret'
> return ret;
> ^
>>> fs/autofs/inode.c:330:8: warning: expression result unused [-Wunused-value]
> goto -ENOMEM;
> ^~~~~~~
> 2 warnings and 3 errors generated.
>
>
> vim +/if +330 fs/autofs/inode.c
>
> 306
> 307 static int autofs_fill_super(struct super_block *s, struct fs_context *fc)
> 308 {
> 309 struct autofs_fs_context *ctx = fc->fs_private;
> 310 struct autofs_sb_info *sbi = s->s_fs_info;
> 311 struct inode *root_inode;
> 312 struct dentry *root;
> 313 struct autofs_info *ino;
> 314
> 315 pr_debug("starting up, sbi = %p\n", sbi);
> 316
> 317 sbi->sb = s;
> 318 s->s_blocksize = 1024;
> 319 s->s_blocksize_bits = 10;
> 320 s->s_magic = AUTOFS_SUPER_MAGIC;
> 321 s->s_op = &autofs_sops;
> 322 s->s_d_op = &autofs_dentry_operations;
> 323 s->s_time_gran = 1;
> 324
> 325 /*
> 326 * Get the root inode and dentry, but defer checking for errors.
> 327 */
> 328 ino = autofs_new_ino(sbi);
> 329 if (!ino)
> > 330 goto -ENOMEM;
> 331
> 332 root_inode = autofs_get_inode(s, S_IFDIR | 0755);
> 333 if (root_inode) {
> 334 root_inode->i_uid = ctx->uid;
> 335 root_inode->i_gid = ctx->gid;
> 336 root_inode->i_fop = &autofs_root_operations;
> 337 root_inode->i_op = &autofs_dir_inode_operations;
> 338 }
> 339 s->s_root = d_make_root(root_inode);
> 340 if (unlikely(!s->s_root)) {
> 341 autofs_free_ino(ino);
> 342 return -ENOMEM;
> 343 }
> 344 s->s_root->d_fsdata = ino;
> 345
> 346 if (ctx->pgrp_set) {
> 347 sbi->oz_pgrp = find_get_pid(ctx->pgrp);
> 348 if (!sbi->oz_pgrp) {
> 349 ret = invalf(fc, "Could not find process group %d",
> 350 ctx->pgrp);
> 351 return ret;
> 352 }
> 353 } else {
> 354 sbi->oz_pgrp = get_task_pid(current, PIDTYPE_PGID);
> 355 }
> 356
> 357 if (autofs_type_trigger(sbi->type))
> 358 /* s->s_root won't be contended so there's little to
> 359 * be gained by not taking the d_lock when setting
> 360 * d_flags, even when a lot mounts are being done.
> 361 */
> 362 managed_dentry_set_managed(s->s_root);
> 363
> 364 pr_debug("pipe fd = %d, pgrp = %u\n",
> 365 sbi->pipefd, pid_nr(sbi->oz_pgrp));
> 366
> 367 sbi->flags &= ~AUTOFS_SBI_CATATONIC;
> 368 return 0;
> 369 }
> 370
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-19 10:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20231116000746.7359-1-raven@themaw.net>
2023-11-16 11:13 ` [PATCH] autofs: add: new_inode check in autofs_fill_super() kernel test robot
2023-11-16 11:23 ` kernel test robot
2023-11-19 10:23 ` Ian Kent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).