tree:
https://github.com/zen-kernel/zen-kernel 5.8/zen-sauce
head: 4ae00f4cbefe933616f33bf79935393ec49dbfa3
commit: bf804ff720d6aa54c15d9783fb9e067df94ff2e8 [4/26] ZEN: Unrestrict
CONFIG_OPTIMIZE_FOR_PERFORMANCE_O3
config: sparc-randconfig-r026-20200913 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.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
git checkout bf804ff720d6aa54c15d9783fb9e067df94ff2e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/orangefs/protocol.h:287,
from fs/orangefs/super.c:8:
fs/orangefs/orangefs-debug.h:86:18: warning: 'num_kmod_keyword_mask_map'
defined but not used [-Wunused-const-variable=]
86 | static const int num_kmod_keyword_mask_map = (int)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'orangefs_unmount',
inlined from 'orangefs_kill_sb' at fs/orangefs/super.c:615:6:
> fs/orangefs/super.c:402:2: warning: 'strncpy' output may
be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
402 | strncpy(op->upcall.req.fs_umount.orangefs_config_server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | devname, ORANGEFS_MAX_SERVER_ADDR_LEN - 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
https://github.com/zen-kernel/zen-kernel/commit/bf804ff720d6aa54c15d9783f...
git remote add zen-kernel-zen-kernel
https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.8/zen-sauce
git checkout bf804ff720d6aa54c15d9783fb9e067df94ff2e8
vim +/strncpy +402 fs/orangefs/super.c
1182fca3bc00441 Mike Marshall 2015-07-17 392
9d286b0d8207a70 Martin Brandenburg 2017-04-25 393 static int orangefs_unmount(int id,
__s32 fs_id, const char *devname)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 394 {
9d286b0d8207a70 Martin Brandenburg 2017-04-25 395 struct orangefs_kernel_op_s *op;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 396 int r;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 397 op =
op_alloc(ORANGEFS_VFS_OP_FS_UMOUNT);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 398 if (!op)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 399 return -ENOMEM;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 400 op->upcall.req.fs_umount.id = id;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 401 op->upcall.req.fs_umount.fs_id =
fs_id;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 @402
strncpy(op->upcall.req.fs_umount.orangefs_config_server,
6bdfb48dae8e1b9 Xiongfeng Wang 2018-01-08 403 devname,
ORANGEFS_MAX_SERVER_ADDR_LEN - 1);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 404 r = service_operation(op,
"orangefs_fs_umount", 0);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 405 /* Not much to do about an error
here. */
9d286b0d8207a70 Martin Brandenburg 2017-04-25 406 if (r)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 407 gossip_err("orangefs_unmount:
service_operation %d\n", r);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 408 op_release(op);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 409 return r;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 410 }
9d286b0d8207a70 Martin Brandenburg 2017-04-25 411
:::::: The code at line 402 was first introduced by commit
:::::: 9d286b0d8207a70d7e0ffbd5be864ff7a62de05a orangefs: ensure the userspace component
is unmounted if mount fails
:::::: TO: Martin Brandenburg <martin(a)omnibond.com>
:::::: CC: Mike Marshall <hubcap(a)omnibond.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org